Я новичок в Ubuntu. Я использую Ubuntu 14.04.02 LTS внутри VMware. Поскольку я за сетевым брандмауэром, я отредактировал файл apt.conf, чтобы apt-get работал за прокси-сервером, и это нормально. Но когда я делаю
sudo apt-get update
, я получаю следующее:
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://us.archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://files.ettus.com trusty InRelease
Ign http://security.ubuntu.com trusty-security Release.gpg
Ign http://us.archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty Release.gpg
Ign http://files.ettus.com trusty Release.gpg
Ign http://us.archive.ubuntu.com trusty-backports InRelease
Ign http://security.ubuntu.com trusty-security Release
Ign http://us.archive.ubuntu.com trusty Release.gpg
Ign http://extras.ubuntu.com trusty Release
Ign http://files.ettus.com trusty Release
Ign http://us.archive.ubuntu.com trusty-updates Release.gpg
Ign http://us.archive.ubuntu.com trusty-backports Release.gpg
Ign http://archive.ubuntu.com trusty Release.gpg
Ign http://us.archive.ubuntu.com trusty Release
Ign http://us.archive.ubuntu.com trusty-updates Release
Ign http://archive.ubuntu.com trusty Release
Ign http://us.archive.ubuntu.com trusty-backports Release
Err http://archive.ubuntu.com trusty/main Sources
404 Not Found
Err http://archive.ubuntu.com trusty/restricted Sources
404 Not Found
Err http://archive.ubuntu.com trusty/multiverse Sources
404 Not Found
Err http://files.ettus.com trusty/main amd64 Packages
404 Not Found
Err http://files.ettus.com trusty/main i386 Packages
404 Not Found
Err http://extras.ubuntu.com trusty/main Sources
404 Not Found
Ign http://files.ettus.com trusty/main Translation-en_US
Ign http://files.ettus.com trusty/main Translation-en
Err http://extras.ubuntu.com trusty/main amd64 Packages
404 Not Found
Err http://extras.ubuntu.com trusty/main i386 Packages
404 Not Found
... много чего здесь ...
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/universe/source/Sources 404 Not Found
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources 404 Not Found
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/restricted/source/Sources 404 Not Found
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/multiverse/source/Sources 404 Not Found
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/restricted/binary-amd64/Packages 404 Not Found
... и многое другое ...
Я покопался в интернете и обнаружил, что в некоторых путях отсутствует расширение файла в конце. Это часть проблемы? Как я уже сказал, я совершенно новичок в Ubuntu и все еще разбираюсь. Как я могу решить эту проблему?
Я сделал etc / apt / sources.list и получил следующее:
# deb cdrom:[Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)]/ trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted multiverse #Added by software-properties
# 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 multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe main restricted #Added by software-properties
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe main restricted multiverse #Added by software-properties
## 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 http://us.archive.ubuntu.com/ubuntu/ trusty-updates 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.
## 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.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu trusty-security main restricted multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security universe main restricted multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu trusty-security universe
## 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
Я нашел этот ответ, но мои источники Файл .list даже не содержит строки, которую нужно было удалить, так что это не помогло. Я также посмотрел здесь , но это не решило мою проблему. Я поставлен в тупик на этом. Какие-либо предложения? Это повторяющийся вопрос, который я не нашел? Спасибо за вашу помощь.
С уважением, Маршалл
Ну, с помощью коллеги я получил его работа. Было два главного, которое мы сделали:
(1) Мы устанавливаем настройки прокси в файле среды, а не apt.conf (таким образом, настройки прокси были бы установлены для каждого приложения). Кроме того, мы действительно находили, что мои настройки прокси были установлены неправильно (благодарен за то, что steeldriver просит, чтобы я проверил это дважды).
http_proxy=<correct proxy setting>
https_proxy=<correct proxy setting>
no_proxy=<internal work website url>
установка no_proxy для собственного внутреннего веб-сайта моей работы, так как мы не используем прокси для доступа к нему, таким образом, без no_proxy переменной среды, я не был бы в состоянии получить доступ к тому веб-сайту.
(2) я вошел в/etc/sudoers файл и добавил Значения по умолчанию для каждой переменной среды после Значений по умолчанию env_reset (таким образом, было 3 строки, которые я добавил). Оказывается, что это было повреждено; вместо этого, мы просто добавили эти 3 переменные среды на той же строке как Значения по умолчанию env_reset с env_keep, как так:
Defaults env_reset, env_keep+=no_proxy, env_keep+=http_proxy, env_keep+=https_proxy
С этим, эти переменные среды не исчезают каждый раз, когда я использовал бы sudo. Теперь я в порядке очень хорошо.