欢迎光临
我们一直在努力
卡尔云 大网数据--高防低价服务器抢购 低至28/月十堰4-4就在零零陆云计算 金华高防物理机 40H64G 30M 158/月 819云计算香港20MCN2 300元/月
林枫云-专注独立IP高频VPS 低价高性价比—迅速云 GoDo云计算韩国物理机低至299元/月 龍行数据:美国100M服务器 299元/月 络V云计算:新加坡100M服务器 1200元/月
CNMCDN防护稳定又实惠 轻松云:美国200兆VPS16元/月 亦宁云200M大带宽 动态BGP低至35/月 低价高效上云-道之云网络 【科御云】香港CDN、延迟低速度快防御高

解决Debian更新源出错以及\\”There is no public key available\\”问题

一般我们再购买和开通Linux VPS主机之后,登入SSH首先需要做的肯定是更新当前服务器的源安装包,这样可以确保服务器的最新安全补丁最新,而且在编译安装软件的时候可以确保软件的最新版本。今天蜗牛在Debian6系统中update更新源的时候出现错误无法更新。

第一、Debian更新源错误提示

W: Failed to fetch http://http.debian.net/debian/dists/squeeze/main/binary-i386/Packages.gz 404 Not Found [IP: 149.20.37.36 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.

出现这样的问题应该是服务器获取不到Debian更新包的文件导致的,我们解决方法就是将服务器的安装源包更新。

第二、Debian更新源安装包

/etc/apt/sources.list

将这个文件内容:

deb http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

这里我们将原来的源更新成阿里云的包。更新保存之后,我们再执行apt-get update -y,一般这样就没有问题。

第三、解决There is no public key available错误

W: There is no public key available for the following key IDs:7638D0442B90D010
W: There is no public key available for the following key IDs:7638D0442B90D010
W: There is no public key available for the following key IDs:9D6D8F6BC857C906

但是,蜗牛这边更新源之后,执行升级命令还出现错误。

apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 7638D0442B90D010
apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 7638D0442B90D010
apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 9D6D8F6BC857C906

根据我们服务器的报错ID提示,我们分别执行更新KEY命令3条。

第四、执行更新命令

apt-get update -y

最后,我们再重新执行更新命令,更新源就没有问题。

赞(0)
未经允许不得转载:沃园 » 解决Debian更新源出错以及\\”There is no public key available\\”问题

评论 抢沙发

评论前必须登录!

立即登录   注册