apt update errors

Arasword_HD

New Member
Jun 4, 2021
19
1
3
23
Hey,

Ich folge gerade einer Anleitung zum Installieren für Nextcloud auf Youtube. Ich soll folgenden Befehl ausführen:

apt update && apt upgrade -y && apt autoremove -y

Bekomme aber folgenden error:

Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Hab schon bei ein paar anderen Forums nachgeschaut und hab auch ähnliche fälle gefunden die Lösungen darunter haben mir jedoch nicht geholfen. Ich vermute es ist irgendwas in der Richtung DNS Server, bin mir jedoch nicht sicher....

Nach dem Befehl wo ich den error erhalte soll ich den Befehl eingeben: apt install apache2 php php-gd sqlite php-sqlite3 unzip php-curl php-zip php-xml php-mbstring php-imagick php7.4-intl libapache2-mod-php mariadb-server php-mysql libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions net-tools -y

Bekomme folgenden error:

Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package apache2
E: Unable to locate package php
E: Unable to locate package php-gd
E: Unable to locate package sqlite
E: Unable to locate package php-sqlite3
E: Unable to locate package unzip
E: Unable to locate package php-curl
E: Unable to locate package php-zip
E: Unable to locate package php-xml
E: Unable to locate package php-mbstring
E: Unable to locate package php-imagick
E: Unable to locate package php7.4-intl
E: Unable to locate package libapache2-mod-php
E: Unable to locate package mariadb-server
E: Unable to locate package php-mysql
E: Unable to locate package libnet-ssleay-perl
E: Unable to locate package libauthen-pam-perl
E: Unable to locate package libio-pty-perl
E: Unable to locate package apt-show-versions
E: Unable to locate package net-tools

Ich möchte nicht zu voreilig sein da die Behebung des errors vom apt update Befehl die ganze Sache regeln könnte, möchte es aber trotzdem vorsichtshalber angesprochen haben.

Vielen Dank für alle die sich meines Problems anschließen :)

Hier die Anleitung falls es jemanden interessiert ist eigentlich ziemlich aktuell weshalb ich davon ausging das es keine errors gibt: https://www.youtube.com/watch?v=ULrP2VztfOg&t
 
Code:
Temporary failure resolving 'archive.ubuntu.com'

deutet in der tat auf ein DNS problem hin.. wo probierst du das ganze denn? in einer VM? in einem container?
 
funktioniert ping 1.1.1.1 im container? dann ist es ein DNS problem (falsche DNS server eingetragen). wenn das nicht geht, ist es vielleicht ein generelles netzwerk setup problem.. kannst du mal die container config posten (pct config XXX wobei XXX die ID des containers ist).
 
funktioniert ping 1.1.1.1 im container? dann ist es ein DNS problem (falsche DNS server eingetragen). wenn das nicht geht, ist es vielleicht ein generelles netzwerk setup problem.. kannst du mal die container config posten (pct config XXX wobei XXX die ID des containers ist).
Bei ping 1.1.1.1 kommt ping: Network is unreachable... Ich habe in der /etc/resolv.conf meinen DNS Server eingetragen... Also keinen von Google wie z.B. 8.8.8.8 oder 8.8.4.4 sondern meinen eigenen vom Router... Habe es aber auch schon mit den Google Adressen probiert... Hatte auch nicht geklappt... Die komische Sache ist jedoch wenn ich meinen Container auswähle und dann auf den Reiter DNS klicke steht bei DNS domain sowie bei DNS server "use host settings" könnte es was damit zu tun haben?
 
network is unreachable deutet auf ein falsches netzwerk setup hin.. wie ist der container denn konfiguriert?
 
network is unreachable deutet auf ein falsches netzwerk setup hin.. wie ist der container denn konfiguriert?

Kenne den Befehl "pct config XXX" noch nicht, wenn ich ihn Eingebe (Habe X mit den nummern ausgetauscht) kommt folgendes:

Could not find command-not-found database. Run 'sudo apt update' to populate it.
pct: command not found
 
der befehl muss am hypervisor/PVE system ausgefuehrt werden, nicht im container ;) https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_pct
Macht Sinn danke für den Tipp :D Bekomme folgendes:

arch: amd64
cores: 4
hostname: sNextcloud
memory: 3096
nameserver: 192.168.2.1
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=46:95:21:6F:BC:6A,ip6=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: HDD:subvol-101-disk-0,size=1000G
searchdomain: pve
swap: 3096
unprivileged: 1
 
bist du dir sicher dass die config stimmt? nur IPv6 mit DHCP?
 
das haengt davon ab wie dein host/lokales netzwerk konfiguriert ist..

https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration

damit dhcp als option funktioniert, muss es auch einen entsprechenden server in deinem netz geben der IP-adressen verteilt - sonst musst du sie selbst "statisch" vergeben.
Also soll ich dort einfach meine ipv6 Adresse eingeben? Tut mir leid ich zieh aus solchen Webseiten: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration nicht viel raus
 
das kommt darauf an wie dein lokales netzwerk konfiguriert ist. das verlinkte dokument beschreibt ein paar grundsaetzliche ansaetze..
 
das kommt darauf an wie dein lokales netzwerk konfiguriert ist. das verlinkte dokument beschreibt ein paar grundsaetzliche ansaetze..
Kann ich die direkt in Proxmox im Container verändern? Wenn ja wo? Oder brauche ich einen command dafür? Edit: Oder muss ich einen dhcp server auf proxmox installieren?
 
Last edited:
nein - netzwerk ist immer ein zusammenspiel auf mehreren ebenen.

du hast dein lokales netzwerk, die netzwerk konfiguration vom hypervisor, und die netzwerk konfiguration im gast/container. PVE gibt nur das werkzeug - der inhalt kommt von dir ;)
 
nein - netzwerk ist immer ein zusammenspiel auf mehreren ebenen.

du hast dein lokales netzwerk, die netzwerk konfiguration vom hypervisor, und die netzwerk konfiguration im gast/container. PVE gibt nur das werkzeug - der inhalt kommt von dir ;)
Okay, also wie ist der Plan jetzt? Was soll ich machen? Habe absolut kein Anhaltspunkt gerade :/
 
du musst herausfinden wie dein lokales netzwerk aufgebaut ist (ipv4 und/oder ipv6? subnetze? wie kommen die geraete ins internet? gibt es einen dhcp server? ...), und dann entsprechend den hypervisor und gast konfigurieren.
 
du musst herausfinden wie dein lokales netzwerk aufgebaut ist (ipv4 und/oder ipv6? subnetze? wie kommen die geraete ins internet? gibt es einen dhcp server? ...), und dann entsprechend den hypervisor und gast konfigurieren.
Okay habe einfach IP4 auch auf dhcp gestellt und jetzt geht es... Wenn ich auf weitere Probleme treffe melde ich mich nochmal... Danke :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!