python2.7:无法打开文件'/usr/lib/python2.7/py_compile.py'

我的

apt-get出现很多错误。我尝试手动安装软件包,但是一切似乎都卡住了。

mio@vm:~$ sudo apt-get install --reinstall python2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of python2.7-minimal is not possible, it cannot be downloaded.
The following packages were automatically installed and are no longer required:
  aspell-en libkdc2-heimdal libroken18-heimdal aspell libhdb9-heimdal libpython2.7 libtdb1 libasn1-8-heimdal libgssapi3-heimdal tdb-tools libwind0-heimdal libenchant1c2a libtevent0 libhcrypto4-heimdal
  libhx509-5-heimdal libheimbase1-heimdal libhunspell-1.3-0 libldb1 libheimntlm0-heimdal libaspell15 libkrb5-26-heimdal
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up python2.7-minimal (2.7.5-8) ...
python2.7: can't open file '/usr/lib/python2.7/py_compile.py': [Errno 2] No such file or directory
dpkg: error processing python2.7-minimal (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up mysql-server-5.5 (5.5.33+dfsg-1) ...
configured to not write apport reports
[ ok                                  [....] Stopping MySQL database server: mysqld.
Usage: /etc/init.d/mongod {start|stop|force-stop|restart|force-reload|status}
insserv: warning: script 'mongodb' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `mongodb'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `mongodb'
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Setting up mongodb-10gen (2.4.8) ...
[FAIL] Starting database: mongod failed!
invoke-rc.d: initscript mongodb, action "start" failed.
dpkg: error processing mongodb-10gen (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.

dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      Errors were encountered while processing:
 python2.7-minimal
 mysql-server-5.5
 mongodb-10gen
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

对于Python2.7-minimal,我已经尝试过

apt-get install-重新安装python2.7-minimal

没有成功。所有命令都喜欢

apt-get clean apt-get -f安装

返回相同。

任何帮助对于python以及其他软件包也将是不胜感激的。

我的

我几乎已经找到了问题,并在http://ubuntuforums.org/showthread.php?t=1763604&page=3找到了帮助

简单地做 dpkg -P --force depends <packages who fail>

有关此参数的更多信息:http : //tipstricks.itmatrix.eu/?p=755

并在安装后适当地 sudo aptitude install mysql-server-5.1

不是最干净的方法,但是没有更多错误!

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

python:无法打开文件“ django-admin.py”:[Errno 2]没有这样的文件或目录

来自分类Dev

python:无法打开文件'manage.py':[Errno 2]组成docker时无此文件或目录

来自分类Dev

python:无法打开文件“ django-admin.py”:[Errno 2]没有这样的文件或目录

来自分类Dev

是否有适当的方法使web2py使用Python3而不是Python2?

来自分类Dev

无法打开文件“ hello_world.py”:[Errno 2]没有此类文件或目录

来自分类Dev

Dockerfile:无法打开文件“ ./main.py”:[Errno 2]没有此类文件或目录

来自分类Dev

Windows 7中托管的GExiv2.py(Python)

来自分类Dev

Windows 10 Pro中的Docker:python:无法打开文件'manage.py':[Errno 2]无此文件或目录

来自分类Dev

docker-compose python:无法打开文件'./main.py':[Errno 2]没有这样的文件或目录

来自分类Dev

指示debhelper使用python3,但使用python2运行setup.py

来自分类Dev

使用snapcraft构建python2 snap,python setup.py egg_info错误

来自分类Dev

python tarfile.py“文件无法成功打开”

来自分类Dev

python无法打开文件“ manage.py”-“ heroku运行python manage.py migration命令输入”

来自分类Dev

python无法打开文件“ manage.py”-“ heroku运行python manage.py migration命令输入”

来自分类Dev

如果在.py文件上运行Python2,则尝试显示自定义错误会由于语法错误而失败(.py文件包含f字符串)

来自分类Dev

py2exe无法从six.py导入

来自分类Dev

无法为 python2 安装 numpy

来自分类Dev

在py2和py3中处理Python文件读取选项rU的优雅方法

来自分类Dev

web2py python-ImportError无法导入名称

来自分类Dev

无法工作py2exe

来自分类Dev

ImportError:无法导入名称“ PY2”

来自分类Dev

无法先打开IDE才能打开.py文件

来自分类Dev

Python:py2exe丢失文件路径信息

来自分类Dev

web2py服务zip文件

来自分类Dev

python:创建django应用程序时无法打开文件'manage.py'

来自分类Dev

无法使用 docker-compose 运行两个 docker 容器。我收到错误消息:“python:无法打开文件‘app.py’:[Errno 2] 没有这样的文件或目录”

来自分类Dev

从Applescript或Py2app执行时,MAC OS和Python脚本无法读取文件

来自分类Dev

加密python(.py)文件

来自分类Dev

Python opencv videocapture 无法使用 python3 打开文件,但可以使用 python2

Related 相关文章

  1. 1

    python:无法打开文件“ django-admin.py”:[Errno 2]没有这样的文件或目录

  2. 2

    python:无法打开文件'manage.py':[Errno 2]组成docker时无此文件或目录

  3. 3

    python:无法打开文件“ django-admin.py”:[Errno 2]没有这样的文件或目录

  4. 4

    是否有适当的方法使web2py使用Python3而不是Python2?

  5. 5

    无法打开文件“ hello_world.py”:[Errno 2]没有此类文件或目录

  6. 6

    Dockerfile:无法打开文件“ ./main.py”:[Errno 2]没有此类文件或目录

  7. 7

    Windows 7中托管的GExiv2.py(Python)

  8. 8

    Windows 10 Pro中的Docker:python:无法打开文件'manage.py':[Errno 2]无此文件或目录

  9. 9

    docker-compose python:无法打开文件'./main.py':[Errno 2]没有这样的文件或目录

  10. 10

    指示debhelper使用python3,但使用python2运行setup.py

  11. 11

    使用snapcraft构建python2 snap,python setup.py egg_info错误

  12. 12

    python tarfile.py“文件无法成功打开”

  13. 13

    python无法打开文件“ manage.py”-“ heroku运行python manage.py migration命令输入”

  14. 14

    python无法打开文件“ manage.py”-“ heroku运行python manage.py migration命令输入”

  15. 15

    如果在.py文件上运行Python2,则尝试显示自定义错误会由于语法错误而失败(.py文件包含f字符串)

  16. 16

    py2exe无法从six.py导入

  17. 17

    无法为 python2 安装 numpy

  18. 18

    在py2和py3中处理Python文件读取选项rU的优雅方法

  19. 19

    web2py python-ImportError无法导入名称

  20. 20

    无法工作py2exe

  21. 21

    ImportError:无法导入名称“ PY2”

  22. 22

    无法先打开IDE才能打开.py文件

  23. 23

    Python:py2exe丢失文件路径信息

  24. 24

    web2py服务zip文件

  25. 25

    python:创建django应用程序时无法打开文件'manage.py'

  26. 26

    无法使用 docker-compose 运行两个 docker 容器。我收到错误消息:“python:无法打开文件‘app.py’:[Errno 2] 没有这样的文件或目录”

  27. 27

    从Applescript或Py2app执行时,MAC OS和Python脚本无法读取文件

  28. 28

    加密python(.py)文件

  29. 29

    Python opencv videocapture 无法使用 python3 打开文件,但可以使用 python2

热门标签

归档