python安装依赖包经常出错怎么办_由于pythonminim的依赖项未满足,无法安装任何包...

每当我试图在我的ubuntu系统上安装任何软件时,系统都会提示我“未满足的依赖项”错误,并建议我执行apt install-f

我尝试了下面的命令和n个其他的方法来解决这个问题,但找不到安装任何软件的解决方案。Ubuntu版本是14.04sudo apt-get install -f

Reading package lists... Done

Building dependency tree

Reading state information... Done

Correcting dependencies... Done

The following extra packages will be installed:

aptitude aptitude-common libboost-iostreams1.54.0 libcwidget3 libept1.4.12

libpython-stdlib python

Suggested packages:

aptitude-doc-en aptitude-doc tasksel debtags libcwidget-dev python-doc

The following packages will be REMOVED:

aptitude:i386

The following NEW packages will be installed:

aptitude aptitude-common libboost-iostreams1.54.0 libcwidget3 libept1.4.12

The following packages will be upgraded:

libpython-stdlib python

2 upgraded, 5 newly installed, 1 to remove and 63 not upgraded.

3 not fully installed or removed.

Need to get 1,678 kB/2,724 kB of archives.

After this operation, 3,544 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/main libcwidget3 amd64 0.5.16-3.5ubuntu1 [307 kB]

Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty/main aptitude amd64 0.6.8.2-1ubuntu4 [1,371 kB]

Fetched 1,678 kB in 4s (414 kB/s)

(Reading database ... 233444 files and directories currently installed.)

Removing aptitude (0.6.6-1ubuntu1) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1) ...

Selecting previously unselected package aptitude-common.

(Reading database ... 233333 files and directories currently installed.)

Preparing to unpack .../aptitude-common_0.6.8.2-1ubuntu4_all.deb ...

Unpacking aptitude-common (0.6.8.2-1ubuntu4) ...

Selecting previously unselected package libboost-iostreams1.54.0:amd64.

Preparing to unpack .../libboost-iostreams1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...

Unpacking libboost-iostreams1.54.0:amd64 (1.54.0-4ubuntu3.1) ...

Selecting previously unselected package libcwidget3.

Preparing to unpack .../libcwidget3_0.5.16-3.5ubuntu1_amd64.deb ...

Unpacking libcwidget3 (0.5.16-3.5ubuntu1) ...

Selecting previously unselected package libept1.4.12:amd64.

Preparing to unpack .../libept1.4.12_1.0.12_amd64.deb ...

Unpacking libept1.4.12:amd64 (1.0.12) ...

Selecting previously unselected package aptitude.

Preparing to unpack .../aptitude_0.6.8.2-1ubuntu4_amd64.deb ...

Unpacking aptitude (0.6.8.2-1ubuntu4) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1) ...

Setting up python-minimal (2.7.14-1~14.04.york0) ...

Traceback (most recent call last):

File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main

"__main__", fname, loader, pkg_name)

File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code

exec code in run_globals

File "/usr/local/lib/python2.7/compileall.py", line 16, in

import struct

File "/usr/local/lib/python2.7/struct.py", line 1, in

from _struct import *

ImportError: No module named _struct

dpkg: error processing package python-minimal (--configure):

subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:

python-minimal

E: Sub-process /usr/bin/dpkg returned an error code (1)

我总是得到python最小的错误。如何解决这个问题?在

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值