apt-get calls for drive '/cdrom/'

Bug #7866 reported by Matthew Parslow
10
Affects Status Importance Assigned to Milestone
apt-setup (Debian)
New
Unknown
apt-setup (Ubuntu)
Confirmed
Low
Michael Vogt

Bug Description

when apt-get is getting packages from CD, it asks for the disk labelled 'Ubuntu
4.10 etc etc' in the drive '/cdrom/' which isn't where it's mounted, nor the
name of the drive - perhaps this should be the name of the device from /proc if
possible?

Revision history for this message
Matt Zimmerman (mdz) wrote :

The path is specified by a configuration variable (APT::cdrom::mount, I think),
and defaults to /cdrom. If the default is not suitable, then something
(apt-setup?) should probably specify it explicitly.

Revision history for this message
Colin Watson (cjwatson) wrote :

The installer always creates (or at least is always supposed to create) a /cdrom
symlink. Is this not good enough?

Revision history for this message
Matt Zimmerman (mdz) wrote :

In my case at least, it doesn't match fstab:

mdz@max ~ $ ls -l /cdrom
lrwxr-xr-x 1 root root 11 Sep 7 21:06 /cdrom -> media/cdrom
mdz@max ~ $ grep cdrom /etc/fstab
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0

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

I think severity of this bug should be increased - it's not good, when very
important Ubuntu/Debian tool - apt isn't FHS 2.3 compliant.
This couses lot of problems, when user removes "unneeded" (from FHS standard
view) /cdrom symlink
Is it hard to make apt to search cdrom in /etc/fstab or in /proc ? If so, then
just change hardcoded default to /media/cdrom, it's just one line change in apt
sources.

Revision history for this message
Matt Zimmerman (mdz) wrote :

The discussion in the Debian BTS should make the issues clear

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 21 Nov 2004 15:37:04 +0100
From: martin f krafft <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: apt-cdrom: please change default CD-ROM mountpoint

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: apt
Version: 0.5.27
Severity: wishlist

cirrus:~# apt-cdrom ident
Using CD-ROM mount point /cdrom/
Mounting CD-ROM
E: Unable to stat the mount point /cdrom/ - stat (2 No such file or directo=
ry)
E: Failed to mount the cdrom.

We are now using /media/cdrom by default. Please change APT. Thanks,

--=20
 .''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
  `- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

--ibTvN161/egqYuK8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBoKgQIgvIgzMMSnURAt9yAJwJnHaeGkIwX9AzzxJ1XnjRnEtwUwCg0qsa
ugxBGssziVIa8cV0K6BB37Q=
=kIDM
-----END PGP SIGNATURE-----

--ibTvN161/egqYuK8--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 27 Dec 2004 18:50:23 -0800
From: Matt Zimmerman <email address hidden>
To: martin f krafft <email address hidden>, <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

On Sun, Nov 21, 2004 at 03:37:04PM +0100, martin f krafft wrote:

> Package: apt
> Version: 0.5.27
> Severity: wishlist
>
> cirrus:~# apt-cdrom ident
> Using CD-ROM mount point /cdrom/
> Mounting CD-ROM
> E: Unable to stat the mount point /cdrom/ - stat (2 No such file or directory)
> E: Failed to mount the cdrom.
>
> We are now using /media/cdrom by default. Please change APT. Thanks,

Until a symlink is provided for backward compatibility (/media/cdrom ->
/cdrom), this would break working systems.

--
 - mdz

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 28 Dec 2004 10:27:28 +0100
From: martin f krafft <email address hidden>
To: Matt Zimmerman <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

--2JFBq9zoW8cOFH7v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

also sprach Matt Zimmerman <email address hidden> [2004.12.28.0350 +0100]:
> Until a symlink is provided for backward compatibility (/media/cdrom ->
> /cdrom), this would break working systems.

=2E.. this does not prevent you from changing to use /media/cdrom.
I purposely removed the /cdrom symlink to find problematic packages
which still use it.

--=20
 .''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
  `- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

--2JFBq9zoW8cOFH7v
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB0ScAIgvIgzMMSnURAlAFAJsFZxK+m50DHIP+hY1hJ7EMyI83VwCdFlcz
i4ksqTi48jb4jkC6j4aUSuQ=
=1hut
-----END PGP SIGNATURE-----

--2JFBq9zoW8cOFH7v--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 28 Dec 2004 09:37:25 -0800
From: Matt Zimmerman <email address hidden>
To: martin f krafft <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

On Tue, Dec 28, 2004 at 10:27:28AM +0100, martin f krafft wrote:

> also sprach Matt Zimmerman <email address hidden> [2004.12.28.0350 +0100]:
> > Until a symlink is provided for backward compatibility (/media/cdrom ->
> > /cdrom), this would break working systems.
>
> ... this does not prevent you from changing to use /media/cdrom.
> I purposely removed the /cdrom symlink to find problematic packages
> which still use it.

There are a large number of installed systems which use /cdrom in
/etc/fstab. Changing apt-cdrom's default mount point to /media/cdrom would
break apt-cdrom on those systems, unless there is some process to convert
them on upgrade.

--
 - mdz

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 28 Dec 2004 18:20:00 -0200
From: Otavio Salvador <email address hidden>
To: Matt Zimmerman <email address hidden>
Cc: <email address hidden>, martin f krafft <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=

|| On Tue, 28 Dec 2004 09:37:25 -0800
|| Matt Zimmerman <email address hidden> wrote:

mz> On Tue, Dec 28, 2004 at 10:27:28AM +0100, martin f krafft wrote:
>> also sprach Matt Zimmerman <email address hidden> [2004.12.28.0350 +0100]:
>> > Until a symlink is provided for backward compatibility (/media/cdrom ->
>> > /cdrom), this would break working systems.
>>
>> ... this does not prevent you from changing to use /media/cdrom.
>> I purposely removed the /cdrom symlink to find problematic packages
>> which still use it.

mz> There are a large number of installed systems which use /cdrom in
mz> /etc/fstab. Changing apt-cdrom's default mount point to /media/cdrom would
mz> break apt-cdrom on those systems, unless there is some process to convert
mz> them on upgrade.

But this kinda of upgrade process probably broke the policy since you
will need change /etc/fstab directly.

Another option is provide a symbolic link to old place and then
providing backward compatibility.

--
        O T A V I O S A L V A D O R
---------------------------------------------
 E-mail: <email address hidden> UIN: 5906116
 GNU/Linux User: 239058 GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."

--=-=-=--
--==-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFB0b/wLqiZQEml+FURAp86AJ46YCnB5KQ8z3Qovrk82Li4FQc7ewCeJh2M
OJySOjFQd6xRWJUns9U9DD0=
=fpq8
-----END PGP MESSAGE-----
--==-=-=--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 9 Feb 2005 01:22:54 +0100
From: martin f krafft <email address hidden>
To: Matt Zimmerman <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

--5CUMAwwhRxlRszMD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

also sprach Matt Zimmerman <email address hidden> [2004.12.28.1837 +0100]:
> There are a large number of installed systems which use /cdrom in
> /etc/fstab. Changing apt-cdrom's default mount point to
> /media/cdrom would break apt-cdrom on those systems, unless there
> is some process to convert them on upgrade.

Can apt-cdrom check if /media/cdrom exists, and use /cdrom
otherwise?

--=20
 .''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
  `- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

--5CUMAwwhRxlRszMD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCCVfeIgvIgzMMSnURAgY6AKDEnURp1JdNSadLOvjzNacPtalJvQCgyX2E
MbdozrG6l4+ZfSbcG0vmmsA=
=W8Ii
-----END PGP SIGNATURE-----

--5CUMAwwhRxlRszMD--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 8 Feb 2005 16:40:13 -0800
From: Matt Zimmerman <email address hidden>
To: martin f krafft <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

On Wed, Feb 09, 2005 at 01:22:54AM +0100, martin f krafft wrote:

> also sprach Matt Zimmerman <email address hidden> [2004.12.28.1837 +0100]:
> > There are a large number of installed systems which use /cdrom in
> > /etc/fstab. Changing apt-cdrom's default mount point to
> > /media/cdrom would break apt-cdrom on those systems, unless there
> > is some process to convert them on upgrade.
>
> Can apt-cdrom check if /media/cdrom exists, and use /cdrom
> otherwise?

Not exactly; it would need to parse /etc/fstab to know which one to use.

--
 - mdz

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 9 Feb 2005 01:55:37 +0100
From: martin f krafft <email address hidden>
To: Matt Zimmerman <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

--mhOzvPhkurUs4vA9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

also sprach Matt Zimmerman <email address hidden> [2005.02.09.0140 +0100]:
> Not exactly; it would need to parse /etc/fstab to know which one to use.

True, although I wonder how many systems have a /media/cdrom
directory and continue to use /cdrom.

Anyway, parsing /etc/fstab should not be that hard, no?

if grep -q '[[:space:]]/media/cdrom' /etc/fstab; then
  if grep -q '[[:space:]]/cdrom' /etc/fstab; then
    # use /cdrom
  else
    # use /media/cdrom
  fi
else
  # use /cdrom
fi

This is conservative...

--=20
 .''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
  `- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

--mhOzvPhkurUs4vA9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCCV+JIgvIgzMMSnURArtkAJ0UPhunEUBOsI2/CJY5c8um8uc6xQCgiywl
buuOgPV6Zpq18AKNEpqhb68=
=Orue
-----END PGP SIGNATURE-----

--mhOzvPhkurUs4vA9--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 8 Feb 2005 17:05:40 -0800
From: Matt Zimmerman <email address hidden>
To: martin f krafft <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

On Wed, Feb 09, 2005 at 01:55:37AM +0100, martin f krafft wrote:

> also sprach Matt Zimmerman <email address hidden> [2005.02.09.0140 +0100]:
> > Not exactly; it would need to parse /etc/fstab to know which one to use.
>
> True, although I wonder how many systems have a /media/cdrom
> directory and continue to use /cdrom.

/media/cdrom will be created on upgrade, while /etc/fstab is unchanged, no?

--
 - mdz

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 9 Feb 2005 02:50:25 +0100
From: martin f krafft <email address hidden>
To: Matt Zimmerman <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#282344: apt-cdrom: please change default CD-ROM mountpoint

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

also sprach Matt Zimmerman <email address hidden> [2005.02.09.0205 +0100]:
> /media/cdrom will be created on upgrade, while /etc/fstab is
> unchanged, no?

I would not know by whom:

% dpkg -S /media/cdrom
dpkg: /media/cdrom not found.
% grep /media/cdrom /var/lib/dpkg/info/*.*inst || echo none
none

--=20
 .''`. martin f. krafft <email address hidden>
: :' : proud Debian developer, admin, user, and author
`. `'`
  `- Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

--pf9I7BMVVzbSWLtt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCCWxhIgvIgzMMSnURAvSgAJ4hFBzjcAlxz8QVvenFfcqADY9M6gCglhWE
85Dyta39SNVkMRv8c2IiOqI=
=na08
-----END PGP SIGNATURE-----

--pf9I7BMVVzbSWLtt--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 06 Apr 2005 19:29:55 +0300
From: Vytautas Germanavicius <email address hidden>
To: <email address hidden>
Subject: =?UTF-8?B?KG7El3JhIHRlbW9zKQ==?=

When in debian users will be able to use apt with cdrom media without
changing config files manually. It's so hard to use fstab parsing code,
posted by martin f krafft <email address hidden> ?

Revision history for this message
Lakin Wecker (lakin) wrote :

I can still confirm this is still a problem on a breezy system, with a default install. See the attached, screenshot. (Note, although the screenshot mentions a dapper disk, this is in fact a breezy install, the dapper cdrom just happend to be closer when testing this)

It would be great if synaptic/apt-get could get the actual name of the drive similar to the way that nautilus-burner does it. Then people could identify their drives by brandname/model rather than by symlink names.

Revision history for this message
Lakin Wecker (lakin) wrote : Example of the dialog shown.

Example of the dialog that apt shows when using a CDROM source to upgrade a package.

Revision history for this message
Lakin Wecker (lakin) wrote :

Confirming the status of this bug.

Changed in apt-setup:
status: Unconfirmed → Confirmed
Revision history for this message
Nickybatts (nickybatts) wrote :

Techinically this bug should be closed since 4.10 is no longer supported.

Revision history for this message
Nickybatts (nickybatts) wrote :

Warty is no longer supported. If this bug persists please do not hesitate to resubmit it.

Changed in apt-setup:
status: Confirmed → Rejected
Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 7866] Re: apt-get calls for drive '/cdrom/'

 status Confirmed

It has been confirmed on Breezy

Changed in apt-setup:
status: Rejected → Confirmed
Revision history for this message
Benjamín Valero Espinosa (benjavalero) wrote :

I had this bug in Breezy and it still happens in Dapper.

My case: I have a CD-ROM unit (master) and a DVD unit (slave). As the CD unit is the fastest, I installed Ubuntu by that unit. Afterwards, when I try to add a DVD with packages, I insert it but "apt" just looks in the /cdrom point.

Why can't it look in all the possible CD drives?

I solve it installing from my DVD drive or mounting the DVD in the /cdrom point, but I suppose it shouldn't be very difficult to solve, although if it comes from Warty...

Revision history for this message
Marco Rodrigues (gothicx) wrote :

At edgy and feisty it has /cdrom symlink at /

This bug should be "fix released" ?

Colin Watson (cjwatson)
Changed in apt-setup:
assignee: kamion → nobody
Revision history for this message
Marco da Silva (igama) wrote :

Its looks fixed:

igama@marte:~$ apt-cdrom ident
Utilizando o ponto de montagem do CD-ROM /cdrom/ - (mounting point)
A montar o CD-ROM - (mounting CD-ROM)
A identificar.. [b0eec9ebb2f73cb755ea5ff17b89a5e4-2]
Label Guardada: Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070415)

Revision history for this message
Brian Ealdwine (eode) wrote :

This seems to be ok here, too. Setting to "fix released" for Ubuntu. Re-open if necessary.

Changed in apt-setup:
status: Confirmed → Fix Released
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

This bug isn't fixed - apt-cdrom still searches for CD/DVD drive in /cdrom folder instead of looking in real CD/DVD or other removable media mount folder

Changed in apt-setup:
assignee: nobody → mvo
status: Fix Released → Confirmed
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.