LinuxQuestions.org
Review your favorite Linux distribution.
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 02-17-2008, 03:33 PM   #1
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: KDE Neon
Posts: 109

Rep: Reputation: 15
Why I always have to apt-get update a different way?


This started quite a while ago when I used to have Ubuntu on my machine. Everytime I did apt-get update, the return would have some BADSIG errors. A Ubuntu forum member suggested me typing in
Quote:
apt-get update -o Acquire::http::No-Cache=True
which ultimately solved my problem. The updates started being without the errors.

But I still have to use that long command for updating my Lenny. This is rather frustrating when I see people referring to the simple apt-get update way.
Anyone has any idea why is this happening?
Thanks for your thoughts.
 
Old 02-17-2008, 07:48 PM   #2
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
try using the apt.conf file.

for example set APT::Cache-Limit 12582912 or to a higher number
 
Old 02-18-2008, 07:48 AM   #3
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Or clean out your cache? Can you post your /etc/apt/sources.list file? (Do you maybe have 15 or 16 items in there?)
 
Old 02-18-2008, 01:11 PM   #4
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: KDE Neon
Posts: 109

Original Poster
Rep: Reputation: 15
Hi Telemachos,
Here is my sources.list and, no, I don't have many items here.
Quote:
## Debian GNU/Linux testing _Lenny_ - Official Snapshot i386 CD Binary-1 20080211-10:27]/ lenny main
deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot i386 CD Binary-1 20080211-10:27]/ lenny main

##Debian Repositories
deb http://ftp.debian.org/debian lenny main contrib non-free
deb-src http://ftp.debian.org/debian lenny main contrib non-free

##Security Updates
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

#Multimedia
deb http://www.debian-multimedia.org lenny main
By the way, how do you "clean out your cache"?

@ JackieBrown: The apt.conf file in the configure-index.gz archive has too many options. I found the Cache-Limit "4194304" line, but I didn't dare change it without much knowledge on it. What are those digits, for example? Bits or bytes? or whatever else? Could you please explain a little?

Thanks for all your cooperation.
 
Old 02-18-2008, 02:33 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,190

Rep: Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038
Try 'man apt-get' and 'man apt.conf' in a console window. It provides many answers.

Cleaning the cache is done with 'apt-get clean'

About the cache limit the man page is quite terse. However it seems to be a pretty innocent command so you could simply try it and sees what happens.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apt-get update and apt-get upgrade rapattack Debian 32 01-28-2008 09:04 AM
Using apt-get to update oli888 MEPIS 1 12-20-2006 05:33 PM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

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

All times are GMT -5. The time now is 07:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration