LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-28-2009, 01:03 AM   #1
tianlou
LQ Newbie
 
Registered: Nov 2004
Location: japan
Distribution: debian
Posts: 3

Rep: Reputation: 0
how to do when apt archive is broken ?


My /var/cache/apt/archive is now broken
and I cannot use apt.

I found that my /var partition was full (completely with 0 bite of free space)

With analysing utilities, I found that that was because of apt's caches.

It never happen when you use aptitude I guess but since some months I have been using synaptic.

I couldn't do ' aptitude clean ' because it requires some free space in /var.

In a some wrong way, I broke something in my archive directry.

Now when I tap aptitude update or something,
apt refuses it saying it is impossible because archive is broken.
 
Old 02-28-2009, 01:56 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,687

Rep: Reputation: Disabled
You can find some useful tricks here:
http://sidux.com/PNphpBB2-viewtopic-t-9449.html
Google is your friend.
cheers,
jdk
 
Old 02-28-2009, 02:45 AM   #3
tianlou
LQ Newbie
 
Registered: Nov 2004
Location: japan
Distribution: debian
Posts: 3

Original Poster
Rep: Reputation: 0
I think the article you taught me is a good one.
But unfortunately I cannot find any useful trick for my actual situation.

# aptitude update
E: Le répertoire d'archive /var/cache/apt/archives/partial n'existe pas.

that is to say:
E: The archive directory /var/cache/apt/archives/partial doesn't exist.

My archive directory is broken.

I must find some way to force apt to recreate the directory.
Or I must reinstall the system ?

Anyway, thank you very much for your kind information.
 
Old 02-28-2009, 02:56 AM   #4
tianlou
LQ Newbie
 
Registered: Nov 2004
Location: japan
Distribution: debian
Posts: 3

Original Poster
Rep: Reputation: 0
solved

Hey, I found a very simple solution here.

http://forum.ubuntu-fr.org/viewtopic.php?id=61013

Thank you very much.
 
Old 02-28-2009, 04:52 AM   #5
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,687

Rep: Reputation: Disabled
Quote:
Originally Posted by tianlou View Post
Hey, I found a very simple solution here.

http://forum.ubuntu-fr.org/viewtopic.php?id=61013

Thank you very much.
Pas de problème. Ça m'a fait plaisir (No problem, it was my pleasure). Did that solution work?
Cheers,
jdk
 
Old 02-28-2009, 05:36 AM   #6
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 673
Blog Entries: 11

Rep: Reputation: 36
Hi. I'm interested in this problem, but I don't speak French(??!!) Could somebody outline what the solution actually is? Thanks.
 
Old 02-28-2009, 06:42 AM   #7
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
The answer appears to be this: get root privileges and then -
Code:
mkdir -pv /var/cache/apt/archives/partial
If I understand correctly, you just need to give APT a place to work, and creating that directory does the trick.
 
  


Reply

Tags
apt-get, aptitude


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 Broken? corbintechboy Ubuntu 6 01-20-2008 11:10 AM
apt-get is broken irvken Linux - Software 3 12-12-2004 04:18 AM
apt-get broken? limiter Linux - Software 4 03-21-2004 05:26 PM
How to setup own apt archive palanisaravanan Debian 5 02-21-2004 09:37 AM
broken apt-get mindcry Linux - Software 0 05-24-2003 09:55 AM


All times are GMT -5. The time now is 03:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration