apt-get fails to install package, but due to a non-existent file?
I am running 12.04
root@testbox:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise
root@testbox:~# uname -a
Linux logger 3.2.0-57-virtual #87-Ubuntu SMP Tue Nov 12 21:53:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root@testbox:~#
and had problems upgrading logrotate. So, I decided to apt-get remove --purge it and then reinstall. But, when I try to install I get:
root@testbox:~# apt-get install logrotate
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
logrotate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.0 kB of archives.
After this operation, 188 kB of additional disk space will be used.
Get:1 http://
Fetched 36.0 kB in 0s (217 kB/s)
(Reading database ... 75153 files and directories currently installed.)
Unpacking logrotate (from .../logrotate_
dpkg: error processing /var/cache/
trying to overwrite `/etc/cron.
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@testbox:~#
But, none of those files exist
root@testbox:~# ls /etc/cron.
root@testbox:~#
Also, shouldn't the package be downloaded to /var/cache/
root@testbox:~# ls -l /var/cache/
total 4
-rw-r----- 1 root root 0 Dec 7 2011 lock
drwxr-xr-x 2 root root 4096 Dec 16 09:01 partial
root@testbox:~# ls -l /var/cache/
total 0
root@testbox:~#
Just to be sure, logrotate is still being reported as not there:
root@testbox:~# dpkg -l | grep logrotate
root@testbox:~#
Just to make sure I did not screwed up the config file,
root@testbox:~# cat /etc/apt/
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://
deb-src http://
deb http://
deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://
deb-src http://
deb http://
deb-src http://
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://
# deb-src http://
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://
# deb-src http://
root@testbox:~#
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Raubvogel for more information if necessary.