Я пытаюсь собрать докер-образы Raspberry Pi, но у меня постоянно возникает одна и та же ошибка, похожая на эту, эту и эту.
При выполнении команды apt update
от имени root в arm32v7/ubuntu:20.04
(или просто ubuntu:latest
) я получаю следующий результат:
root@273d63597ce6:/# apt update
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [111 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [98.3 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
At least one invalid signature was encountered.
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
At least one invalid signature was encountered.
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
At least one invalid signature was encountered.
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
At least one invalid signature was encountered.
Reading package lists... Done
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Я пробовал предложенные решения по очистке apt, очистке docker и удалению/восстановлению /var/lib/apt/lists
без успеха. SD-карта - 32 Гб, ОС - свежая установка. df
показывает 26 Гб свободными.
Дополнительная информация:
ubuntu:18. 04
, 16.04
, 14.04
)Обновление Docker до версии 19.03.12 решило эту проблему для меня.
Ответы TSpark, HyperCreeks и ibster1st123s сработали для меня на Rasbian 10 и последней версии докера из официальных репозиториев. Как указал NeonLines, вам необходимо установить последнюю версию, поскольку у них нет этой проблемы.
Большинство пользователей настраивают репозитории Docker и устанавливают из них простота установки и обновления задач. Это рекомендуется подход, кроме Raspbian. […] Для Raspbian установка с использованием репозиторий пока не поддерживается. Вместо этого вы должны использовать удобство скрипт. – docs.docker.com
tl;dr
Получите последнюю версию Docker с помощью удобного скрипта. Вы должны проверить ссылку выше, хотя есть некоторые предостережения.
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh