I’m trying to install pip and it’s refusing to go. I’ve tried several methods to get around it but nothing has worked. I’ve included some of my output below. I’m using the latest image from nvidia. I just installed CUDA 11 but I’m thinking perhaps that didn’t install correctly either. I had a tough time following the documentation for an Ubuntu 18/CUDA11.x installation. Any help would be welcomed. Thanks.
sudo apt-get install python3-pip 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: cuda-drivers-450 : Depends: libnvidia-compute-450 (>= 450.51.05) but it is not going to be installed Depends: libnvidia-gl-450 (>= 450.51.05) but it is not going to be installed libnvidia-decode-450 : Depends: libnvidia-compute-450 (= 450.51.05-0ubuntu1) but it is not going to be installed libnvidia-ifr1-450 : Depends: libnvidia-gl-450 but it is not going to be installed nvidia-compute-utils-450 : Depends: libnvidia-compute-450 but it is not going to be installed nvidia-driver-450 : Depends: libnvidia-gl-450 (= 450.51.05-0ubuntu1) but it is not going to be installed Depends: libnvidia-compute-450 (= 450.51.05-0ubuntu1) but it is not going to be installed nvidia-utils-450 : Depends: libnvidia-compute-450 but it is not going to be installed python3-pip : Depends: python-pip-whl (= 9.0.1-2.3~ubuntu1.18.04.5) but it is not going to be installed Recommends: python3-dev (>= 3.2) but it is not going to be installed Recommends: python3-setuptools but it is not going to be installed Recommends: python3-wheel but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). krypto@nano1:~$ apt --fix-broken install E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? krypto@nano1:~$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common kde-window-manager kinit kio kpackagetool5 kwayland-data kwin-common kwin-data kwin-x11 libdebian-installer4 libkdecorations2-5v5 libkdecorations2private5v5 libkf5activities5 libkf5attica5 libkf5completion-data libkf5completion5 libkf5declarative-data libkf5declarative5 libkf5doctools5 libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5 libkf5idletime5 libkf5jobwidgets-data libkf5jobwidgets5 libkf5kcmutils-data libkf5kcmutils5 libkf5kiocore5 libkf5kiontlm5 libkf5kiowidgets5 libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5 libkf5package-data libkf5package5 libkf5plasma5 libkf5quickaddons5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5 libkf5waylandclient5 libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5 libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11 libkwinglutils11 libkwinxrenderutils11 libqgsttools-p1 libqt5designer5 libqt5help5 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5opengl5 libqt5quickwidgets5 libqt5sql5 libqt5test5 libxcb-composite0 libxcb-cursor0 libxcb-damage0 os-prober python3-dbus.mainloop.pyqt5 python3-icu python3-pam python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebkit qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia qml-module-qtquick2 rdate tasksel tasksel-data Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libnvidia-compute-450 libnvidia-gl-450 The following NEW packages will be installed: libnvidia-compute-450 libnvidia-gl-450 0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded. 71 not fully installed or removed. Need to get 0 B/64.1 MB of archives. After this operation, 257 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 file:/var/cuda-repo-ubuntu1804-11-0-local libnvidia-compute-450 450.51.05-0ubuntu1 [9,231 kB] Get:2 file:/var/cuda-repo-ubuntu1804-11-0-local libnvidia-gl-450 450.51.05-0ubuntu1 [54.9 MB] debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 218428 files and directories currently installed.) Preparing to unpack .../libnvidia-compute-450_450.51.05-0ubuntu1_arm64.deb ... Unpacking libnvidia-compute-450:arm64 (450.51.05-0ubuntu1) ... dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-compute-450_450.51.05-0ubuntu1_arm64.deb (--unpack): trying to overwrite '/usr/lib/aarch64-linux-gnu/libcuda.so', which is also in package nvidia-l4t-cuda 32.7.3-20221122092935 Preparing to unpack .../libnvidia-gl-450_450.51.05-0ubuntu1_arm64.deb ... Unpacking libnvidia-gl-450:arm64 (450.51.05-0ubuntu1) ... dpkg: error processing archive /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-gl-450_450.51.05-0ubuntu1_arm64.deb (--unpack): trying to overwrite '/usr/share/glvnd/egl_vendor.d/10_nvidia.json', which is also in package nvidia-l4t-3d-core 32.7.3-20221122092935 Errors were encountered while processing: /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-compute-450_450.51.05-0ubuntu1_arm64.deb /var/cuda-repo-ubuntu1804-11-0-local/./libnvidia-gl-450_450.51.05-0ubuntu1_arm64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)