Ubuntu(Debian):apt-get:處理repository數字簽名無效、過期、沒有簽名:即 如何強制 apt-get update?


如題:

方式 1:使用apt-get命令行選項:apt-get update --allow-insecure-repositories

方式 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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM