日志:
dpkg: warning: files list file for package 'python3' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.8-dev' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.8-minimal' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.8' missing; assuming package has no files currently installed
(Reading database ... 274323 files and directories currently installed.)
Removing language-selector-gnome (0.204.2) ...
#this part seems important
/var/lib/dpkg/info/language-selector-gnome.prerm: 6: py3clean: not found
dpkg: error processing package language-selector-gnome (--remove):
installed language-selector-gnome package pre-removal script subprocess returned error exit status 127
dpkg: too many errors, stopping
/var/lib/dpkg/info/language-selector-gnome.postinst: 6: py3compile: not found
dpkg: error while cleaning up:
installed language-selector-gnome package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
language-selector-gnome
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我认为您应该能够重新创建丢失的 sim-link。由于文件存在,请使用-f
强制标志。
sudo ln -s -f /usr/bin/python3.8 /usr/bin/python3