[SOLVED] upgrade issues: problems with the dvd-rom
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
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:
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.
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:
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.