MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.81k stars 494 forks source link

PREP_SYSTEM_FOR_DIETPI.sh stopped with error #4758

Closed fuji246 closed 3 years ago

fuji246 commented 3 years ago

Creating a bug report/issue

PREP_SYSTEM_FOR_DIETPI.sh stopped with error

Required Information

Additional Information (if applicable)

Steps to reproduce

~/DietPi $ sudo ./PREP_SYSTEM_FOR_DIETPI.sh

Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2 http://archive.raspberrypi.org/debian buster InRelease Hit:3 https://lomoware.lomorage.com/debian/buster buster InRelease Reading package lists... Done [ INFO ] Selected Git branch: MichaIng/master curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. [FAILED] Unable to download dietpi-globals. Aborting...

Expected behaviour

Actual behaviour

Extra details

ravenclaw900 commented 3 years ago

Hello, Could you try installing the ca-certificates package:

apt install ca-certificates
fuji246 commented 3 years ago

I've tried reinstall, the same error, I'm currently on master with commit c678b71cdc4d2cf3340fb1796dcc3e0d8792dca9 "Release v7.6 (#4747)"

lomoware@lomorage:~/DietPi $ sudo apt install --reinstall ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  adwaita-icon-theme at-spi2-core attr busybox dh-python distro-info-data dns-root-data exfat-utils fakeroot file flashrom geoip-database gir1.2-glib-2.0 gstreamer1.0-plugins-base gtk-update-icon-cache
  hicolor-icon-theme i2c-tools ibverbs-providers iso-codes javascript-common libaacs0 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-zip-perl libatk-bridge2.0-0
  libatk1.0-0 libatk1.0-data libatspi2.0-0 libauthen-sasl-perl libbdplus0 libboost-atomic1.67.0 libboost-iostreams1.67.0 libboost-regex1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libc6-dbg
  libcairo-gobject2 libcdparanoia0 libcephfs2 libcolord2 libcue2 libdata-dump-perl libencode-locale-perl libepoxy0 libexempi8 libexif-doc libexiv2-14 libfakeroot libfile-basedir-perl
  libfile-desktopentry-perl libfile-fcntllock-perl libfile-listing-perl libfile-mimeinfo-perl libfont-afm-perl libfontenc1 libftdi1-2 libgdk-pixbuf2.0-bin libgexiv2-2 libgfapi0 libgfrpc0 libgfxdr0 libgif7
  libgirepository-1.0-1 libglusterfs0 libgpgme11 libgsf-1-114 libgsf-1-common libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgxps2 libhtml-form-perl
  libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libibverbs1

  libimobiledevice6 libio-html-perl libio-socket-ssl-perl libio-stringy-perl libipc-system-simple-perl libiptcdata0 liblwp-mediatypes-perl liblwp-protocol-https-perl libmagic-mgc libmagic1 libmailtools-perl
  libmime-charset-perl libnet-dbus-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libnotify4 libnspr4 libnss-mdns libnss3 liborc-0.4-0 libosinfo-1.0-0 libplist3 libpng-tools libpoppler-glib8
  libpoppler82 libposix-strptime-perl libproxy-tools libpython-all-dev libpython-dev libpython2-dev libpython2.7-dev libpython3-dev libpython3.7-dev libquvi-0.9-0.9.3 libquvi-scripts-0.9 librados2
  librest-0.7-0 librsvg2-common libsombok3 libsoup-gnome2.4-1 libtagc0 libtie-ixhash-perl libtimedate-perl libtotem-plparser-common libtotem-plparser18 libtracker-control-2.0-0 libtracker-miner-2.0-0
  libtry-tiny-perl libunicode-linebreak-perl libupower-glib3 liburi-perl libusb-0.1-4 libusbmuxd4 libvdpau-va-gl1 libvisual-0.4-0 libwacom-bin libwww-perl libwww-robotrules-perl libx11-protocol-perl libxaw7
  libxcomposite1 libxft2 libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl libxmu6 libxmuu1 libxpm4 libxslt1.1 libxt6 libxxf86dga1 lsb-release lsof lua-bitop lua-expat lua-json lua-lpeg lua-socket
  mesa-va-drivers mesa-vdpau-drivers ncurses-term notification-daemon openresolv osinfo-db perl-openssl-defaults pigz poppler-data publicsuffix python-all python-all-dev python-asn1crypto python-blinker
  python-cffi-backend python-configparser python-cryptography python-dbus python-dev python-entrypoints python-enum34 python-gi python-gpg python-ipaddress python-keyring python-keyrings.alt python-openssl
  python-pyinotify python-secretstorage python-setuptools python-simplejson python-six python-wheel python-xdg python2-dev python2.7-dev python3-argcomplete python3-asn1crypto python3-blinker
  python3-cffi-backend python3-crypto python3-cryptography python3-dbus python3-dev python3-entrypoints python3-gi python3-keyring python3-keyrings.alt python3-openssl python3-pyinotify python3-secretstorage
  python3-setuptools python3-simplejson python3-wheel python3-xdg python3.7-dev qt5-gtk-platformtheme qttranslations5-l10n read-edid rfkill samba-dsdb-modules samba-vfs-modules timgm6mb-soundfont tracker
  tracker-extract tracker-miner-fs triggerhappy upower usbmuxd va-driver-all vdpau-driver-all vlc-l10n vlc-plugin-notify vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-splitter vlc-plugin-visualization
  x11-utils x11-xserver-utils xauth xdg-user-dirs xdg-utils
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 166 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://raspbian.mirror.axinja.net/raspbian buster/main armhf ca-certificates all 20200601~deb10u2 [166 kB]
Fetched 166 kB in 6s (25.8 kB/s)
Preconfiguring packages ...
(Reading database ... 64161 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20200601~deb10u2_all.deb ...
Unpacking ca-certificates (20200601~deb10u2) over (20200601~deb10u2) ...
Setting up ca-certificates (20200601~deb10u2) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for ca-certificates (20200601~deb10u2) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
lomoware@lomorage:~/DietPi $ sudo ./PREP_SYSTEM_FOR_DIETPI.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://lomoware.lomorage.com/debian/buster buster InRelease
Reading package lists... Done
[ INFO ] Selected Git branch: MichaIng/master
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
[FAILED] Unable to download dietpi-globals. Aborting...
Joulinar commented 3 years ago

your system time is up to date?

fuji246 commented 3 years ago

I think so.

lomoware@lomorage:~/DietPi $ date
Mon 20 Sep 2021 04:06:26 PM PDT

lomoware@lomorage:~/DietPi $ cat /etc/issue
Raspbian GNU/Linux 10 \n \l

lomoware@lomorage:~/DietPi $ sudo apt update
Hit:1 https://lomoware.lomorage.com/debian/buster buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
fuji246 commented 3 years ago

sudo update-ca-certificates --fresh fixed the issue, thanks for the help