error processing archive message should point to /var/cache

Bug #1643568 reported by Scott Moser
6
This bug affects 1 person
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-dpkg-install-5RxrWp/069-libtesseract-data_3.04.01-4.1_all.deb (--unpack):
 trying to overwrite '/usr/share/tesseract-ocr/tessdata/configs/ambigs.train', which is also in package libtesseract3 3.04.01-4build1
Preparing to unpack .../070-libtesseract3_3.04.01-4.1_amd64.deb ..
...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-5RxrWp/069-libtesseract-data_3.04.01-4.1_all.deb
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/apt/archives/libtesseract-data_3.04.01-4.1_all.deb

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
ProcVersionSignature: Ubuntu 4.4.0-45.66-generic 4.4.21
Uname: Linux 4.4.0-45-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
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)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

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.

Changed in apt (Ubuntu):
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.