Hi, ich würde ich gerne sudo apt-get install in einem container von systemd-nspawn ausführen. Dabei bekomme ich aber Fehlermeldungen. z.B. bei apt-get instally lynx
apt-get install lynx Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: lynx-common The following NEW packages will be installed: lynx lynx-common 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1035 kB of archives. After this operation, 2761 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Ign:1 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 lynx-common all 2.8.9dev8-4ubuntu1 Err:2 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 lynx amd64 2.8.9dev8-4ubuntu1 Temporary failure resolving 'de.archive.ubuntu.com' Err:1 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 lynx-common all 2.8.9dev8-4ubuntu1 Temporary failure resolving 'de.archive.ubuntu.com' E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/universe/l/lynx/lynx-common_2.8.9dev8-4ubuntu1_all.deb Temporary failure resolving 'de.archive.ubuntu.com' E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/pool/universe/l/lynx/lynx_2.8.9dev8-4ubuntu1_amd64.deb Temporary failure resolving 'de.archive.ubuntu.com' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
oder bei apt-get update
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://de.archive.ubuntu.com/ubuntu xenial InRelease Temporary failure resolving 'de.archive.ubuntu.com' Err:3 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease Temporary failure resolving 'de.archive.ubuntu.com' Err:4 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease Temporary failure resolving 'de.archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'de.archive.ubuntu.com' W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'de.archive.ubuntu.com' W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'de.archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
Eine Verbindung zum Internet habe ich im Container. ping IP geht, ping hostname (z.b. forum.ubuntuusers.de) jedoch nicht (unknown host).
gestartet habe ich den container mit:
sudo systemd-nspawn --template=/ --directory=/home/uname/container/test /bin/bash