ubuntu no chroot apt-get update fail - Não é possível analisar o pacote

1

Quando faço chroot no Ubuntu 12.04 e executo apt-get update no meu chroot home, recebo:

100% [21 Translation-en gzip 0 B] [22 Translation-en bzip2 3E: Unable to parse package file /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_precise_multiverse_i18n_Translation-en.decomp (1)

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_precise_main_source_Sources Hash Sum mismatch  

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_precise_universe_i18n_Translation-en Encountered a section with no Package: header             

E: Some index files failed to download. They have been ignored, or old ones used instead.

Como posso corrigir esse erro?

    
por JimmyHo 21.07.2014 / 09:08

1 resposta

1

mount /dev/sda2 /mnt/xxx
mount -t sysfs none /mnt/xxx/sys
mount -t proc none /mnt/xxx/proc
mount --bind /dev/ /mnt/xxx/dev
mount --bind /dev/pts /mnt/xxx/dev/pts
mount -o bind /etc/resolv.conf /mnt/xxx/etc/resolv.conf
chroot /mnt/xxx
    
por 28.04.2015 / 09:33