问题1:Unmet dependencies. Try ‘apt --fix-broken install‘ with no packages
当你运行 install / remove 都会被打断,报上面错误,就是遇到了依赖出错问题。
运气好的话,你能够输入fix-broken自动解决,但是运气不好就修不好。
问题2:fix-broken报错
这是一个循环的错误:
我运行 apt-get --fix-broken install
,结果报错如下:
Removing sane-utils (1.1.1-5) ...
invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
dpkg: error processing package sane-utils (--remove):
installed sane-utils package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
dpkg: error while cleaning up:
installed sane-utils package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
sane-utils
Processing was halted because there were too many errors.
needrestart is b