Ubuntu apt-get安装virtualenv失败处理一例

在Ubuntu里面安装virtualenv时出现如下提示:
guochongxin@xinu:~/xinu/python$ sudo apt-get install python-virtualenv
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:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.17-0ubuntu5 is to be installed
 libc6 : Breaks: libc6:i386 (!= 2.17-0ubuntu5) but 2.15-0ubuntu10.4 is to be installed
 libc6:i386 : Breaks: libc6 (!= 2.15-0ubuntu10.4) but 2.17-0ubuntu5 is to be installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.4) but 2.17-0ubuntu5 is to be installed
 libc6-i386 : Depends: libc6 (= 2.15-0ubuntu10.4) but 2.17-0ubuntu5 is to be installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
使用sudo apt-get -f install命令,执行后仍是一样提示,最后查到使用如下命令可以解决:
sudo aptitude -f install python-virtualenv
在出现的交互提示中,都是按Y进行确定处理,最终安装成功。

评论

此博客中的热门博文

I/O映射之I/O端口

通过Netlink检测网线插拔

使用seq_file