在 Ubuntu 18.04 上,当我想安装推荐的 Nvidia 驱动程序时,我得到了这个。
sudo apt install nvidia-340
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libargtable2-0 libass5 libavcodec-ffmpeg56 libavdevice-ffmpeg56
libavfilter-ffmpeg5 libavformat-ffmpeg56 libavresample-ffmpeg2
libavutil-ffmpeg54 libbluray1 libboost-random1.58.0 libboost-regex1.58.0
libboost-thread1.58.0 libcryptopp-dev libethereum libfdk-aac0 libjsoncpp1
libjsonrpccpp-client0 libjsonrpccpp-common0 libjsonrpccpp-server0
libleveldb1v5 libmicrohttpd10 libmicrohttpd12 libnvidia-common-396
libopencv-core2.4v5 libopencv-imgproc2.4v5 libopenjpeg5 libpostproc-ffmpeg53
libschroedinger-1.0-0 libsdl-ttf2.0-0 libswresample-ffmpeg1
libswscale-ffmpeg3 libtbb2 libva1 libx264-148 libx265-79 miniupnpc
nvidia-kernel-common-396 nvidia-kernel-source-396 nvidia-prime php7.1-common
Use 'sudo apt autoremove' to remove them.
The …
Run Code Online (Sandbox Code Playgroud) 这是具体问题:
The following packages have unmet dependencies:
libpython3.10-stdlib : Depends: libpython3.10-minimal (= 3.10.4-1+focal1) but it is not going to be installed
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but it is not going to be installed
Recommends: python3.10 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
我应该清除或重新安装哪个软件包?系统不允许两者都不做autoremove, fix broken, dist-upgrade
?
库班图 20.04 LTS
Ubuntu 20.04 附带 python 3.8 作为默认版本。我通过添加deadsnakes ppa安装了python 3.10。运行“sudo apt remove python3.10”时出现以下错误。
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is to be installed
Recommends: python3.10 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)
我该如何解决?我按照建议运行了“sudo apt --fix-broken install”;它给出以下错误:
Reading …
Run Code Online (Sandbox Code Playgroud)