九天星 写了:代码: 全选
sudo apt install python3-setuptools
代码: 全选
sudo apt install python3-dev
代码: 全选
sudo apt install python3-pip
python@python-VirtualBox:~$ sudo apt install python3-setuptools
[sudo] password for python:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python3-setuptools : Depends: python3:any (< 3.5)
Depends: python3-pkg-resources (= 3.3-1ubuntu2) but 20.7.0-1 is to be installed
ubuntu-core-launcher : Depends: snapd (= 2.32.5~14.04) but 2.32.3.2~14.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
python@python-VirtualBox:~$
百度翻译: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
未满足的依赖关系。尝试“APT-GET -F安装”,无软件包(或指定解决方案)。
python@python-VirtualBox:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
python@python-VirtualBox:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
snapd
The following packages will be upgraded:
snapd
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/13.9 MB of archives.
After this operation, 292 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 208672 files and directories currently installed.)
Preparing to unpack .../snapd_2.32.5~14.04_amd64.deb ...
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
Failed to stop snapd.socket: Unit snapd.socket not loaded.
Failed to stop snapd.service: Unit snapd.service not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
Failed to stop snapd.socket: Unit snapd.socket not loaded.
Failed to stop snapd.service: Unit snapd.service not loaded.
dpkg: error processing archive /var/cache/apt/archives/snapd_2.32.5~14.04_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
Errors were encountered while processing:
/var/cache/apt/archives/snapd_2.32.5~14.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)