• 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

Downlaod Ubuntu 26.10 Stonking Stingray

How To Shutdown Linux With A 15 Minute Delay And Message

Using Linux Terminal How To Get Total Disk Size In GB

Count And Find Number Of Files In A Linux Directory Using Command

Check How Many Users Are Created In Linux Ubuntu

How To Check User Permissions In Linux Using Command

Check Which Folder Is Taking More Space In Ubuntu Linux

How to Install Claude Desktop App in Ubuntu Linux

Job Scheduling Using At Command In Linux With Examples

How To Check Permissions Of A Directory In Linux Command

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

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