apt-cdrom fails due to inconsistent choice of mount points
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apt
I did a network (medialess) install of Ubuintu 10.04LTS on a new PC, then added a CDROM source using "apt-cdrom add".
It recongized my media and added appropriate lines to sources.list anmd so on, but installing packages from the CDROM at the console command line fails with "file not found" messages.
On this system (presumably, because it's a medialess install) there is no entry for the cdrom in /etc/fstab.
It looks like what happens is that apt-get, etc., mount the CDROM at /media/apt, but when lookng for packages it's searching under /cdrom, whgich does not exist.
Creating a symbolic link to /media/apt at /cdrom allows things to work, but should not be necessary. Apt-cdrom should use the same mountpoint for accessing files on the CDROM as it used to mount the medium.
Changed in apt (Ubuntu): | |
status: | Invalid → New |
status: | New → Incomplete |
status: | Incomplete → Opinion |
status: | Opinion → Invalid |
status: | Invalid → Confirmed |
status: | Confirmed → In Progress |
status: | In Progress → Fix Committed |
status: | Fix Committed → Fix Released |
I think this bug are also related to the following bugs:
https:/ /bugs.launchpad .net/ubuntu/ +source/ apt/+bug/ 539219 /bugs.launchpad .net/ubuntu/ +source/ software- properties/ +bug/579110
https:/
I have read the source codes of APT, Synaptic, software- properties, software- properties- gtk and Python-apt and I think you have to mount the CD/DVD to /cdrom/ because of this line:
string CDROM = _config- >FindDir( "Acquire: :cdrom: :mount" , "/cdrom/")
This code can be found in:
Synaptic package: rcdscanner.cc and apt package: apt-pkg/cdrom.cc
And the meaning of this line is: If the value of the key "Acquire: :cdrom: :mount" is empty, then "/cdrom/" will be used.
That's why sometimes you have to create the symbolic link for "/cdrom/".
Well, for a normal user, how to assign the mount point to the key "Acquire: :cdrom: :mount" ?
Now, I have found two ways:
In the console, run:
1. sudo synaptic --add-cdrom {mount point}. For example, sudo synaptic --add-cdrom /media/APTonCD/
OR
2. sudo apt-cdrom add --auto-detect
At this moment, I don't know why the value of the key "Acquire: :cdrom: :mount" becomes empty.
Also, for me, I could not submit any patch because I am not familiar with Python language.
Therefore, I wish my report can help someone to solve this problem.