Apt
apt mirror 選擇了錯誤的架構
我嘗試使用 apt-mirror 做一個儲存庫鏡像,但它莫名其妙地選擇了錯誤的架構。
這是鏡像機的架構:
uname -a Linux MyWorkStation 3.2.0-76-generic #111-Ubuntu SMP Tue Jan 13 22:16:09 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux head /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU X5690 @ 3.47GHz stepping : 2 microcode : 0x10 cpu MHz : 3458.056 cache size : 12288 KB physical id : 0
這就是我的 /etc/apt/mirror.list 的樣子:
############# config ################## # # set base_path /var/spool/apt-mirror # # set mirror_path $base_path/mirror # set skel_path $base_path/skel # set var_path $base_path/var # set cleanscript $var_path/clean.sh # set defaultarch <running host architecture> # set postmirror_script $var_path/postmirror.sh # set run_postmirror 0 set nthreads 20 set _tilde 0 # ############# end config ############## deb http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse #deb http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse #deb http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted universe multiverse #deb-src http://archive.ubuntu.com/ubuntu precise-proposed main restricted universe multiverse #deb-src http://archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse clean http://archive.ubuntu.com/ubuntu
創建的鏡像只有 amd64 二進製文件,沒有 i386。它哪裡出錯了?
您的
uname -a
輸出顯示鏡像機器為 amd64,預設set defaultarch <running host architecture>
為鏡像 amd64。嘗試添加
deb-i386
行(否則會重複deb
行)或將deb
行更改為deb-i386
.除非您的磁碟空間非常短缺,否則我建議您添加而不是更改 - 您已經鏡像了 amd64,並且您將來可能需要它(並且您可以使用它來升級或在
apt-mirror
主機本身上安裝軟體包),所以為什麼要刪除它?