相关疑难解决方法(0)

apt-get 更新上的“没有可用的公钥”

执行时apt-get update,我收到以下错误:

root@ADS3-Debian6:/home/aluno# apt-get update
Atingido http://sft.if.usp.br squeeze Release.gpg
Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-en
Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt
Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt_BR
Run Code Online (Sandbox Code Playgroud)

(……)

Obter:10 http://security.debian.org squeeze/updates/non-free i386 Packages [14 B]
Baixados 612 kB em 4s (125 kB/s)                    
Lendo listas de pacotes... Pronto
There is no public key available for the following key IDs: 8B48AD6246925553
Run Code Online (Sandbox Code Playgroud)

debian

156
推荐指数
5
解决办法
26万
查看次数

如何在 Debian Squeeze 上安装 `build-essential`?

我需要在各种过时的发行版上测试调试工具。它适用于 Debian Wheezy,但似乎不可能使用 Debian Squeeze docker 映像添加工作编译器和构建工具。我从 DockerHub 获取图像,然后修复apt存储库以忽略日期并使用archive.debian.org

docker run -it --rm debian:squeeze
$ echo "deb http://archive.debian.org/debian squeeze main" > /etc/apt/sources.list
$ echo "deb http://archive.debian.org/debian-security squeeze/updates main" >> /etc/apt/sources.list
$ echo "Acquire::Check-Valid-Until no;" > /etc/apt/apt.conf.d/99no-check-valid-until
Run Code Online (Sandbox Code Playgroud)

之后我做通常的安装

apt-get update
apt-get install build-essential
Run Code Online (Sandbox Code Playgroud)

但是它因“E:Broken Packages”而失败,没有解决方案可以帮助解决它。有没有可能以某种方式解决这个问题?

root@01feb057d927:/# 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 …
Run Code Online (Sandbox Code Playgroud)

debian apt

2
推荐指数
1
解决办法
1027
查看次数

标签 统计

debian ×2

apt ×1