LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   upgrade issues: problems with the dvd-rom (http://www.linuxquestions.org/questions/debian-26/upgrade-issues-problems-with-the-dvd-rom-866690/)

mark_alfred 03-05-2011 09:46 PM

upgrade issues: problems with the dvd-rom
 
Hello. I had a previous thread on this, which I prematurely marked as solved. This issue is a little different, so I'm starting a new thread.

I have dial-up, so I ordered Squeeze dvds to upgrade my system. I mostly have been following the release notes (though apparently not closely enough). I eliminated everything from my sources.list except the new Squeeze dvds (which I added using "apt-cdrom add", which, in Lenny, worked fine). So, I did the minimal system upgrade (apt-get upgrade), and then installed the new kernel, and then installed udev, and then attempted to finish with "apt-get dist-upgrade". However, I was unable to get it to read the dvds. It kept telling me to insert it, and press "enter", even though the correct dvd was already in the drive.

I thought I had solved this, by discovering that /dev/hdc had been renamed to /dev/cdrom1. So I changed fstab to reflect this. From this, I was able to begin the dist-upgrade. But, when it wanted me to switch the dvd to a different one, I couldn't get the dvd out of the drive. So I stopped the upgrade, and found that by entering "eject cdrom", that I got it out.

In trying to redo the dist-upgrade, I discovered that I instead had to run "apt-get -f install". However, I could not get it to read the cdrom.

I read the release notes again, and it stated that the mount point for the cdrom drive had to be at /cdrom, rather than /media/cdrom0. So, I changed /etc/fstab to read:
Code:

/dev/cdrom1    /cdrom          auto    defaults,noauto,ro      0      0
I then did the tests that the release notes recommended:
Code:

debian:/# mount /cdrom
debian:/# ls -alF /cdrom
lrwxrwxrwx 1 root root 11 Jul 23  2006 /cdrom -> media/cdrom/
debian:/# umount /cdrom

So, fabulous. It seems to work, and it's now at /cdrom rather than /media/cdrom0. I had previously added all the dvds to my sources.list before upgrading udev (on my old beloved Lenny). But, I figured I should comment those out and re-add them, now that (supposedly) the /etc/fstab file is point to the correct mount point (that being /cdrom, as per the release notes). So, the first one goes well, but then the cdrom is stuck, requiring me to type "eject cdrom" in another terminal. Then, when I try to add any of the others, I get the following:
Code:

debian:/# apt-cdrom add
Using CD-ROM mount point /media/apt/
Identifying.. [df536a6852f677c02419bfc6e297b484-2]
Scanning disc for index files..
Found 2 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
This disc is called:
'Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-1 20110205-17:27'
Reading Package Indexes... Done
Writing new source list
Source list entries for this disc are:
deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-1 20110205-17:27]/ squeeze contrib main
Repeat this process for the rest of the CDs in your set.
debian:/# debian:/# apt-cdrom add
Using CD-ROM mount point /media/apt/
Identifying.. [c11560740d838ce8911541aea862162c-2]
Scanning disc for index files..
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
E: Unable to locate any package files, perhaps this is not a Debian Disc or the wrong architecture?
debian:/#

I also tried using /dev/sr0 rather than cdrom1, which seemed to work. But I get the same results.

Does anyone know how I can fix this and complete this horrendous upgrade? The past upgrades were peanuts compared to this one.

EDDY1 03-06-2011 03:47 PM

Is cd or dvd in /etc/apt/sources.list?

EDDY1 03-06-2011 03:49 PM

Quote:

So, fabulous. It seems to work, and it's now at /cdrom rather than /media/cdrom0. I had previously added all the dvds to my sources.list before upgrading udev (on my old beloved Lenny). But, I figured I should comment those out and re-add them, now that (supposedly) the /etc/fstab file is point to the correct mount point (that being /cdrom, as per the release notes). So, the first one goes well, but then the cdrom is stuck, requiring me to type "eject cdrom" in another terminal. Then, when I try to add any of the others, I get the following:
Have you tried
Quote:

aptitude update

mark_alfred 03-06-2011 05:49 PM

No, I didn't try aptitude. For a while I didn't even have aptitude installed -- the system was only half upgraded. I have fixed the major issues that I described. I managed to connect to the internet, and finished the dist-upgrade online (it took a few hours, since I only have dial-up). Afterword, things seem to work with the "apt-cdrom add", and the dvd-rom seems to work properly now too. The only hitch is that when I update, it requires me to insert all the dvds (I added nonfree and multimedia repos recently, but the update required me to reinsert the dvds too). I may have screwed up my apt.conf file.

Anyway, I really should not have had to go online to finish the upgrade. The dvds in and of themselves should have worked. Perhaps I'll file a bug, but I'm not sure what I would file it against.

EDDY1 03-06-2011 06:30 PM

apt-get update works also, and just updates the fact that you're installing from dvd.

Quote:

Anyway, I really should not have had to go online to finish the upgrade. The dvds in and of themselves should have worked. Perhaps I'll file a bug, but I'm not sure what I would file it against.
Only true if you have the most recent release of dvd, you have to look at version date.


All times are GMT -5. The time now is 09:36 PM.