is it safe apt-get upgrade?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
screwdriver

is it safe apt-get upgrade?

Post by screwdriver »

Hi, is it safe to run apt-get upgrade?

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  libjson-c2 libpci3 libperl4-corelibs-perl
Use 'apt-get autoremove' to remove them.
Done
The following packages have been kept back:
  apt apt-transport-https apt-utils bind9-host bluez curl dmsetup dnsutils dropbear file gcc-4.9-base gnupg ifupdown init init-system-helpers initramfs-tools initscripts iproute2 iputils-ping isc-dhcp-client isc-dhcp-common kmod libarchive-extract-perl libc-bin libc6 libcgi-pm-perl libcpan-meta-perl  libcryptsetup4 libcurl3 libcurl3-gnutls libdevmapper1.02.1 libfam0 libfcgi-perl libfreetype6 libgcc1 libgd3 libgnutls-openssl27 libkmod2 libldap-2.4-2 liblocale-gettext-perl libmagic1 libmodule-pluggable-perl libnih-dbus1 libnih1 libparted2 libraspberrypi-bin libraspberrypi0 librtmp1 libstdc++6 libsystemd0 libterm-readkey-perl libudev1 libxml2 locales ntfs-3g p7zip-full parted perl perl-base procps raspberrypi-bootloader raspberrypi-kernel systemd sysv-rc sysvinit-utils udev util-linux wget wpasupplicant
The following packages will be upgraded:
  acl adduser base-files base-passwd bash bash-completion bluetooth bsdmainutils bsdutils bzip2 ca-certificates console-common console-setup console-setup-linux coreutils cpio crda cron dash dbus debconf debconf-utils debianutils device-tree-compiler dhcpcd5 dialog diffutils dmidecode dosfstools dphys-swapfile dpkg e2fslibs e2fsprogs ed ethtool fake-hwclock fbset findutils firmware-atheros firmware-brcm80211 firmware-libertas firmware-realtek fontconfig-config fonts-dejavu-core fuse git git-man gpgv grep groff-base gzip hdparm hfsplus hostname htop info insserv install-info iw kbd keyboard-configuration klibc-utils less libacl1 libapparmor1 libaudit-common libaudit1 libblkid1 libbsd0 libbz2-1.0 libcap-ng0 libcap2 libcap2-bin libcgi-fast-perl libcomerr2 libdb5.3 libdbus-1-3 libdebconfclient0 libdrm2 libedit2 liberror-perl libestr0 libexpat1 libffi6 libfontconfig1 libfuse2 libgcrypt20 libgdbm3 libgeoip1 libglib2.0-0 libglib2.0-data libgmp10 libgpg-error0 libgssapi-krb5-2 libhfsp0 libident libidn11 libiw30 libjpeg62-turbo libk5crypto3 libkeyutils1 libklibc libkrb5-3 libkrb5support0 liblogging-stdlog0 libluajit-5.1-common liblzma5 libmnl0 libmodule-build-perl libmodule-signature-perl libmount1 libncurses5 libncursesw5 libnetfilter-conntrack3 libnewt0.52 libnl-3-200 libnl-genl-3-200 libopts25 libp11-kit0 libpackage-constants-perl libpam-modules libpam-modules-bin libpam-runtime libpam0g libpci3 libpcre3 libpcsclite1 libperl4-corelibs-perl libpipeline1 libpng12-0 libqdbm14 libreadline6 libsasl2-2 libsasl2-modules libsasl2-modules-db libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2 libsmartcols1 libss2 libssh2-1 libssl1.1 libtasn1-6 libterm-ui-perl libtiff5 libtinfo5 libusb-0.1-4 libusb-1.0-0 libustr-1.0-1 libuuid1 libx11-6 libx11-data libxcb1 libxdmcp6 libxpm4 libxslt1.1 lighttpd login lsb-base lsof  luajit mime-support mount multiarch-support nano ncurses-base ncurses-bin ncurses-term net-tools netbase ntp openssl passwd php5-json psmisc raspberrypi-sys-mods readline-common rename resolvconf sed shared-mime-info startpar sudo systemd-sysv tar tzdata ucf unzip usbutils whiptail whois wireless-regdb wireless-tools wput xkb-data xz-utils zip zlib1g
200 upgraded, 0 newly installed, 0 to remove and 69 not upgraded.
Need to get 59.5 MB/60.5 MB of archives.
After this operation, 42.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

thanks
User avatar
lucasmenno
Posts: 63
Joined: Sun Jul 23, 2017 11:57 am
Location: Germany

Re: is it safe apt-get upgrade?

Post by lucasmenno »

I would probably just say: yes.
Cause upgrading the system, if it would need to alter any configuration files, you will get asked what you would like to do.
(had the same case last weekend on my server, roughly 400MB of updates)
If you have configured too many things for your liking and / or your use:
Backup your SD card first, so you can restore. Or use the Dietpi Backup funktion (believe its usefull for this *not tested*).
Everything i say can and maybe will be corrected by the DietPi seniors in this forum :D
BananaPi M1 using image for BananaPi Pro.
-1TB HDD, Network storage,Downloader(JD,Deluge,ripme) testing what looks interesting.
Lanxon

Re: is it safe apt-get upgrade?

Post by Lanxon »

Code: Select all

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  base-files bind9-host debconf debconf-utils dnsutils libasn1-8-heimdal libbind9-90 libdns-export100 libdns100 libgnutls-deb0-28
  libgnutls-openssl27 libhcrypto4-heimdal libhdb9-heimdal libheimbase1-heimdal libhx509-5-heimdal libirs-export91 libisc-export95
  libisc95 libisccc90 libisccfg-export90 libisccfg90 libkrb5-26-heimdal liblwres90 libonig2 libpam-modules libpam-modules-bin
  libpam0g libroken18-heimdal libwbclient0 libwind0-heimdal linux-image-3.10.105+ perl perl-base perl-modules python-samba samba
  samba-common samba-common-bin samba-dsdb-modules samba-libs
40 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.8 MB of archives.
After this operation, 388 kB disk space will be freed.
Do you want to continue? [Y/n] n
I have only 40 upgrades, but after this the cant boot... :roll:
User avatar
lucasmenno
Posts: 63
Joined: Sun Jul 23, 2017 11:57 am
Location: Germany

Re: is it safe apt-get upgrade?

Post by lucasmenno »

Yeah, sometimes something goes wrong. Thats why i recommend the backup.
Totally not bootable? Display stays dark? No LED is blinking?
Everything i say can and maybe will be corrected by the DietPi seniors in this forum :D
BananaPi M1 using image for BananaPi Pro.
-1TB HDD, Network storage,Downloader(JD,Deluge,ripme) testing what looks interesting.
Lanxon

Re: is it safe apt-get upgrade?

Post by Lanxon »

Yes...
Post Reply