ubuntu有python环境_如何重置 Ubuntu 14.04 的 Python 环境?

4

2015-03-12 13:31:35 +08:00

@vivisidea

尝试了下似乎不是很靠谱,会 remove 掉一堆相关的东西,试试 --reinstall 看是不是想要的效果。。

xxx:$ sudo apt-get --reinstall install python

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

gir1.2-ubuntuoneui-3.0 gir1.2-unique-3.0 gambas3-gb-form-stock libubuntuoneui-3.0-1 libkms1 pastebinit

Use 'apt-get autoremove' to remove them.

0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 154 not upgraded.

Need to get 168 kB of archives.

After this operation, 0 B of additional disk space will be used.

Get:1 http://mirrors.sohu.com/ubuntu/ precise-updates/main python amd64 2.7.3-0ubuntu2.2 [168 kB]

Fetched 168 kB in 0s (335 kB/s)

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

Preparing to replace python 2.7.3-0ubuntu2.2 (using .../python_2.7.3-0ubuntu2.2_amd64.deb) ...

Unpacking replacement python ...

Processing triggers for doc-base ...

Processing 1 changed doc-base file...

Registering documents with scrollkeeper...

Processing triggers for man-db ...

Setting up python (2.7.3-0ubuntu2.2) ..

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值