乐云主机笔记

  • 首页
  • 主机优惠
  • 学习记录
  • 新手教程
  • 自用主机
  • 资源下载
  • 网赚项目
  • 其他
  • pingtest

  1. 首页
  2. 新手教程
  3. 正文

解决Debian7和8 在apt-get update时404错误和“无法更新,错误7638D0442B90D010”等问题

2019年8月11日 1139点热度 0人点赞 0条评论

update时404问题解决

Debian7和8的官方源失效了,其实是进入存档阶段了。导致更新和安装软件失败。需要做的是更改源到存档地址。

Debian7一键解决方法:

cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;echo "deb http://archive.debian.org/debian/ wheezy main contrib non-free" > /etc/apt/sources.list;cat /etc/apt/sources.list;apt-get update;

其实就是把源修改为:
http://archive.debian.org/debian/

/etc/apt/sources.list

, 使用vi /etc/apt/sources.list,或者宝塔文件管理器直接打开。也可以手动修改

分享的几个可用源

  1. 阿里云的,目前可用,但可能是没同步好,过几天就和官方的同步了,就不行了.
    http://mirrors.aliyun.com/debian/
  2. 163的,部分也404了,但是不影响安装软件,速度也是最快的。
    http://mirrors.163.com/debian/
  3. debian官方的存档
    https://snapshot.debian.org/archive/debian/20190321T212815Z/
  4. 这里面也有不少的
    https://www.debian.org/distrib/archive

阿里云给的详细帮助,自己替换相关源的网址即可.

debian 7.x (wheezy)
编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

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

debian 8.x (jessie)
编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)

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

无法更新的问题

Debian无法更新,错误7638D0442B90D010

错误:

root@myserver:~# apt-get update
 Get:1 http://security.debian.org wheezy/updates Release.gpg [1571 B]
 Get:2 http://security.debian.org wheezy/updates Release [102 kB]
 Get:3 http://ftp.debian.org wheezy Release.gpg [2390 B]
 ....
 Reading package lists... Done
 W: There is no public key available for the following key IDs:
 9D6D8F6BC857C906
 W: There is no public key available for the following key IDs:
 7638D0442B90D010

解决方案:

apt-get install debian-keyring debian-archive-keyring
apt-get update
标签: 暂无
最后更新:2020年3月21日

letvps

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

分类
  • 主机优惠
  • 其他
  • 域名优惠
  • 学习记录
  • 新手教程
  • 网赚项目
  • 脚本源码
  • 自用主机
  • 资源下载
书签
  • AdvinServers.com
  • 猫云云计算

COPYRIGHT © 2021 Letcloud.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

粤ICP备15031609号-3