[ubuntu-za] Using a CD as the sole repository

Phillip Pare ptpare at lantic.net
Sat Jan 31 10:31:42 GMT 2009


wayne wrote:
> Phillip Pare wrote:
>> When I try and update the package list from an Ubuntu 8.04 live DVD 
>> alone without using the online repositories I get the following 
>> messages. This is even after I have used synaptic to made the DVD 
>> recognizeable by APT.
>>
>> Failed to fetch cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 
>> (20080423)]/dists/hardy/main/binary-i386/Packages.gz  Please use 
>> apt-cdrom to make this CD-ROM recognized by APT. apt-get update 
>> cannot be used to add new CD-ROMs
>> Failed to fetch cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 
>> (20080423)]/dists/hardy/restricted/binary-i386/Packages.gz  Please 
>> use apt-cdrom to make this CD-ROM recognized by APT. apt-get update 
>> cannot be used to add new CD-ROMs
>> Some index files failed to download, they have been ignored, or old 
>> ones used instead.
>>
>> When I try and use sudo apt-cdrom add from the command line I still 
>> get an error:
>> phillip at phillip-desktop:~$ sudo apt-cdrom add
>> Using CD-ROM mount point /cdrom/
>> Unmounting CD-ROM
>> Waiting for disc...
>> Please insert a Disc in the drive and press enter
>> Mounting CD-ROM...
>> E: Failed to mount the cdrom.
>> phillip at phillip-desktop:~$
>>
>>
>>
>> My fstab file is as follows:
>> # /etc/fstab: static file system information.
>> #
>> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
>> proc            /proc           proc    defaults        0       0
>> # /dev/sda5
>> UUID=9f8cfeba-ce71-44b7-9243-0c1d7901f626 /               ext3    
>> relatime,errors=remount-ro 0       1
>> # /dev/sda6
>> UUID=54b02795-4ebf-479e-ba3a-8ff4779ef544 none            swap    
>> sw              0       0
>> # /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 
>> 0       0
>>
>> I did check the integrity of the disk from the opening menu and there 
>> was not a problem.
>>
>> Does anybody have any suggestions as to how I should now proceed?
>>
>> Thank you.
>>
>> Regards
>>
>> Phillip
>>
>>
>>
>>
> Firstly try to clear /var/lib/apt/cdrom.list, then use the apt-cdrom 
> -d option to specify the mount location ie; /media/cdrom0
>
> Wayne A
Thank you Wayne
I deleted the contents of /var/lib/apt/cdrom.list and then tried the 
following.

phillip at phillip-desktop:~$ apt-cdrom add -d /media/cdrom0
Using CD-ROM mount point /media/cdrom0/
Unmounting CD-ROM
Waiting for disc...
Please insert a Disc in the drive and press enter
Mounting CD-ROM...
E: Failed to mount the cdrom.
phillip at phillip-desktop:~$

Have I used the correct apt-cdrom command?
By the way I am using a live Ubuntu 8.04 DVD  and not a CD. Should / 
will this make a difference?


Regards

Phillip


-- 
Email  ptpare at lantic.net
Phone:  Mobile: 072-3978356 ; 
Fax: 086-6255462 (this is a new number valid from September 2008)
Skype: ptpare ;
Jaxtar: http://www.jaxtr.com/ngoato ;
Jajah: http://www.jajah.com/Ngoato







More information about the ubuntu-za mailing list