LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-06-2011, 06:21 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
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.
 
Old 03-06-2011, 06:22 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
comment them out of your sources.list
 
Old 03-06-2011, 06:26 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
@mark alfred I'm surprised that you forgot.
It must be a new installation.

Btw I have the Dell Optiplex GX1 with 500Mhz cpu.

Last edited by EDDY1; 03-06-2011 at 06:28 PM.
 
Old 03-06-2011, 06:31 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
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).
 
Old 03-15-2011, 07:44 PM   #5
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
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.
 
Old 03-15-2011, 08:22 PM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Did you try to manually patch the file? It was only a couple of lines long.
 
Old 03-15-2011, 08:27 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 03-15-2011, 08:28 PM   #8
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
Quote:
Originally Posted by andrewthomas View Post
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.
 
Old 03-15-2011, 08:33 PM   #9
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
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 03-15-2011, 10:10 PM   #10
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
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.
 
Old 03-17-2011, 12:57 PM   #11
alrojas
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
hi mark_alfred!.

I have the same problem!. Could you explain solution step by step?, please
Thanks for all.
 
Old 03-20-2011, 09:58 AM   #12
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
I pretty well described everything above. See the manual for tips on working with sources.
 
Old 03-20-2011, 11:58 AM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I had similar problem yesterday,
It was due to backports being listed different
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://www.backports.org/debian lenny-backports main contrib non-free
 
  


Reply



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] Yum updates localinstall still requiring downloads - How can i disable this?? xenner Linux - Newbie 20 07-27-2009 06:06 PM
don't waste your time with wine FlyingSolo Linux - Software 3 04-13-2005 04:17 AM
Linux is a waste of time! tripmix General 17 12-21-2004 05:11 PM
Sheesh what a waste of time.. BajaNick General 3 12-07-2003 10:38 PM
don't mean to waste time but.... boneal55 Debian 9 12-04-2003 04:50 PM

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

All times are GMT -5. The time now is 07:49 PM.

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