0

I have been getting this error when I try to run synaptic or package installer.

E: The package net.downloadhelper.coapp:i386 needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.

I'm running Ubuntu 20.04.6 LTS

Any ides on how to fix it? Thank you in advance.

2 Answers2

1

The error message says file not found. Since you are trying to delete the package, it doesn't matter what that file is so just create a blank file to satisfy the uninstall script so that it will run without errors:

sudo mkdir  /opt/vdhcoapp/
sudo touch /opt/vdhcoapp/vdhcoap

Now you can remove the package:

sudo dpkg --remove --force-remove-reinstreq net.downloadhelper.coapp:i386 

If you get file not found for other files, then create those files too using the touch command or just run the following command to create all the needed files:

for i in LICENSE.txt README.md ffmpeg ffprobe filepicker vdhcoapp xdg-open; do sudo touch /opt/vdhcoapp/$i; done

and then remove the package:

sudo dpkg --remove --force-remove-reinstreq net.downloadhelper.coapp:i386 

To explain the last command, this is a "for loop" that runs the command sudo touch /opt/vdhcoapp/$i where $i is each variable listed after "for i in" — the loop runs the touch command for each one.

So it basically runs the following commands one by one until none are left:

sudo touch /opt/vdhcoapp/LICENSE.txt
sudo touch /opt/vdhcoapp/README.md
sudo touch /opt/vdhcoapp/ffmpeg
sudo touch /opt/vdhcoapp/ffprobe
sudo touch /opt/vdhcoapp/filepicker
sudo touch /opt/vdhcoapp/vdhcoapp
sudo touch /opt/vdhcoapp/xdg-open
mchid
  • 44,904
  • 8
  • 102
  • 162
0

Had the same problem. I fixed mine using the following commands:

sudo rm -rf /opt/vdhcoapp/
sudo rm -i /var/lib/dpkg/info/net.downloadhelper.coapp.*

I could then reinstall it properly and/or remove it without an issue.