
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
생성된 이미지에는 i386이 아닌 amd64 바이너리만 있습니다. 무엇이 잘못되었나요?
답변1
출력 uname -a
에는 미러링된 시스템이 amd64이고 기본값은 set defaultarch <running host architecture>
미러링 amd64로 표시됩니다.
deb-i386
행을 추가하거나(그렇지 않으면 중복됨 deb
) deb
행을 로 변경해 보세요 deb-i386
.
디스크 공간이 매우 부족하지 않은 한 변경하기보다는 추가하는 것이 좋습니다. 이미 amd64를 미러링했으며 나중에 필요할 수 있습니다(그리고 이를 사용하여 apt-mirror
호스트 자체에 패키지를 업그레이드하거나 설치할 수 있습니다). 왜 제거하나요?