LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-05-2011, 09:46 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 03-06-2011, 03:47 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is cd or dvd in /etc/apt/sources.list?
 
Old 03-06-2011, 03:49 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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
 
Old 03-06-2011, 05:49 PM   #4
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 03-06-2011, 06:30 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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.

Last edited by EDDY1; 03-06-2011 at 06:33 PM.
 
  


Reply

Tags
cdrom, fstab, squeeze, udev, upgrade



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Motherboard see's DVD rom, Is configured to boot dvd rom, but not booting from dvd Carlo1973 Linux - Hardware 6 08-21-2010 11:44 AM
how to upgrade from centos 5.4 to 5.5 offline via dvd rom salimshahzad Linux - Newbie 1 07-11-2010 08:40 AM
DVD ROM issues with DVD-R al451f Ubuntu 6 03-15-2007 01:01 PM
Suse 10 DVD-Rom issues Rylinkus Linux - Newbie 17 02-23-2006 10:03 PM
DVD/Burner and CD-ROM Issues demolished Linux - Hardware 15 01-23-2006 08:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration