LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to repaire apt-get (https://www.linuxquestions.org/questions/debian-26/how-to-repaire-apt-get-417863/)

openfun 02-21-2006 02:43 AM

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. :cry: Could anybirdy here please help me fix this problem? I'll be really really appreciated.

Thanks a lot!

HappyTux 02-21-2006 10:09 AM

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. :cry: 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


deepclutch 02-23-2006 01:17 PM

Y dont U try as root or sudo
"dpkg-reconfigure apt"


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