Различные sources.list записи между 18,04 серверами и 18.04.1 серверами ISOs

Я создал 2 новых VMs сервера Ubuntu. Каждый от 18.04.1 ISO, и другой от более старых 18,04 ISO. Проблема, которую я имею, - то, что 'склонный добираются, установка ansible' не работает над 18.04.1 VM, тогда как она будет работать над 18.04 VM. (Я должен отметить что, даже если я добавляю ppa:ansible/ansible к 18.04.1 VM, он все еще не работает, потому что ему нужен sshpass модуль, который также не кажется доступным на 18.04.1.)

Так, роя в различия между двумя VMs, я заметил, что 18.04 VM имеют приблизительно 10 репозиториев (не включая deb-src строки) в его/etc/apt/source.list файле, тогда как 18.04.1 только имеют 4.

Я не видел примечаний в 18.04.1 readme, чтобы указать, что sources.list файл будет отличаться. Так, что я делаю неправильно здесь?

4
задан 13 August 2018 в 23:51

3 ответа

Та же проблема здесь, там, кажется, ошибка, и я еще не нашел подсказку, как зафиксировать ее.

Это - мой sources.list:

deb http://archive.ubuntu.com/ubuntu bionic main 
deb http://archive.ubuntu.com/ubuntu bionic-security main 
deb http://ppa.launchpad.net/ansible/ansible/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-updates main

Моя Серверная версия Ubuntu:

Ubuntu 18.04.1 LTS \n \l

И ошибка:

sudo apt-get install ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ansible : Depends: sshpass but it is not installable
E: Unable to correct problems, you have held broken packages.

НАЙДЕННЫЕ A ФИКСИРУЮТ:

Я действительно не понимаю, почему установка по умолчанию Ubuntu 18.04.1 не включает больше источников в /etc/apt/sources.list по умолчанию это только включает:

deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-security main
deb http://archive.ubuntu.com/ubuntu bionic-updates main

Способ, которым я фиксирую недостающие пакеты, состоял в том, чтобы добавить это:

https://gist.github.com/jackw1111/d31140946901fab417131ff4d9ae92e3

1
ответ дан 1 December 2019 в 10:15

Имел ту же проблему после установки этого конкретного изображения.

только 3 источника были в /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-security main
deb http://archive.ubuntu.com/ubuntu bionic-updates main

Я должен был добавить 7 других общих источников вручную с помощью этих инструкций относительно GitHub.

Короче говоря, содержание файла должно быть как ниже. Использовать sudo nano или Ваш любимый текстовый редактор для изменения содержания на это.

#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic 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/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## 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/ bionic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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.
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates 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.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## 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 bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
1
ответ дан 1 December 2019 в 10:15

Имел ту же проблему с версией, которую Вы получаете по умолчанию при загрузке серверной версии. Это использует новый установщик Subiquity, который несколько отличается и по-видимому дает немного отличающийся результат. Кажется более приспособленным к облаку...

Прочитайте текст, и загрузил альтернативную версию установщика, которая является старым добрым установщиком... sources.list - как можно было бы ожидать с этой версией.

0
ответ дан 1 December 2019 в 10:15

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

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