Some time ago i installed Opera via snap. I uninstalled it later, but since then I have problem installing new packages. I reinstalled Opera and also installed a stable deb version. This did not help, so once again I removed this. I would like now to do the release upgrade. The error I receive is:
readlink: missing operand
Try 'readlink --help' for more information.
stat: missing operand
Try 'stat --help' for more information.
Exception during pm.DoInstall(): E:Problem executing scripts DPkg::Pre-Invoke 'stat -c %Z $(readlink -f $(which opera)) > /tmp/opera.timestamp', E:Sub-process returned an error code
Error in sys.excepthook:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeViewText.py", line 138, in _handleException
apport_crash(type, value, tb)
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeApport.py", line 57, in apport_crash
apport_excepthook(type, value, tb)
TypeError: apport_excepthook() missing 1 required positional argument: 'exc_tb'
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-bk30gewy/lunar", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeController.py", line 2042, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeController.py", line 1871, in fullUpgrade
if not self.doPostInitialUpdate():
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeController.py", line 906, in doPostInitialUpdate
self.quirks.run("PostInitialUpdate")
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
func()
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeQuirks.py", line 126, in lunarPostInitialUpdate
self._maybe_prevent_flatpak_auto_removal()
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeQuirks.py", line 519, in _maybe_prevent_flatpak_auto_removal
self.controller.cache.commit(
File "/tmp/ubuntu-release-upgrader-bk30gewy/DistUpgrade/DistUpgradeCache.py", line 309, in commit
apt.Cache.commit(self, fprogress, iprogress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 668, in commit
raise SystemError("installArchives() failed")
SystemError: installArchives() failed
The only topic related to this I found here: After deleting opera browser I have E: Problem executing scripts DPkg but this does not help. Anybody can suggest anything?