[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apt errors: Warning: could not lock the cache file.



Sven Hartrumpf <Sven.Hartrumpf@FernUni-Hagen.de> writes:

> I have installed packages using aptitude when my / partition filled up
> by some /etc ... files (from CUPS packages).
> Installation failed therefore.
> Now, everytime I call aptitude I get:
> "Apt errors: Warning: could not lock the cache file. Opening in read-only
> mode"
> and therefore can not de/select anything in aptitude.
> I have found some lock files for apt and deleted them. But this did not
> solve the problem.
> Any ideas?


I've gotten this type of error when I've accidentally tried to run
apt-get as a regular user. You have to be root in order to install new
packages.


HTH



Reply to: