error processing archive message should point to /var/cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
$ apt-get dist-upgrade
...
Unpacking libtesseract-data (3.04.01-4.1) ...
dpkg: error processing archive /tmp/apt-
trying to overwrite '/usr/share/
Preparing to unpack .../070-
...
Errors were encountered while processing:
/tmp/apt-
E: Sub-process /usr/bin/dpkg returned an error code (1)
the error message above points to a tempfile path that does not exist any more.
It would probably more useful to point to the file path:
/var/cache/
so that I could dpkg -i that path rather than having to find it.
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: apt 1.3.1
ProcVersionSign
Uname: Linux 4.4.0-45-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Nov 21 09:13:09 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (487 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
Hah, you're right. Not much we can do about that though I think, as the message comes from dpkg. Except maybe add a message stating that the files are somewhere else than mentioned.
We are abusing dpkg's recursive unpacking feature to clean the ordering code up a bit.