Я получаю ошибку & ldquo; Не удалось загрузить информацию репозитория. Проверьте подключение к Интернету. & Rdquo; Как я могу это исправить?

Я не смог обновить машину Ubuntu 16.04 за последний месяц из-за этой ошибки. Когда я нажимаю для просмотра деталей, я получаю

W:Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:2 and /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:3, W:The repository 'cdrom://Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2) xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:The repository http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch cdrom://Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)/dists/xenial/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs, E:Failed to fetch http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/dists/xenial/main/source/Sources 404 Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.

Можете ли вы рассказать мне, что я, возможно, сделал не так, или что я могу сделать, чтобы отредактировать это?

0
задан 9 July 2017 в 21:00

2 ответа

Я предлагаю несколько решений:

Чтобы избавиться от ошибки cdrom, см. здесь. Для ошибки: W:Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:2 and /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:3` Откройте /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list и удалите повторяющиеся записи для этого репо или просто добавьте # перед одной из записей. sudo nano /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list Чтобы исправить эту ошибку The repository http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu xenial Release' does not have a Release file.,, удалите репо с помощью: sudo add-apt-repository -r ppa:noobslab/deepin-sc После этого запуска sudo apt update, затем sudo apt dist-upgrade
1
ответ дан 18 July 2018 в 10:31

Я предлагаю несколько решений:

Чтобы избавиться от ошибки cdrom, см. здесь. Для ошибки: W:Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:2 and /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:3` Откройте /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list и удалите повторяющиеся записи для этого репо или просто добавьте # перед одной из записей. sudo nano /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list Чтобы исправить эту ошибку The repository http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu xenial Release' does not have a Release file.,, удалите репо с помощью: sudo add-apt-repository -r ppa:noobslab/deepin-sc После этого запуска sudo apt update, затем sudo apt dist-upgrade
1
ответ дан 24 July 2018 в 19:35
  • 1
    Спасибо! Я выполнил шаг 2, но для шага 1 я получаю: «bash: /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list: Permission denied. & Quot; Есть идеи? Я также попытался поставить "sudo & quot; и "su" перед ней. Тот же результат. – Mikey Kuplevatsky 10 July 2017 в 16:23
  • 2
    Пожалуйста, сделайте это из области system settings, как показано в этих сообщениях – George Udosen 10 July 2017 в 17:33
  • 3
    попробуйте sudo vi /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list – Dawoodjee 26 June 2018 в 09:57

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

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