apt-cdrom add fails to mount the medium

Bug #115536 reported by Rafael Proença
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned
synaptic (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: apt

While running 'apt-cdrom add' in my notebook its always fails saying:
E: Failed to mount the cdrom.

APT looks into /etc/fstab to get the default cdrom mount point. My fstab looks like:
/dev/cdrom /cdrom udf,iso9660 user,noauto 0 0

APT tries to mount '/cdrom/' instead of just '/cdrom' (withou slash). If I change fstab and add the slash in the mount point everything works well.

Suggestion:
a) APT needs to use the hal mounting point instead the /etc/fstab, so it would works with no mention in fstab
b) The default fstab mounting point should be '/cdrom/' instead of just '/cdrom'
c) The default mounting point where apt looks into should be '/cdrom'

description: updated
description: updated
Revision history for this message
Michael Vogt (mvo) wrote :

I haven't checked that yet, but as a workaoround you can use:
-o Acquire::cdrom::mount="/cdrom" (or the hal path)

Revision history for this message
Michael Vogt (mvo) wrote :

You can also give "-o APT::CDROM::NoMount=True" if you know that the dir is already mounted and there is no need to mount it again.

Revision history for this message
Anurag Panda (anurag-panda) wrote :

You can try
sudo apt-cdrom -m add

Revision history for this message
Rafael Proença (cypherbios) wrote :

This is not a matter of how to make it work. I know how to fix it in a couple of different ways, but the user couldn't have the same clue.
I can mount the cd and tell apt-cdrom where it is;
I can adjust the fstab to say where is the correct mounting point for a device;
And also I can do what mvo said, but it will not fix the bug.

I'm wondering if I'm the only one who experienced the problem.

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Rafael Proença said on 2007-06-27:
> This is not a matter of how to make it work. I know how to fix it in a couple of different ways, but the user couldn't have the same clue.
[..]
> I'm wondering if I'm the only one who experienced the problem.

Hehe, you are not alone - look at bugs #112599, #41689, #26562, #7866 and many others.

Revision history for this message
Michael Vogt (mvo) wrote :

This is a tricky bug, apt needs to work with hal without depending on it.

Revision history for this message
Patricio (patricio-stwing) wrote :

How do i work around this problem?

Revision history for this message
Patricio (patricio-stwing) wrote :

Windows is looking pretty good at this point

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in apt (Ubuntu):
status: New → Incomplete
Changed in synaptic (Ubuntu):
status: New → Incomplete
Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in apt (Ubuntu):
status: Incomplete → Invalid
Changed in synaptic (Ubuntu):
status: Incomplete → Invalid
Piotr Darzyn (darzynp)
Changed in apt (Ubuntu):
status: Invalid → New
status: New → Incomplete
status: Incomplete → Opinion
status: Opinion → Invalid
status: Invalid → Confirmed
status: Confirmed → In Progress
Revision history for this message
Battant (mparchet) wrote :

Hello,

1. If I insert my ubuntu 14.04.3 dvd, there is no dialogue box shown to suggest me to add this cd rom to the synaptic.

2. In synaptic if I choose to add a cd rome in edit menu a dialog box asks me to insert the dvd in my dvd rom. but after this action
I get this exception:

E: Failed to mount the cdrom.

Expected result :

When I insert my ubuntu 14.04.3 dvd, a message box should ask me if I want to open synaptic to add this dvd like on an other distribution

Is it a bug and if yes could you please fix it ?

Best regards

Battant

Revision history for this message
Battant (mparchet) wrote :

Hello,

What's news about this bug ?

Thanks for your answer

Best regards

Battant

dino99 (9d9)
Changed in apt (Ubuntu):
status: In Progress → Invalid
Revision history for this message
Battant (mparchet) wrote :

Hello,

Why this ticket becom invalid ?

What can I do if i have also this bug ?

Thanks for your answer and happy new year

Best regards

Battant

Revision history for this message
Battant (mparchet) wrote :

Hello,

 If I type ihis command i a terminal

sudo apt-cdrom -m add

I get this result

 apt-cdrom -m add
Using CD-ROM mount point /media/cdrom/
Identifying...
E: Unable to change to /media/cdrom/ - chdir (2: No such file or directory)
E: No CD-ROM could be auto-detected or found using the default mount point.
You may try the --cdrom option to set the CD-ROM mount point.
See 'man apt-cdrom' for more information about the CD-ROM auto-detection and mount point.

It seem the cdrom mount point it in the seme folder that the other mount point device

In my case is this

/media/mparchet/Ubuntu\ 15.10\ amd64/

Sould I create a symbolik link /media/cdrom/that point on the cdrom

sudo ln -s /media/mparchet/Ubuntu\ 15.10\ amd64/ /media/cdrom

I tesed this semm work.

Coul you confirm thos

Thanks for your help

mparchet

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.