在 Ubnutu 18.04 LTS 上下载 build-essential 时发生错误

在 Ubnutu 18.04 LTS 上下载 build-essential 时发生错误

我在 Windows 上使用 Ubuntu 18.04LTS。

当我sudo apt-get install build-essential,它告诉我:

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:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:5.2) but it is not going to be installed
                   Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

并且根据一些段落,我还添加了这些内容source.list

deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe

但错误仍然发生,我不知道如何修复它。请帮助我。谢谢

相关内容