several days ago I was too boring to do anything else, so I delete all the files under /var/cache/apt/archives, because it is said all these files are installed software packages, I thought they are useless. Then here comes a big problem, when I type apt-get install * or apt-get update, the terminal will give the hint that could not open lock file /var/cache/apt/archives/lock - open, and unable to lock the download directory,
I do
Code:
sudo mkdir /var/cache/apt/archives
sudo mkdir /var/cache/apt/archives/lock
sudo aptitude update
sudo aptitude upgrade
Code:
sudo apt-get update
Code:
sudo apt-get dist-upgrade
Code:
sudo apt-get install *
Code:
E:could not open lock file /var/cache/apt/archives/lock - open(21 is a directory)
E:unable to lock the download directory!
Code:
sudo mv /var/cache/apt/archives/lock ~/.
sudo apt-get clean
By the way, the best way to delete the downloaded package is:
Code:
sudo apt-get clean
1 评论:
I have heard about another way of fix mdf files. Besides, you can visit my blogs at: http://daspeac.livejournal.com/ or http://daspeac.blogspot.com/ where I’m trying to share my experience with regard to data corruption issues.
发表评论