When I boot the Ubuntu 12.04 desktop Live CD and run the command sudo apt-get update
, the final messages are the warning messages below.
Reading package lists... Done
W: Duplicate sources.list entry cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20120425)_dists_precise_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)/ precise/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20120425)_dists_precise_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
However, there do not appear to be any duplicate sources in /etc/apt/sources.list
# /etc/apt/sources.list
deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
deb http://archive.ubuntu.com/ubuntu/ precise main restricted
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted
I also ran the command gksudo software-properties-gtk
and noticed that there are two entries under the Other Software tab for Cdrom with Ubuntu 12.04 'Precise Pangolin'
Removing these two entries in Other Software also eliminates the Duplicate sources.list entry
warning messages from apt-get update
(as well as other apt-get
functions).
I do not understand why those two entries for Cdrom with Ubuntu
are present in the Other Software tab. The CD is also already selected as a possible install source under the Ubuntu Software tab. That should be enough, shouldn't it?
Is there an error in the Ubuntu 12.04 Live environment's default configuration of Software Sounces? Or am I doing something (else) wrong?
Is it OK to remove the Cdrom
entries under Other Software to eliminate the W: Duplicate sources.list entry cdrom:
message?
Update:
I forgot to look at /etc/apt/sources.list
after removing the entries from the Other Software tab. After doing that its contents becomes:
# /etc/apt/sources.list
deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
deb http://archive.ubuntu.com/ubuntu/ precise main restricted
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted
I'm still confused as to what is going on here. Is
dists/precise/main/binary-i386/
and
dists/precise/restricted/binary-i386/
the same thing as
precise main restricted
??
I didn't think so when I first looked at it, but then again removing those entries eliminates the Duplicate sources.list
warning messages.
What's happening is that the Precise AMD64 internet repositories also include the i386 repositories by default. I assume the reason is so that you can seamlessly install and run i386 programs after simply installing
ia32-libs
.It looks like this is also true for the CDROM repos -- that's all there is to it.
Here's what an extremely simple one-line
sources.list
does on an AMD64 Precise system:deb http://archive.ubuntu.com/ubuntu precise main restricted
sudo apt-get update
output (noteGet:5
andGet:6
):You see this, because it's a bug =) You shouldn't see it. Filed as https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1015495 after discussing with cjwatson.