[Bug 957619] Re: apt-cdrom ignores command line options, won't access non cdrom

Ezequiel Martín Cámara ezequiel.martin.camara at gmail.com
Sun May 6 01:13:32 UTC 2012


I had the same issue, can be fixed by creating the following file:

sudo gedit /etc/apt/apt.conf.d/99iso

With the contents:

Acquire::cdrom::AutoDetect "false";
Acquire::cdrom::mount "/mnt";
APT::CDROM::NoMount "true";

Now apt-cdrom with the above parameters works.

** Changed in: apt (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/957619

Title:
  apt-cdrom ignores command line options, won't access non cdrom

Status in “apt” package in Ubuntu:
  Invalid

Bug description:
  I'm trying to uce apt-cdrom to recognize an iso that is either loop
  mounted, or on a usb flash stick instead of a cdrom.  Even when using
  -d and -w to tell it to not try to mount/umount, and point it to the
  directory where I already have it mounted, it still tries to mount
  /dev/sr0 to another location and fails.

  psusi at faldara:~/Downloads$ sudo apt-cdrom -m -d=/mnt/ add
  Using CD-ROM mount point /media/apt/
  Identifying.. [e77819b1536fea76e327ed466c230d95-2]
  Scanning disc for index files..
  Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
  W: Failed to mount '/dev/sr0' to '/media/apt/'
  E: Unable to locate any package files, perhaps this is not a Debian Disc or the wrong architecture?

  So it's completely ignoring both -m and -d switches.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/957619/+subscriptions




More information about the foundations-bugs mailing list