Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] An interrupted update ending up with a loop (Read 1617 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[SOLVED] An interrupted update ending up with a loop

After an interrupted update ending up with a boot from an off PC suddenly this boot failed at the point that it's supposed to bring the arrow cursor up in desktop center but instead it back to blank with the text cursor at the top-left and go back to that first point of condition then its next and so on keep on going back and forth between the two condition.
It is a kind of login-logout loop

Even after did manage to update it from other Linux running of another partition, it's not solved yet
How to solve it ? Please help out !

Re: An interrupted update ending up with a loop

Reply #1
Hello,

Can you switch to a console by pressing Ctrl + Alt + F1 ?

If yes, then you could try to login and run :
 
Code: [Select]
sudo pacman -Syyu

Re: An interrupted update ending up with a loop

Reply #2
No Ctrl-Alt-F1 or -F2 or -F3 cannot
 
None stops the loop but power button


Re: An interrupted update ending up with a loop

Reply #4
From the description, it sounds like you use a display manager and it's constantly failing and restarting. I would recommend disabling it.

Re: An interrupted update ending up with a loop

Reply #5
Check /var/log/pacman.log for the list of packages that were in the update and try to reinstall them from a chroot or something, possibly you could roll back to the previous versions using /var/cache/pacman/pkg  or the Artix archive, if you were really unlucky and had some upgrade issue at the same time, say the update had worked but it was some other thing!
Obviously it isn't going to be some packages like browsers or text editors doing this so you might only need to do some of the updated packages.

Re: An interrupted update ending up with a loop

Reply #6
Got error:

Code: [Select]
artix-live:[artix]:~$ sudo artix-chroot /mnt
sh-5.1# pacman -Syyu
:: Synchronizing package databases...
 system                                      262.7 KiB   106 KiB/s 00:02 [########################################] 100%
 world                                      1935.0 KiB   977 KiB/s 00:02 [########################################] 100%
 galaxy                                     1962.8 KiB   998 KiB/s 00:02 [########################################] 100%
 extra                                      1570.2 KiB   423 KiB/s 00:04 [########################################] 100%
 community                                     5.8 MiB   695 KiB/s 00:09 [########################################] 100%
 multilib                                    150.6 KiB  63.8 KiB/s 00:02 [########################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (11) artix-mirrorlist-20211022-1  ffmpeg-2:4.4-5.1  ghostscript-9.55.0-2  gst-plugins-good-1.18.5-2.1
              libavif-0.9.3-1  libvpx-1.11.0-1  openrc-0.44.7-1  python-3.9.7-2  python-gobject-3.40.1-2
              wayland-1.19.0-2  x264-3:0.163.r3060.5db6aa6-1

Total Download Size:    41.88 MiB
Total Installed Size:  148.89 MiB
Net Upgrade Size:       -5.31 MiB

:: Proceed with installation? [Y/n]
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

I'm noob on Artix , what is mtab, how to solve it ?


Re: An interrupted update ending up with a loop

Reply #8
Yes, as put above

Code: [Select]
artix-live:[artix]:~$ sudo artix-chroot /mnt


Re: An interrupted update ending up with a loop

Reply #10
same

Code: [Select]
sh-5.1# pacman -S filesystem
warning: filesystem-2021.05.31-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) filesystem-2021.05.31-1

Total Download Size:   0.03 MiB
Total Installed Size:  0.05 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
error: could not open file: /etc/mtab: No such file or directory

Re: An interrupted update ending up with a loop

Reply #11
lrwxrwxrwx 1 root root     19 Oct 23 13:14 mtab -> ../proc/self/mounts
/etc/mtab is a link to /proc/self/mounts and proc ought to be bind-mounted from your rescue system kernel  when you chroot. Chroot in, if /proc/self/mounts exists, and /etc/mtab doesn't, you could try creating that link manually:
Code: [Select]
# cd /etc
# ln -s /proc/self/mounts mtab


 

Re: An interrupted update ending up with a loop

Reply #13

Even after did manage to update it from other Linux running of another partition
As said that is different non Artix Linux and different mtab so  won't work
 Solved now, thanks much

Re: An interrupted update ending up with a loop

Reply #14
As said that is different non Artix Linux and different mtab so  won't work,  solved now
As @####### said, /etc/mtab is a symbolic link to a virtual file in a virtual proc file system. The virtual file to which /etc/mtab points, /proc/self/mounts, is created dynamically by the kernel on boot. It depends on Linux (kernel), and is not distro-specific.

Is the problem solved for you now, can you boot and update your system normally?