16.04 Обновление: не удалось загрузить Пустые файлы не могут быть действительными архивами

После обновления с 15.10 по 16.04 я получаю следующую ошибку на apt-get update:

Reading package lists... Done
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/source/Sources  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/universe/source/Sources  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/multiverse/source/Sources  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/binary-amd64/Packages  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/binary-i386/Packages  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/i18n/Translation-en  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/universe/binary-amd64/Packages  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/universe/binary-i386/Packages  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/universe/i18n/Translation-en  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/multiverse/binary-amd64/Packages  Empty files can't be valid archives
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/multiverse/binary-i386/Packages  Empty files can't be valid archives
E: Some index files failed to download. They have been ignored, or old ones used instead.

Кто-нибудь знает, как решить эту ошибку?

1
задан 25 April 2016 в 11:28

3 ответа

Решено использовать это:

sudo cd /etc/apt
sudo mv sources.list sources.list.ok

sudo echo <<EOF
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-security main restricted universe multiverse
EOF > sources.list

sudo apt-get clean
sudo apt-get update

После обновления и обновления вы можете вернуть исходные файлы sources.list в исходное состояние !!

4
ответ дан 23 May 2018 в 11:48
  • 1
    Это решило мою проблему, но немного больше контекста было бы полезно понять, почему эта проблема происходит и что делает это зеркало, чтобы ее исправить ... – madpoet 19 September 2016 в 15:04

Я получал это в течение последних нескольких месяцев после обновления, но просто запускал:

apt-get clean

исправил его. Не нужно менять исходные серверы, как предлагали другие.

2
ответ дан 23 May 2018 в 11:48
apt-get clean

работал для меня в сочетании с:

apt-key update

и после шагов, найденных в этом ответе:

Не удалось решить ошибку GPG

1
ответ дан 23 May 2018 в 11:48

Другие вопросы по тегам:

Похожие вопросы: