• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / Ubuntu / How To Remove Duplicate Sources.List Entry On Ubuntu

How To Remove Duplicate Sources.List Entry On Ubuntu

By Sourabh / November 3, 2016 Category: How To, Ubuntu

How to remove duplicate sources.list entry on Ubuntu. Remove and resolve duplicate sources list entry var lib apt lists error on Linux Ubuntu Systems. The duplicate sources.list entry error means that you’ve got the same source defined twice in the system’s apt sources.

This is a warning message not an error, so you shouldn’t panic at all. There are many methods to resolve this error. Let us know about them:

GUI Method

Ubuntu users can use Ubuntu Software Centre to remove duplicate sources.list entry on Ubuntu. This is the GUI method and easier one also. To do so, open Ubuntu Software Centre, click on Edit > Software Sources > Other Software Tab. Under the list search for the duplicate entry and simply remove it. The same task can be done via the following command:

cat /etc/apt/sources.list | perl -ne '$H{$_}++ or print' > /tmp/sources.list && sudo mv /tmp/sources.list /etc/apt/sources.list

Commadline Method

There are many command line ways to resolve the duplicate sources.list entry on Ubuntu:

Solution 1

grep -R --include="*.list" chrome /etc/apt/

Solution 2

sudo awk '!a[$0]++' /etc/apt/sources.list

Tags: Duplicate source error on apt-get update, duplicate sources list entry var lib apt lists, duplicate sources.list entry debian, how to remove duplicate sources.list entry ubuntu, ignoring provides line with depcompareop for package, linux remove duplicate sources.list entry, mint remove duplicate sources.list entry, raspberry duplicate sources.list entry, remove duplicate sources.list entry linux, remove duplicate sources.list entry mint, remove duplicate sources.list entry ubuntu, software-properties-gtk, ubuntu remove duplicate sources.list entry, w duplicate sources.list entry /var/lib/apt/lists/, wrong sources.list entry or malformed file, you may want to run apt-get update to correct these problems cydia

Primary Sidebar

Latest Posts

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

© 2025 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap