Не удалось загрузить информацию о репозитории - Software Updater
Я запускаю Ubuntu 14.04LTS, 64bit. Я попытался запустить Software Updater, но у меня появилось сообщение "Не удалось загрузить информацию о репозитории. Проверьте ваше подключение к Интернету" ( снимок экрана).
Я побежал apt-get update
и это дало мне это:
Hit http://security.ubuntu.com trusty-security InRelease
Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports InRelease
Hit http://us.archive.ubuntu.com trusty Release.gpg
Hit http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty Release
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/restricted Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources
Hit http://us.archive.ubuntu.com trusty/multiverse Sources
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease Unable to find expected entry 'non-free/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease Unable to find expected entry 'non-free/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease Unable to find expected entry 'non-free/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'non-free/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Я попытался изменить зеркальный сервер на несколько других, включая "Главный сервер", но результат тот же. Кажется, ошибка исходит от /etc/apt/sources.list
или из /etc/apt/sources.list.d/*
,
Вот /etc/apt/sources.list
:
# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted non-free
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse main non-free restricted universe
deb http://security.ubuntu.com/ubuntu/ trusty-security multiverse main non-free restricted universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports multiverse main non-free restricted universe
Вот /etc/apt/sources.list.d/*
:
# deb http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/jfi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/jfi/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/jfi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/jfi/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu trusty main
# deb http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu trusty main
# deb http://deb.playonlinux.com/ trusty main
# deb http://deb.playonlinux.com/ trusty main
# deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
# deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
Я также снял все флажки "Другое программное обеспечение" в программе "Программное обеспечение и обновления", просто чтобы посмотреть, не связана ли проблема с неофициальным пакетом, но, похоже, нет. Любая идея, чтобы решить это?
2 ответа
Используйте в терминале эту строку:
sudo sed -i 's/\ non-free//' /etc/apt/sources.list
это изменит следующие строки в /etc/apt/sources.list
и пропустить non-free
так они выглядят так:
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
.
.
.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse main restricted universe
deb http://security.ubuntu.com/ubuntu/ trusty-security multiverse main restricted universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports multiverse main restricted universe
это должно решить вашу проблему.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse main non-free restricted universe
deb http://security.ubuntu.com/ubuntu/ trusty-security multiverse main non-free restricted universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports multiverse main non-free restricted universe
non-free
не является компонентом Ubuntu. Это Debian. Эквиваленты Ubuntu restricted
а также multiverse
, Ubuntu просто есть main
, restricted
, universe
а также multiverse
,