求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 9
- 注册时间: 2018-03-19 10:53
求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
今天新安装了ubuntu-16.04.4-desktop-amd64 然后pip3用不了 python3也不能愉快的玩耍了 求大佬们帮帮忙
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
-
- 帖子: 9
- 注册时间: 2018-03-19 10:53
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
把第一张图出现在错误提示翻译一下。
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
終端機指令及文字回應都照做了 还是第一张图那样 系统还出现了报错信息
請直接複製貼上來
不要摘錄 不要擷圖
方便回文直接引用你貼上來的資料
方便你閱讀
-
- 帖子: 9
- 注册时间: 2018-03-19 10:53
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
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)
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
加我微信,我远程给你解决。
-
- 帖子: 9
- 注册时间: 2018-03-19 10:53
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
python@python-VirtualBox:~$ sudo apt update&&sudo apt upgrade
[sudo] password for python:
Ign:1 http://mirrors.aliyun.com/ubuntu trusty InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu trusty Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
resolvconf : Breaks: sysv-rc (< 2.88dsf-42) but 2.88dsf-41ubuntu6.3 is to be installed
Breaks: sysv-rc:i386 (< 2.88dsf-42)
E: Broken packages
python@python-VirtualBox:~$ sudo apt list --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
python@python-VirtualBox:~$ sudo apt list -a --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
snapd/trusty-updates 2.32.3.2~14.04 amd64
snapd/now 2.23.6+17.04.1 amd64 [installed,upgradable to: 2.32.5~14.04]
[sudo] password for python:
Ign:1 http://mirrors.aliyun.com/ubuntu trusty InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu trusty Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
resolvconf : Breaks: sysv-rc (< 2.88dsf-42) but 2.88dsf-41ubuntu6.3 is to be installed
Breaks: sysv-rc:i386 (< 2.88dsf-42)
E: Broken packages
python@python-VirtualBox:~$ sudo apt list --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
python@python-VirtualBox:~$ sudo apt list -a --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
snapd/trusty-updates 2.32.3.2~14.04 amd64
snapd/now 2.23.6+17.04.1 amd64 [installed,upgradable to: 2.32.5~14.04]
-
- 帖子: 9
- 注册时间: 2018-03-19 10:53
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
python@python-VirtualBox:~$ sudo apt update&&sudo apt upgrade
[sudo] password for python:
Ign:1 http://mirrors.aliyun.com/ubuntu trusty InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu trusty Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
resolvconf : Breaks: sysv-rc (< 2.88dsf-42) but 2.88dsf-41ubuntu6.3 is to be installed
Breaks: sysv-rc:i386 (< 2.88dsf-42)
E: Broken packages
python@python-VirtualBox:~$ sudo apt list --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
python@python-VirtualBox:~$ sudo apt list -a --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
snapd/trusty-updates 2.32.3.2~14.04 amd64
snapd/now 2.23.6+17.04.1 amd64 [installed,upgradable to: 2.32.5~14.04]
[sudo] password for python:
Ign:1 http://mirrors.aliyun.com/ubuntu trusty InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu trusty Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
resolvconf : Breaks: sysv-rc (< 2.88dsf-42) but 2.88dsf-41ubuntu6.3 is to be installed
Breaks: sysv-rc:i386 (< 2.88dsf-42)
E: Broken packages
python@python-VirtualBox:~$ sudo apt list --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
python@python-VirtualBox:~$ sudo apt list -a --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
snapd/trusty-updates 2.32.3.2~14.04 amd64
snapd/now 2.23.6+17.04.1 amd64 [installed,upgradable to: 2.32.5~14.04]
-
- 帖子: 9
- 注册时间: 2018-03-19 10:53
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
python@python-VirtualBox:~$ sudo apt update&&sudo apt upgrade
[sudo] password for python:
Ign:1 http://mirrors.aliyun.com/ubuntu trusty InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu trusty Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
resolvconf : Breaks: sysv-rc (< 2.88dsf-42) but 2.88dsf-41ubuntu6.3 is to be installed
Breaks: sysv-rc:i386 (< 2.88dsf-42)
E: Broken packages
python@python-VirtualBox:~$ sudo apt list --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
python@python-VirtualBox:~$ sudo apt list -a --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
snapd/trusty-updates 2.32.3.2~14.04 amd64
snapd/now 2.23.6+17.04.1 amd64 [installed,upgradable to: 2.32.5~14.04]
[sudo] password for python:
Ign:1 http://mirrors.aliyun.com/ubuntu trusty InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu trusty Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
resolvconf : Breaks: sysv-rc (< 2.88dsf-42) but 2.88dsf-41ubuntu6.3 is to be installed
Breaks: sysv-rc:i386 (< 2.88dsf-42)
E: Broken packages
python@python-VirtualBox:~$ sudo apt list --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
python@python-VirtualBox:~$ sudo apt list -a --upgradable
Listing... Done
snapd/trusty-proposed 2.32.5~14.04 amd64 [upgradable from: 2.23.6+17.04.1]
snapd/trusty-updates 2.32.3.2~14.04 amd64
snapd/now 2.23.6+17.04.1 amd64 [installed,upgradable to: 2.32.5~14.04]
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊
总结:远程连接过去后,排查了很久,没有找到原因。
当时找到可能的故障以为是阿里源引起的。更换源后也没有好转。
后来没有办法,准备放弃时得知该用户在虚拟机的安装模式是自动,没有经过分区。
于是排想可能是引导分区空间不够引起的。
于是重新分区,重新安装,问题解决。
当时找到可能的故障以为是阿里源引起的。更换源后也没有好转。
后来没有办法,准备放弃时得知该用户在虚拟机的安装模式是自动,没有经过分区。
于是排想可能是引导分区空间不够引起的。
于是重新分区,重新安装,问题解决。