首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >还原python安装

还原python安装
EN

Ask Ubuntu用户
提问于 2015-06-18 05:28:30
回答 1查看 816关注 0票数 0

我用的是ubuntu精确。此版本上安装的Python版本为2.7.6。但Cloudera预计将达到2.7.3。我刚跟着。整个系统都失效了。我甚至无法安装jdk。我想要的是我想要还原这个变化。不知何故,我需要回到默认的2.7.6。

有什么建议吗?

EDIT1

代码语言:javascript
复制
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo dpkg -C returns

 The following packages have been unpacked but not yet configured.
 They must be configured using dpkg --configure or the configure
  menu option in dselect for them to work:
 libgnome2-0:amd64    The GNOME library - runtime files
libgnome2-bin        The GNOME library - binary files
libgnome2-common     The GNOME library - common files
libgnomevfs2-0:amd64 GNOME Virtual File System (runtime libraries)
libgnomevfs2-common  GNOME Virtual File System (common files)

The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
gconf2               GNOME configuration database system (support tools)

如果我尝试重新配置,那么这就像一个循环错误。最后指出Python模块错误。

EDIT2

代码语言:javascript
复制
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python is already the newest version.
    The following packages were automatically installed and are no longer required:
      gcc-4.8-base:i386 libasan0:i386 libatomic1:i386 libc6-dev:i386 libgcc-4.8-dev:i386 libgmp-dev:i386 libgmpxx4ldbl:i386 libgnutls-dev:i386 libgnutls-openssl27:i386
      libgnutls28-dev:i386 libgnutlsxx28:i386 libgomp1:i386 libitm1:i386 liboath-dev:i386 liboath0:i386 libopenconnect3:i386 libp11-kit-dev:i386 libproxy-dev:i386
      libproxy1:i386 libquadmath0:i386 libstdc++-4.8-dev:i386 libstoken-dev:i386 libstoken1:i386 libtasn1-6-dev:i386 libtomcrypt-dev:i386 libtomcrypt0:i386 libtommath0:i386
      libxml2:i386 libxml2-dev:i386 linux-libc-dev:i386 nettle-dev:i386 zlib1g-dev:i386
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 293 not upgraded.
    6 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 gconf2 (3.2.6-2ubuntu1) ...
    /var/lib/dpkg/info/gconf2.postinst: 74: /var/lib/dpkg/info/gconf2.postinst: gconf-schemas: not found
    dpkg: error processing package gconf2 (--configure):
     subprocess installed post-installation script returned error exit status 127
    dpkg: dependency problems prevent configuration of libgnomevfs2-common:
     libgnomevfs2-common depends on gconf2 (>= 2.28.1-2); however:
      Package gconf2 is not configured yet.

    dpkg: error processing package libgnomevfs2-common (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libgnomevfs2-0:amd64:
     libgnomevfs2-0:amd64 depends on libgnomevfs2-common (= 1:2.24.4-6ubuntu1); however:
      Package libgnomevfs2-common is not configured yet.

    dpkg: error processing package libgnomevfs2-0:amd64 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libgnome2-common:
     libgnome2-common depends on gconf2 (>= 2.28.1-2); however:
      Package gconf2 is not configured yet.

    dpkg: error processing package libgnome2-common (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libgnome2-0:amd64:
     libgnome2-0:amd64 depends on libgnomevfs2-0 (>= No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                                                       No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                       No apport report written because MaxReports is reached already
                                                                                                                                                     No apport report written because MaxReports is reached already
                                         No apport report written because MaxReports is reached already
                                                                                                       1:2.17.90); however:
      Package libgnomevfs2-0:amd64 is not configured yet.
     libgnome2-0:amd64 depends on libgnome2-common (>= 2.32); however:
      Package libgnome2-common is not configured yet.
     libgnome2-0:amd64 depends on libgnome2-common (<< 2.33); however:
      Package libgnome2-common is not configured yet.

    dpkg: error processing package libgnome2-0:amd64 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libgnome2-bin:
     libgnome2-bin depends on libgnome2-0 (>= 2.17.3); however:
      Package libgnome2-0:amd64 is not configured yet.

    dpkg: error processing package libgnome2-bin (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     gconf2
     libgnomevfs2-common
     libgnomevfs2-0:amd64
     libgnome2-common
     libgnome2-0:amd64
     libgnome2-bin
    E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 1

Ask Ubuntu用户

发布于 2015-06-18 05:48:55

可能,您需要从apt-get重新安装python,因为tarball分期付款已经创建了python中使用的文件。

您可以下载python包及其依赖项,将所有文件放在同一个目录中,并使用dpkg安装覆盖现有文件:

  1. 要获得请求程序包,只需运行apt-get install python就可以获得apt将要安装的包的列表。
  2. 若要下载这些文件,请在空文件夹中使用apt-get download [paste here the list of the packages]命令
  3. 若要安装,请在同一个文件夹中使用:dpkg --force-overwrite -i *.deb

我希望它能奏效。祝好运。

编辑:我的回答没有考虑到编辑。在尝试之前,您必须修复libgnome*包中遇到的问题。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/637898

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档