root@server:/home/ante# 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:4.4.3) but it is not going to be installed
E: Broken packages
我尝试从 wheezy 安装 libv8-dev,运行挤压。安装很顺利,实际上不需要额外的依赖项。我创建了一个/etc/apt/apt.conf
文件,指定 stable 是我的默认源。然后我运行了一个,apt-get update
然后运行了一个apt-get upgrade
。然后我决定安装lua并看到lua5.2使用apt-cache search
.我安装了,从sources.list中删除了喘息链接并卸载了lua。该顺序可能不正确,因为我的 libc6 似乎已更新并且卸载了许多软件包。现在我只剩下这条消息了。
有没有办法避免重新安装所有内容?我似乎已经得到了 libc6 2.13-26 而不是 2.11.3-3。
答案1
你没有说你是否想以 Squeeze 或 Wheezy 结束。我假设您想要前者,在这种情况下,您可以通过给予它高 pin 优先级来降级到它:
$ cat /etc/apt/preferences
Package: *
Pin: release stable
Pin-Priority: 9000
这样,运行apt-get upgrade && apt-get dist-upgrade
会将所有已安装的软件包“升级”到其 Squeeze 版本。