无法升级到 23.04,可能是由 Opera 导致的

无法升级到 23.04,可能是由 Opera 导致的

我正在尝试将 22.10 更新到 23.04,但出现以下错误:

Continue [yN] y
Get:1 Upgrade tool signature [819 B]                                                     
Get:2 Upgrade tool [1,260 kB]                                                            
Fetched 1,261 kB in 0s (0 B/s)                                                           
authenticate 'lunar.tar.gz' against 'lunar.tar.gz.gpg' 
extracting 'lunar.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Hit http://gb.archive.ubuntu.com/ubuntu kinetic InRelease                                
Hit http://gb.archive.ubuntu.com/ubuntu kinetic-updates InRelease                        
Hit http://gb.archive.ubuntu.com/ubuntu kinetic-backports InRelease                      
Get:1 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.10 ./ InRelease [1,604 B]
Hit http://security.ubuntu.com/ubuntu kinetic-security InRelease                         
Fetched 1,604 B in 0s (0 B/s)                                                            
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done
Fetched 0 B in 0s (0 B/s)                                                                
cat: /tmp/opera.timestamp: No such file or directory
sh: 1: [: -ne: argument expected
rm: cannot remove '/tmp/opera.timestamp': No such file or directory
Exception during pm.DoInstall():  E:Problem executing scripts DPkg::Post-Invoke 'if [ `stat -c %Z $(readlink -f $(which opera))` -ne `cat /tmp/opera.timestamp` ]; then /root/.scripts/fix-opera.sh; fi; rm /tmp/opera.timestamp', E:Sub-process returned an error code

Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeViewText.py", line 138, in _handleException
    apport_crash(type, value, tb)
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/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-wqzyt1tn/lunar", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeMain.py", line 241, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeController.py", line 2042, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeController.py", line 1871, in fullUpgrade
    if not self.doPostInitialUpdate():
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeController.py", line 906, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
    func()
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeQuirks.py", line 126, in lunarPostInitialUpdate
    self._maybe_prevent_flatpak_auto_removal()
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/DistUpgrade/DistUpgradeQuirks.py", line 519, in _maybe_prevent_flatpak_auto_removal
    self.controller.cache.commit(
  File "/tmp/ubuntu-release-upgrader-wqzyt1tn/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

最初,我从一个 .deb 文件安装了 Opera,我认为通过 Snap 删除并重新安装可能会有帮助,但我遇到了同样的错误。卸载 Opera 后,它仍然不起作用,尽管我遇到了另一个错误(遗憾的是我记不起是什么了)。

相关内容