Can't upgrade

Topics about the Software of Revolution Pi
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47

Can't upgrade

Post by thalesmaoa »

I got my first RevPi Core.
I've changed password, requested an upgrade and...

Code: Select all

$ sudo apt upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils base-files bind9-host cifs-utils cups cups-client cups-common cups-core-drivers cups-daemon cups-ipp-utils cups-ppdc cups-server-common dpkg dpkg-dev
  ffmpeg ghostscript gir1.2-polkit-1.0 gzip libavcodec58 libavdevice58 libavfilter7 libavformat58 libavresample4 libavutil56 libbind9-161 libc-bin libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev
  libcairo-gobject2 libcairo2 libcups2 libcupsimage2 libdjvulibre-text libdjvulibre21 libdns-export1104 libdns1104 libdpkg-perl libexpat1 libexpat1-dev libfaad2 libflac8 libgmp10 libgs9 libgs9-common
  libicu63 libisc-export1100 libisc1100 libisccc161 libisccfg163 libjavascriptcoregtk-4.0-18 libjbig2dec0 libldap-2.4-2 libldap-common liblwres161 liblzma5 libmariadb3 libnss3 libntfs-3g883 libopenexr23
  libpcap0.8 libperl5.28 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpostproc55 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libsasl2-2
  libsasl2-modules-db libsdl1.2debian libssl1.1 libswresample3 libswscale5 libtiff5 libwavpack1 libwebkit2gtk-4.0-37 libxml2 linux-libc-dev locales logi-rts mariadb-common multiarch-support nodejs
  noderedrevpinodes-server ntfs-3g openssl perl perl-base perl-modules-5.28 pictory pimodbus-master pimodbus-slave piserial policykit-1 publicsuffix python-pil python3-lxml python3-pil
  python3-revpimodio2 python3-sense-hat raspberrypi-bootloader raspberrypi-kernel revpi-bluetooth revpi-tools revpi-webstatus revpipyload rpi-eeprom rsyslog shared-mime-info teamviewer-revpi tzdata
  vim-common vim-tiny x11-xserver-utils xdg-utils xserver-common xserver-xorg-core xxd xz-utils zlib1g
128 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 274 MB of archives.
After this operation, 94.3 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
How is this possible?
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Can't upgrade

Post by nicolaiB »

E: You don't have enough free space in /var/cache/apt/archives/.
Your disk is full. You can view the disk usage of the root disk with the command "df -h /"

Nicolai
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47

Re: Can't upgrade

Post by thalesmaoa »

I do understand that is a space problem. What I'm having problem to understand is: why a fresh new device don't have space for upgrade and what I can erase. Besides, I did install NodeRed without space problem, and the available space is the same.

I can't understand how to fix it.
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Can't upgrade

Post by nicolaiB »

Please provide more details about your setup:

Output of df -h I mentioned above
Which RevPi are you using (esp. which eMMC size)?
What image?

NodeRed comes pre-installed in our full image, so I guess it must be sth different if you had to install it by yourself.

Nicolai
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47

Re: Can't upgrade

Post by thalesmaoa »

Hi Nicolai,

here are the outputs:

Code: Select all

pi@RevPi1118:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       3.3G  2.9G  265M  92% /
devtmpfs        212M     0  212M   0% /dev
tmpfs           216M     0  216M   0% /dev/shm
tmpfs           216M  3.1M  213M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           216M     0  216M   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   33M  220M  14% /boot
tmpfs            44M     0   44M   0% /run/user/1000
pi@RevPi1118:~ $ uname -a
Linux RevPi1118 4.19.95-rt38 #1 PREEMPT RT Fri, 03 Dec 2021 13:31:50 +0000 armv6l GNU/Linux
pi@RevPi1118:~ $ cat /etc/revpi/image-release
2021-12-02-raspios-buster-armhf.img
pi@RevPi1118:~ $ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0  3.7G  0 disk 
├─mmcblk0p1  179:1    0  256M  0 part /boot
└─mmcblk0p2  179:2    0  3.4G  0 part /
mmcblk0boot0 179:32   0    4M  1 disk 
mmcblk0boot1 179:64   0    4M  1 disk 
Regarding NodeRed, I've installed using the following command:

Code: Select all

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Can't upgrade

Post by nicolaiB »

Hi,

why do you want to install NodeRed again? It is already integrated in our buster image. If you don't need the desktop environment I'd suggest to flash use the lite image which is noticable smaller than the normal one.

Nicolai
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47

Re: Can't upgrade

Post by thalesmaoa »

This is odd. As I mentioned. I tried to launch NodeRed, but it didn't work at all. No problem so far. After the command, it did installed successfully.

My question was partially answered by your "lite" indication.

I will:

Code: Select all

 sudo apt purge xserver* lightdm* raspberrypi-ui-mods vlc* lxde* chromium* desktop* gnome* gstreamer* gtk* hicolor-icon-theme* lx* mesa*
It will probably clean the system. Do you see any problem with this?
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Can't upgrade

Post by nicolaiB »

From a first glance this list looks OK. If you want to be sure, I'd recommend to make an image from your running device, so you can flash to original state if something breaks.

Nicolai
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47

Re: Can't upgrade

Post by thalesmaoa »

For some reason, the system crashed.
I confirm that NodeRed is installed by default, but the version is too old. Is there any problem to upgrade NodeRed using the command I've mentioned?
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: Can't upgrade

Post by nicolaiB »

No, if there is enough disk space available this should work (haven't tested it though)

-Nicolai
Post Reply