• 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

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

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

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