第一次安装 Ubuntu 14.04.3 后立即面临依赖关系损坏的问题?

第一次安装 Ubuntu 14.04.3 后立即面临依赖关系损坏的问题?

我按照这些步骤只是为了摆脱破坏的依赖关系问题,但无济于事。

  1. 全新安装 ubuntu 14.04.3 LTS
  2. 尝试通过 sudo apt-get install g++ 安装 g++
  3. BOOM... 新安装之前依赖关系被破坏

我想,也许我把 ubuntu VM 上的东西搞得一团糟,所以创建一个新的 VM 不会有什么坏处,而且我会把所有东西都弄得干净整洁,但没办法。有什么严重的问题吗?这是安装 g++ 时的错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
g++:i386 : Depends: cpp:i386 (>= 4:4.8.2-1ubuntu6) but it is not going to be      installed
        Depends: gcc:i386 (>= 4:4.8.2-1ubuntu6) but it is not going to be installed
        Depends: g++-4.8:i386 (>= 4.8.2-5~) but it is not going to be installed
        Depends: gcc-4.8:i386 (>= 4.8.2-5~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

安装新系统后,您需要通过运行来更新软件包列表

sudo apt-get update

执行此操作并尝试再次安装 g++。

相关内容