PC froze in the middle of the update

sorry, i must be inside an specific dir path to run those?
i mean, inside:
/usr/lib/
or:
/mnt/usr/lib/

this will create symlink and fix the ‘file is to short’ issue, but since you cannot chroot it looks like its not working …

so try using mount as you suggest

[manjaro lib]# pwd
/mnt/usr/lib
[manjaro lib]# manjaro-chroot /mnt /bin/bash
/bin/bash: error while loading shared libraries: /usr/lib/libncursesw.so.6: file too short
[manjaro lib]# ln -s libncursesw.so.6.3 libncursesw.so.6
ln: failed to create symbolic link 'libncursesw.so.6': File exists
[manjaro lib]# ln -s libncursesw.so.6 libncursesw.so
ln: failed to create symbolic link 'libncursesw.so': File exists

i should rm any file first?

yes try removing: rm libncursesw.so.6 libncursesw.so
and then try again creating the symlinks

same error:

[manjaro lib]# cd /mnt/usr/lib
[manjaro lib]# rm libncursesw.so.6 libncursesw.so
[manjaro lib]# ln -s libncursesw.so.6.3 libncursesw.so.6
[manjaro lib]# ln -s libncursesw.so.6 libncursesw.so
[manjaro lib]# manjaro-chroot /mnt /bin/bash
/bin/bash: error while loading shared libraries: /usr/lib/libncursesw.so.6: file too short

but check this:
libncursesw.so.6.3 file size is 0bytes
so i think the file is corrupt, may i copy the same file located in /usr/lib that belongs to the system loaded by the live-usb?
is the exact same version so.6.3 and the size is 459.2KiB
what do you think?

yes try that … if it doesnt work create again the symlinks with the new file from the usb

it worked like a charm my friend!!!, im going to try to update a package now, if nothing more cause me errors i’ll put solution tag to your post

great, so rerun the update again: pamac update
and i dont think that only running the update again will be enough, also reinstalling kernels, checking graphics, running update grub and mkinitcpio … let me know how it went with the update

hey brahma, i’ve been a liitle bussy here so, i ran pamac update and give me this error:

[manjaro /]# pamac update                                                      
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Synchronizing package databases...
https://mirrors.manjaro.org/repo/stable/core/x86_64/core.db: Unacceptable TLS certificate
Failed to synchronize databases
https://aur.manjaro.org/packages-meta-ext-v1.json.gz: Unacceptable TLS certificate
Failed to synchronize AUR database
Failed to query https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=gnome-icon-theme&arg[]=gnome-icon-theme-symbolic&arg[]=google-chrome&arg[]=insomnia-bin&arg[]=qpdfview&arg[]=rtl8812au-dkms-git&arg[]=smartgit&arg[]=visual-studio-code-bin&arg[]=yay-git from AUR: Unacceptable TLS certificate
Failed to initialize alpm library (could not find or read directory)

** (pamac:172): WARNING **: 20:54:22.100: alpm_utils.vala:290: Failed to initialize alpm library
Error: Alpm Error: Failed to initialize alpm library

and if run pacman -S samba for example give this error instead:

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                     [######################] 100%
(2/2) checking package integrity                   [######################] 100%
(2/2) loading package files                        [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
(2/2) checking available disk space                [######################] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
Wrong paramater in /etc/timeshift-autosnap.conf. Using skipAutosnap=false
Wrong paramater in /etc/timeshift-autosnap.conf. Using skipRsyncAutosnap=false
Wrong paramater in /etc/timeshift-autosnap.conf. Using snapshotDescription={timeshift-autosnap} {created before upgrade}
Application needs admin access.
Please run the application as admin (using 'sudo' or 'su')
Unable to run timeshift-autosnap! Please close Timeshift and try again. Script will now exit...
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.

try running this command:
sudo pacman-mirrors -f && sudo pacman -Syyu

hey brahma still here in the battle to avoid a reinstall, i ran the commands you told me but look at this:

curl: /usr/share/man/man3/libcurl-share.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-symbols.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-thread.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-tutorial.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl-url.3.gz exists in filesystem
curl: /usr/share/man/man3/libcurl.3.gz exists in filesystem
curl: /usr/share/zsh/site-functions/_curl exists in filesystem
Errors occurred, no packages were upgraded.

tells me there are a millions of files who already exist, so i ran the same command as follow:
sudo pacman -Syu --overwrite="*"
and then shows me this:

:: Proceed with installation? [Y/n] 
(335/335) checking keys in keyring                 [######################] 100%
(335/335) checking package integrity               [######################] 100%
(335/335) loading package files                    [######################] 100%
(335/335) checking for file conflicts              [######################] 100%
(335/335) checking available disk space            [######################] 100%
warning: could not get file information for usr/lib/thunderbird/distribution/distribution.ini
:: Running pre-transaction hooks...
(1/6) Creating Timeshift snapshot before upgrade...
Wrong paramater in /etc/timeshift-autosnap.conf. Using skipAutosnap=false
Wrong paramater in /etc/timeshift-autosnap.conf. Using skipRsyncAutosnap=false
Wrong paramater in /etc/timeshift-autosnap.conf. Using snapshotDescription={timeshift-autosnap} {created before upgrade}
Application needs admin access.
Please run the application as admin (using 'sudo' or 'su')
Unable to run timeshift-autosnap! Please close Timeshift and try again. Script will now exit...
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.

Seems like something about timeshift, you think?

so you still in chroot mode, or you can normally boot? if you can normally boot, try disabling timeshift, and try this overwrite commnad:
sudo pacman -Syyuu --overwrite=/usr/*
if it doesnt work, try this:
sudo pacman -Syyu --overwrite "*"

how i disable timeshift?, i ask you because i google it but i cant found it

i dont use timeshift i assume just open timeshift and in there uncheck all those schedules…
also go to system settings/ autostart programs and check if its there
then reboot
if it didnt disable it, go to system settings/systemd and under ‘units’ and ‘user units’ search for timeshift, and right click/stop/mask

Try googling for:

disable timeshift manjaro

Go to the “Schedule” page, and uncheck the checked option(s), e.g:

After that, delete all the snapshots (if you wish).

You can also check this (Mint forum), and this (TimeShift author’s post) out.

just in case anyone have the same issue, the problem is solved using this: SKIP_AUTOSNAP=1
an example would be:

sudo SKIP_AUTOSNAP=1 pacman -Syu

now im reinstalling all the packages via: pacman -Qqn | pacman -S -, figer crossed this fix it finally

1 Like

Finally the o.s is repaired via this magic command line:
pacman -Qqn | SKIP_AUTOSNAP=1 pacman -S - --overwrite="*"

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