[SOLVED] apt-get updates waste time requiring re-scanning my Debian dvds
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:
apt-get updates waste time requiring re-scanning my Debian dvds
Hello. I have the eight Debian dvds listed in my sources.list, along with security, nonfree, and multimedia repositories. Whenever I update now, I get the following:
Code:
Media change: please insert the disc labeled
'Debian GNU/Linux 6.0.0 _Squeeze_ - Official i386 DVD Binary-8 20110205-17:27'
in the drive '/cdrom/' and press enter
It does this for all eight dvds, re-scanning them for the update. These dvds have already been scanned (from the apt-cdrom add command). New updates are NOT going to suddenly appear on these already scanned dvds, so this is a completely unnecessary endeavour. Is there a way to stop this? It didn't happen with Lenny, and I'd like to stop it with Squeeze.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
I actually did not forget. I use dial-up, so I prefer relying upon dvds rather than the internet for my the bulk of my sources.list. Previously an update would not require having to pull out and rescan all the dvds; this is something new (I just recently upgraded).
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Please help w/ this answer from the bug report I did
Hello. I posted this issue to an existing bug with the Debian developers of apt-get. An answer was provided. This answer has worked for the other user who posted the same bug, but I have not been able to use this answer to solve the issue on my computer. The developer stated,
Quote:
Originally Posted by debian developer
Could you please try the attached patch? That should fix the problem.
Cheers,
Michael
The "attached patch" was a file named "apt-cdrom-fix.diff". I downloaded this file, and tried to use it:
Code:
debian:/home/mark/stuff/upgrade_notes# patch < apt-cdrom-fix.diff
patching file acquire-item.cc
Hunk #1 FAILED at 861.
1 out of 1 hunk FAILED -- saving rejects to file acquire-item.cc.rej
debian:/home/mark/stuff/upgrade_notes#
Does anyone know what I'm doing wrong? I still have "apt-get update" demand all the listed DVDs to be rescanned.
This patch is meant to be applied to the source code of apt-cdrom. After that you have to compile that source code and install the new compiled program (preferably after you packaged it). It is not meant to fix the already installed program.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Quote:
Originally Posted by andrewthomas
Did you try to manually patch the file? It was only a couple of lines long.
I really am not familiar with the patching of files, either manual or automatic (or whatever). In fact, the response to the bug report was the first I had ever heard of patching a file. So, I did an internet search, and came up with "patch < file.diff" as something to try. If you could let me know how else I can approach this (manually, automatically, or anyway) then I would much appreciate it.
Last edited by mark_alfred; 03-15-2011 at 08:31 PM.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Quote:
Originally Posted by TobiSGD
This patch is meant to be applied to the source code of apt-cdrom. After that you have to compile that source code and install the new compiled program (preferably after you packaged it). It is not meant to fix the already installed program.
Ah. Thanks. That's helpful. I'll try to get the source, and screw around with that for a while. Hopefully I'll be able to solve this issue.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
Success! I enable deb-src repository, got the source, applied the patch, created the deb file, installed it, and now I can update without having to insert all eight DVDs for rescanning. I'm glad that irritation is gone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.