狀態:
```$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 16.04 LTSRelease: 16.04Codename: xenial$ docker run -it ubuntu:24.04 /bin/bashroot@a0f5c64ed667:/# apt updateGet:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]Get:2 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]Err:1 http://security.ubuntu.com/ubuntu noble-security InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CErr:2 http://archive.ubuntu.com/ubuntu noble InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CGet:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]Err:3 http://archive.ubuntu.com/ubuntu noble-updates InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CGet:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]Err:4 http://archive.ubuntu.com/ubuntu noble-backports InReleaseThe following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CReading package lists... DoneW: GPG error: http://security.ubuntu.com/ubuntu noble-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CE: The repository 'http://security.ubuntu.com/ubuntu noble-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.W: GPG error: http://archive.ubuntu.com/ubuntu noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CE: The repository 'http://archive.ubuntu.com/ubuntu noble 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://archive.ubuntu.com/ubuntu noble-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CE: The repository 'http://archive.ubuntu.com/ubuntu noble-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://archive.ubuntu.com/ubuntu noble-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93CE: The repository 'http://archive.ubuntu.com/ubuntu noble-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.E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'E: Sub-process returned an error code```
硬解:
```root@a0f5c64ed667:/# apt update --allow-insecure-repositories...```
安裝軟體:
```root@a0f5c64ed667:/# apt install -y --allow-unauthenticated vim wget curl git tree python3-virtualenv...```
結果越裝越痛苦 XD 還是回去看 Docker 官網安裝教學:docs.docker.com/engine/install/ubuntu/#install-using-the-repository
如此就可以在 Host Ubuntu 16.04 ,正確呼喚出 docker Ubuntu 24.04 來運行,此外,也可以留意 Docker 官方文件建議的 Ubuntu OS 環境已經是 20.04 以上了
沒有留言:
張貼留言