码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu14.0换源

时间:2015-04-30 23:15:09      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:

由于种种原因,决定今天开始从centos7转为ubuntu14.0.但是一开始就遇到了一个问题。ubuntu的源貌似被墙了。没有办法,只好换源。如是参考了下面的帖子。

换源参考链接

但是又出现了一个问题,百度了好久才找到

zhao@ubuntu:~$ sudo apt-get -f install gcc
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:
 gcc : Depends: cpp (>= 4:4.8.2-1ubuntu6) but 4:4.7.3-1ubuntu10 is to be installed
       Depends: gcc-4.8 (>= 4.8.2-5~) but it is not going to be installed
 libreoffice-base-core : Depends: libreoffice-core (= 1:4.0.2-0ubuntu1) but 1:4.2.8-0ubuntu2 is to be installed
 libreoffice-core : Depends: ure (>= 4.2~) but 4.0.2-0ubuntu1 is to be installed
                    Depends: lp-solve (>= 5.5.0.13-5+b1) but it is not going to be installed
                    Depends: libcmis-0.4-4 (>= 0.4.0) but it is not going to be installed
                    Depends: uno-libs3 (>= 4.2.0~rc1) but 4.0.2-0ubuntu1 is to be installed
 libreoffice-draw : Depends: uno-libs3 (>= 4.1.0~alpha) but 4.0.2-0ubuntu1 is to be installed
 libreoffice-impress : Depends: uno-libs3 (>= 4.1.0~alpha) but 4.0.2-0ubuntu1 is to be installed
                       Recommends: libreoffice-avmedia-backend-gstreamer but it is not going to be installed
 libreoffice-math : Depends: libreoffice-core (= 1:4.0.2-0ubuntu1) but 1:4.2.8-0ubuntu2 is to be installed
 libreoffice-writer : Depends: libreoffice-base-core (= 1:4.2.8-0ubuntu2) but 1:4.0.2-0ubuntu1 is to be installed
                      Depends: uno-libs3 (>= 4.2.0~rc1) but 4.0.2-0ubuntu1 is to be installed
 python3-uno : Depends: libreoffice-core (= 1:4.0.2-0ubuntu1) but 1:4.2.8-0ubuntu2 is to be installed
E: Unmet dependencies. Try apt-get -f install with no packages (or specify a solution).

解决方法是:

sudo apt-get install -f 

可以愉快的工作了。

ubuntu14.0换源

标签:

原文地址:http://www.cnblogs.com/FreedomBox/p/4470013.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!