Free up space to update OS comes with error message

Hi Guys,

I’m trying to free up some space to install the new OS but I failed. I found a post that I followed but it didn’t work well. Now I have this message when I use this:

sudo ostree admin undeploy 1

error: Out of range deployment index 1, expected < 1

I’m completely newbie with linux so if you submit an answer. Please make it clear :slight_smile:

Thank you,
David

But I have the basic naked system:

Fájlrendszer Méret Fogl. Szab. Fo.% Csatol. pont
/dev/mapper/endless-image3 16G 16G 412M 98% /

0 /home
4,0K /var/opt
872K /var/roothome
12K /var/spool
52M /var/log
26M /var/lib
61M /var/cache
4,0K /var/local
25M /var/tmp
163M /var

flathub:runtime/org.freedesktop.Platform.ffmpeg/x86_64/1.6
flathub:runtime/org.freedesktop.Platform.Locale/x86_64/1.6
flathub:app/org.videolan.VLC/x86_64/stable
flathub:runtime/org.libreoffice.LibreOffice.Locale/x86_64/stable
flathub:runtime/org.gnome.Platform/x86_64/3.30
eos-sdk:runtime/org.freedesktop.Platform.Icontheme.EndlessOS/x86_64/1.0
flathub:runtime/org.gnome.Platform/x86_64/3.32
flathub:runtime/org.gnome.Platform.Locale/x86_64/3.28
flathub:app/com.transmissionbt.Transmission/x86_64/stable
flathub:runtime/org.kde.Platform.Locale/x86_64/5.11
flathub:runtime/org.kde.Platform.Locale/x86_64/5.12
eos-apps:ostree-metadata
eos-apps:appstream2/x86_64
eos-runtimes:appstream2/x86_64
flathub:runtime/org.freedesktop.Platform/x86_64/1.6
flathub:runtime/org.freedesktop.Platform.Locale/x86_64/18.08
eos:os/eos/amd64/eos3a
eos-apps:app/com.endlessm.quote_of_the_day.en/x86_64/eos3
flathub:app/org.libreoffice.LibreOffice/x86_64/stable
flathub:appstream2/x86_64
eos-sdk:ostree-metadata
flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6
flathub:runtime/org.gnome.Epiphany.Locale/x86_64/stable
flathub:app/org.gnome.Epiphany/x86_64/stable
flathub:runtime/org.gnome.Platform.Locale/x86_64/3.30
flathub:runtime/org.gnome.Platform.Locale/x86_64/3.32
eos-apps:appstream/x86_64
eos-apps:app/com.google.Chrome/x86_64/eos3
eos-runtimes:appstream/x86_64
flathub:runtime/org.kde.KStyle.Adwaita/x86_64/5.11
flathub:runtime/org.kde.KStyle.Adwaita/x86_64/5.12
flathub:runtime/org.kde.Platform/x86_64/5.12
flathub:runtime/org.kde.Platform/x86_64/5.11
eos-sdk:runtime/com.endlessm.apps.Platform/x86_64/1
flathub:runtime/org.gnome.Platform/x86_64/3.28
eos-sdk:runtime/com.endlessm.apps.Platform/x86_64/3
eos-sdk:runtime/com.endlessm.apps.Platform/x86_64/4
eos-sdk:runtime/com.endlessm.apps.Platform/x86_64/5
eos-apps:app/com.endlessm.word_of_the_day.en/x86_64/eos3
eos-sdk:app/com.endlessm.EknServicesMultiplexer/x86_64/stable
eos-sdk:runtime/com.endlessm.apps.Platform.Locale/x86_64/1
eos-sdk:appstream/x86_64
eos-sdk:runtime/com.endlessm.apps.Platform.Locale/x86_64/3
eos-sdk:runtime/com.endlessm.apps.Platform.Locale/x86_64/4
ostree/0/1/0
eos-sdk:runtime/com.endlessm.apps.Platform.Locale/x86_64/5
flathub:runtime/org.videolan.VLC.Locale/x86_64/stable
flathub:runtime/org.freedesktop.Platform/x86_64/18.08
flathub:runtime/com.transmissionbt.Transmission.Locale/x86_64/stable
eos-sdk:appstream2/x86_64
flathub:runtime/org.freedesktop.Platform.html5-codecs/x86_64/18.08
flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08
eos-sdk:app/com.endlessm.CompanionAppService/x86_64/stable

What version of Endless OS are you using?
To check which version of Endless OS you are in Settings :arrow_right: Details

can you please run:

ostree admin status

this should output something like the snippet below, which shows your current ostree deployments:

* eos eb9f7ea30402acd57d61f2876bddca5f31572ed67f064f71a001b58cc50d4e1e.0
Version: 3.6.1~beta2
origin refspec: eos:os/eos/amd64/eos3a
GPG: Signature made Mon 08 Jul 2019 04:11:09 PM CEST using RSA key ID FCF17B17F1F8E157
GPG: Good signature from “EOS Flatpak Signing Key 1 maintainers@endlessm.com
eos 2c3260ce0be170070cc5cb1fd13a60121f6cd83fe7c3ef97dc0ad71b4ecf2410.0 (rollback)
Version: 3.6.1~beta1
origin refspec: eos:os/eos/amd64/eos3a
GPG: Signature made Mon 24 Jun 2019 07:09:20 PM CEST using RSA key ID FCF17B17F1F8E157
GPG: Good signature from “EOS Flatpak Signing Key 1 maintainers@endlessm.com

The indexing begins from 0, so if you want to delete the 2nd deployment, run:

ostree admin undeploy 1

This should then result in:

Bootloader updated; bootconfig swap: yes; deployment count change: -1
Freed objects: 576.8 MB
Deleted deployment 2c3260ce0be170070cc5cb1fd13a60121f6cd83fe7c3ef97dc0ad71b4ecf2410.0

It is 3.5.4 (190110-212504)

Update to Endless OS 3.6.1 by App Center

This is what I got:
eos 69a7e41d355e97c2e3ec6e2fe5c9f772130fcd2a624ce3216f9947b5406e4473.0
Version: 3.5.4
origin refspec: eos:os/eos/amd64/eos3a
GPG: Signature made 2019. jan. 11., péntek, 00:09:59 CET using RSA key ID 9E08D8DABA02FC46
GPG: BAD signature from "EOS OSTree Signing Key 1 maintainers@endlessm.com

I hope you are joking. If I could update then why would I open this topic?! :slight_smile:

The device which has EOS installed is 16 GB in size from what i see. Do you have installed EOS to a USB Stick? If yes: I would highly recommend using a larger one, as i don’t think you can free up the necessary space to update to the next release. In the update process you essential get a new copy of the operating systems base files which are then switched to on the next reboot.

So, even if you are going to undeploy your previous installation, there’s a time where you need the space for two installations.

I installed on a SSD(256gb). I use dual OS so my main partition is for a win10. I created this small partition to Endless. I need only the basic apps so I chose this small portion.

Actually this 16gb is occupied by EOS earlier updates -I guess- . If I could delete those old files, I can update a system, could I?

Old updates should be visible using ostree admin status, but this shows only one installation in your case, so this will not bring us further. Do you have any personal files on the installation which you can move temporarily to another location?

To find the size of a entire directory tree, use du --max-depth=1 -h / and work through it.

I do not have any personal files. I ran du --max-depth=1 -h / but all of the rows come with “access denied” and “library is not readable” I do not copy the whole beacuse it is quite long.

It begins:

du: a következő könyvtár nem olvasható: ‘/sys/kernel/debug’: Engedély megtagadva
du: a következő könyvtár nem olvasható: ‘/sys/fs/pstore’: Engedély megtagadva
du: a következő könyvtár nem olvasható: ‘/sys/fs/bpf’: Engedély megtagadva
du: a következő könyvtár nem olvasható: ‘/sys/fs/fuse/connections/8388609’: Engedély megtagadva
0 /sys
4,0K /srv
45M /boot
4,0K /mnt

and ends:
du: a következő könyvtár nem olvasható: ‘/sysroot/home/shared’: Engedély megtagadva
12G /sysroot
237G /

I deleted the OS. I reinstalled (3.6.1) and when I boot it, it opens the emergency shell. Whatever I do, doesn’t work. Need to restart, but the outcome is still the same

I deleted the system and reinstalled on a bigger partition (32gb) it solved my issue. Also, the emergency shell issue at booting is solved. It happened due to a missing log. Thank you for your support :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.