Не удается обновить или обновить Ubuntu. Ничего не доступно (нет новых пакетов, ничего)

Я не могу устанавливать какие-либо новые пакеты или даже обновлять Ubuntu 18.04. Как будто виртуальная машина застряла в старые времена, когда только что вышла Ubuntu 18.04. Там нет новых доступных пакетов или что-нибудь. Что-то определенно испорчено, и я не уверен, как это исправить.

[root:7e2d33988106:/]# lsb_release -a                                                                                                                                                                                                                                   12:55PM/09.12
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

[root:7e2d33988106:/]# cat /etc/apt/sources.list | grep -v "#" | sort -u                                                                                                                                                                                                12:55PM/09.12

deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security universe

[root:7e2d33988106:/]# apt update; apt upgrade -y; apt full-upgrade -y; apt dist-upgrade -y; apt autoremove -y; apt clean -y                                                                                                                                            12:55PM/09.12
Hit:1 https://deb.nodesource.com/node_6.x bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                       
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                           
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]       
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]     
Reading package lists... Done       
E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 17h 54min 25s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 17h 55min 3s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 17h 55min 58s). Updates for this repository will not be applied.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Есть идеи, почему нет новых пакетов? Я не обновлял этот док-контейнер в течение нескольких месяцев.

1
задан 13 September 2019 в 15:37

1 ответ

Проверьте и исправьте свои системные часы (или Ваш часовой пояс, поскольку оба могли быть неправыми).

Системные часы должны идеально быть установлены на UTC и исправление местного времени, сделанное через часовой пояс (т.е. преобразование в местное время, сделанное системой; с Интернетом или время UTC значением по умолчанию).

Использование timedatectl для просмотра этих данных.

, Если Ваши часы являются плохо неправильными, система не коснется никаких доступных обновлений, поскольку неправильное время могло означать, что в них [обновления] вмешались (и таким образом проигнорированы с предупреждениями/ошибками, когда Вы добрались).

Для большего количества детали: https://help.ubuntu.com/lts/serverguide/NTP.html

4
ответ дан 23 October 2019 в 02:11

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

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