Seite 1 von 1

Probleme beim sudo apt-get update

Verfasst: 15. Feb 2020 12:45
von rantanplan1980
Hallo zusammen,
ich habe ein neue SD Karte mit einem OpenHab image bespielt.
Ich habe einen Raspberry Pi 4 mit 4GB und einer 32 GB großen Speicherkarte
Kann mir jmd bei der Fehlermeldung weiterhelfen.

Folgendes Image habe ich verwendet:
openhabian-pi-raspbian-201908050414-gitca0976f-crc6a66b5a1.img

Folgende Fehlermeldung kommt ...

Code: Alles auswählen

openhabian@192.168.1.70's password: 
Linux openhab 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Feb 14 22:11:00 2020 from 192.168.1.45

[b]Attention! The openHABian setup process seems to have failed on your system.
Sorry, this shouldn't happen! Please restart the installation process. Chances
are high setup will succeed on the second try.
[/b]
In order to find the cause of the problem, have a look at the installation log:
   sudo cat /boot/first-boot.log

Contact the openHAB community forum for help if the problem persists:
https://community.openhab.org/tags/openhabian

[08:52:31] openhabian@openhab:~$ sudo cat /boot/first-boot.log
[sudo] Passwort für openhabian: 
2019-07-10_01:21:39_BST [openHABian] Starting the openHABian initial setup.
2019-07-10_01:21:39_BST [openHABian] Storing configuration... OK
2019-07-10_01:21:39_BST [openHABian] Starting webserver with installation log... OK
2019-07-10_01:21:46_BST [openHABian] Changing default username and password... OK
2020-02-14_21:00:44_GMT [openHABian] Setting up Ethernet connection... OK
2020-02-14_21:00:44_GMT [openHABian] Ensuring network connectivity... OK
2020-02-14_21:00:44_GMT [openHABian] Waiting for dpkg/apt to get ready... OK
2020-02-14_21:01:15_GMT [openHABian] Updating repositories and upgrading installed packages... OK
2020-02-14_21:07:41_GMT [openHABian] Installing git package... OK
2020-02-14_21:08:00_GMT [openHABian] Cloning myself... OK
2020-02-14_21:08:03_GMT [openHABian] Executing 'openhabian-setup.sh unattended'... 
2020-02-14_21:08:03_GMT [openHABian] Checking for root privileges... OK
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists...
2020-02-14_21:08:07_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2020-02-14_21:08:07_GMT [openHABian] Setting timezone based on IP geolocation... FAILED
2020-02-14_21:08:43_GMT [openHABian] Setting locale based on openhabian.conf... OK
2020-02-14_22:09:31_CET [openHABian] Setting hostname of the base system... OK
2020-02-14_22:09:32_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2020-02-14_22:09:32_CET [openHABian] Enabling Audio output... OK
2020-02-14_22:09:32_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2020-02-14_22:10:14_CET [openHABian] Installing additional needed packages... 2020-02-14_22:10:47_CET [openHABian] Starting the openHABian initial setup.
2020-02-14_22:10:47_CET [openHABian] Storing configuration... OK
2020-02-14_22:10:47_CET [openHABian] Starting webserver with installation log... OK
2020-02-14_22:10:52_CET [openHABian] Changing default username and password... SKIPPED
2020-02-14_22:10:52_CET [openHABian] Setting up Ethernet connection... OK
2020-02-14_22:10:52_CET [openHABian] Ensuring network connectivity... OK
2020-02-14_22:10:52_CET [openHABian] Waiting for dpkg/apt to get ready... OK
2020-02-14_22:11:18_CET [openHABian] Updating repositories and upgrading installed packages... FAILED
2020-02-14_22:11:22_CET [openHABian] Initial setup exiting with an error!

[08:53:08] openhabian@openhab:~$ sudo apt-get update
OK:1 http://archive.raspberrypi.org/debian buster InRelease
OK:2 https://deb.nodesource.com/node_10.x buster InRelease                                                                                                         
Holen:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]                                                                                        
Ign:4 https://dl.bintray.com/openhab/apt-repo2 stable InRelease                    
OK:5 https://s3.eu-central-1.amazonaws.com/download.telldus.com unstable InRelease  
Holen:6 https://dl.bintray.com/openhab/apt-repo2 stable Release [6.051 B]           
Holen:7 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15,0 kB]                 
Holen:9 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11,7 MB]
Es wurden 11,7 MB in 8 s geholt (1.480 kB/s).                                                                                                                      
Paketlisten werden gelesen... Fertig
[08:58:23] openhabian@openhab:~$ sudo apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete sind zurückgehalten worden:
  libconfuse-common raspberrypi-sys-mods
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.

Re: Probleme beim sudo apt-get update

Verfasst: 15. Feb 2020 23:01
von udo1toni
Für mich sieht es so aus, dass der Rechner zum Zeitpunkt der ersten Inbetriebnahme keine stabile Internetverbindung hatte. Ist der Pi über LAN oder WLAN angebunden?
Versuch mal, openhabian-config aufzurufen:

Code: Alles auswählen

sudo openhabian-config
das Tool sollte automatisch versuchen, sich selbst auf den aktuellen Stand zu bringen. Anschließend solltest Du aus dme Tool heraus openHAB installieren können.