LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-21-2006, 02:43 AM   #1
openfun
Member
 
Registered: Nov 2004
Location: Netherlands
Distribution: Mandrake, Red Hat, Debian
Posts: 34

Rep: Reputation: 15
Unhappy How to repaire apt-get


Dear all:

Yesterday I was really careless. I manually deleted apt-get lock files in /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. Now my apt-get doesn't fucking work. Could anybirdy here please help me fix this problem? I'll be really really appreciated.

Thanks a lot!
 
Old 02-21-2006, 10:09 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by openfun
Dear all:

Yesterday I was really careless. I manually deleted apt-get lock files in /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. Now my apt-get doesn't fucking work. Could anybirdy here please help me fix this problem? I'll be really really appreciated.

Thanks a lot!
On my install the lock file is a zero byte file so you could try touch /var/cache/apt/archives/lock then to make sure the permissions are right chmod 0640 /var/cache/apt/archives/lock.

Code:
ls -l /var/cache/apt/archives/lock
-rw-r-----  1 root root 0 2006-02-20 23:55 /var/cache/apt/archives/lock
I have no such file in the partial directory but if necessary repeat the above for it.

Code:
ls -l /var/cache/apt/archives/partial/lock
ls: /var/cache/apt/archives/partial/lock: No such file or directory
 
Old 02-23-2006, 01:17 PM   #3
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Y dont U try as root or sudo
"dpkg-reconfigure apt"
 
  


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
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-10-2003 11:39 PM
apt-get for slackware (the real apt...not swaret or slapt) hypermegachi Slackware 3 10-31-2003 03:28 PM

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

All times are GMT -5. The time now is 11:40 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