博文

目前显示的是标签为“apt-get”的博文

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...

apt-get update失败处理

最近在Ubuntu上面执行sudo apt-get update时出现如下提示: *** Error in `appstreamcli': double free or corruption (fasttop): 0x0000000001549c80 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7faf638d87e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7faf638e137a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7faf638e553c] /usr/lib/x86_64-linux-gnu/libappstream.so.3(as_component_complete+0x439)[0x7faf63c5dd19] /usr/lib/x86_64-linux-gnu/libappstream.so.3(as_data_pool_update+0x44a)[0x7faf63c5ef0a] /usr/lib/x86_64-linux-gnu/libappstream.so.3(as_cache_builder_refresh+0x1c2)[0x7faf63c54272] appstreamcli(ascli_refresh_cache+0x12e)[0x4049de] appstreamcli(as_client_run+0x6fb)[0x403ceb] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7faf63881830] appstreamcli(_start+0x29)[0x403519] 该问题需要执行如下命令才能解决: sudo apt-get purge libappstream3 执行完后再次执行sudo apt-get update命令就正常了。