如題:
方式 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