求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
zhumlgj
帖子: 9
注册时间: 2018-03-19 10:53

求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#1

帖子 zhumlgj » 2018-04-21 0:00

:Haha :Haha :Haha :Cry :Cry :Cry :Cry :Cry :Cry :Cry 今天新安装了ubuntu-16.04.4-desktop-amd64 然后pip3用不了 python3也不能愉快的玩耍了 求大佬们帮帮忙 :Cry :Cry :Cry :Cry
附件
h.png
如何是好.png
求大神帮忙.png
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#2

帖子 九天星 » 2018-04-21 0:14

代码: 全选

sudo apt update

代码: 全选

sudo apt upgrade
重启一下,然后再

代码: 全选

sudo apt install python3-pip
zhumlgj
帖子: 9
注册时间: 2018-03-19 10:53

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#3

帖子 zhumlgj » 2018-04-21 0:24

九天星 写了:

代码: 全选

sudo apt update

代码: 全选

sudo apt upgrade
重启一下,然后再

代码: 全选

sudo apt install python3-pip


都照做了 还是第一张图那样 系统还出现了报错信息 :Cry :Cry :Cry :Adore :Adore
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#4

帖子 九天星 » 2018-04-21 0:34

把第一张图出现在错误提示翻译一下。
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#5

帖子 九天星 » 2018-04-21 0:51

代码: 全选

sudo apt install python3-setuptools

代码: 全选

sudo apt install python3-dev

代码: 全选

sudo apt install python3-pip
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#6

帖子 poloshiao » 2018-04-21 8:00

都照做了 还是第一张图那样 系统还出现了报错信息
終端機指令及文字回應
請直接複製貼上來
不要摘錄 不要擷圖
方便回文直接引用你貼上來的資料
方便你閱讀
zhumlgj
帖子: 9
注册时间: 2018-03-19 10:53

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#7

帖子 zhumlgj » 2018-04-21 9:44

九天星 写了:

代码: 全选

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)
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#8

帖子 九天星 » 2018-04-21 10:33

加我微信,我远程给你解决。
zhumlgj
帖子: 9
注册时间: 2018-03-19 10:53

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#9

帖子 zhumlgj » 2018-04-21 11:59

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]
zhumlgj
帖子: 9
注册时间: 2018-03-19 10:53

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#10

帖子 zhumlgj » 2018-04-21 11:59

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]
zhumlgj
帖子: 9
注册时间: 2018-03-19 10:53

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#11

帖子 zhumlgj » 2018-04-21 11:59

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]
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 求大佬帮帮忙,怎么解决这个问题 python3安装不了东西 痛苦啊

#12

帖子 九天星 » 2018-04-21 13:10

总结:远程连接过去后,排查了很久,没有找到原因。

当时找到可能的故障以为是阿里源引起的。更换源后也没有好转。

后来没有办法,准备放弃时得知该用户在虚拟机的安装模式是自动,没有经过分区。

于是排想可能是引导分区空间不够引起的。

于是重新分区,重新安装,问题解决。
回复