一.apt-get 错误之
dpkg:error processing/var/cache/apt/archives/sysvutils_2.86.ds1-14.1ubuntu45.1_i386.deb(–unpack):
tryingto overwrite ‘/usr/share/man/man1/mesg.1.gz’, which is also inpackage sysvinit-utils 2.88dsf-
解决方法:sudo dpkg -i –force-overwrite /var/cache/apt/archives/******.deb
然后: sudo apt-get -f install
二. dpkg -i *.deb 出现
dpkg: error processing **软件包名 (–install):
依赖关系问题 - 仍未被配置
解决方法:sudo apt-get -f install
三. dpkg: error: dpkg status database is locked by another process
解决办法:sudo rm -rf /var/lib/dpkg/lock
四.apt-get update 时候
W: Duplicate sources.list entry when do “sudo apt-get update”
解决办法:sudo gedit /etc/apt/sources.list
里面有重复的源,删除掉重复的源就OK了。
五.W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_oneiric_main_source_Sources Hash 校验和不符
W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_oneiric_main_binary-i386_Packages Hash 校验和不符
E: Some index files failed to download. They have been ignored, or old ones used instead.
解决办法:软件源-其他软件- 不要勾选两个独立就好了
六.WARNING: python-gevent not installed. Please wget --no-check-certificate --header=&quot;Host: goagent.googlecode.com&quot; [<span style="color: #ff0000;">http://www.google.cn/files/gevent-1.0dev-macosx-intel.egg
](http://www.google.cn/files/gevent-1.0dev-macosx-intel.egg%60)
解决办法:
curl -L -O https://github.com/downloads/surfly/gevent/gevent-1.0rc2.tar.gz && tar xvzpf gevent-1.0rc2.tar.gz && cd gevent-1.0rc2 && sudo python setup.py install