当前位置首页 > Debian知识

Ubuntu(Debian):apt-get:处理repository数字签名无效、过期、没有签名:即如何强制apt-getup

阅读次数:288 次  来源:admin  发布时间:

如题:

方式 1:使用apt-get命令行选项:apt-get update --allow-insecure-repositorie

方式 2:使用/etc/apt/apt.conf配置。(麻烦,现在忘了配置参数了)

杂项:

1 : 使用apt-get 只下载deb文件时,只能自动下载大部分的系统依赖的未安装的deb包,并

不能100%保证依赖deb包都下载下来! 切记!

as of:

apt-get update --allow-insecure-repositories
apt-get install gcc-4.4 make libc6-dev --reinstall -d
apt-cache search -n libaio
apt-cache policy libaio1
apt-get install libaio1=0.3.109-2ubuntu1   --reinstall -d
apt-cache policy libaio-dev
apt-get install libaio-dev=0.3.109-2ubuntu1   --reinstall -d
apt-get install libaio1=0.3.109-2ubuntu1   libaio-dev=0.3.109-2ubuntu1   --reinstall -d

2:使用新版的apt-get 下载deb包的方式(指定版本、no有效签名、仅仅下载、不希望依赖)

# 该方式下载的系统的apt的cache下

apt-get -y install libc6-dev=2.15-0ubuntu10.18 --reinstall -d -m

apt-get -y install libc6-dev=2.15-0ubuntu10.18 --reinstall -d -m

apt-get -y install libc6-dev=2.15-0ubuntu10.18 --reinstall -d -m

#该方式直接下载到当前工作目录

apt-get -y download libc6-dev=2.15-0ubuntu10.18 -d -m --allow-unauthenticated apt-get -y download libc6-dev=2.15-0ubuntu10.18 -d --allow-unauthenticated apt-get -y download libc6-dev=2.15-0ubuntu10.18 -m --allow-unauthenticated apt-get -y download libc6-dev=2.15-0ubuntu10.18 --allow-unauthenticated

上一篇:CentOS7更新curl为最新版本
下一篇:IIS7下使用4.0框架集成模式URLRewriter重写中文URL乱码问题