You are not logged in.
Pages: 1
Everything started with update and a blackscreen. I grabed my usb with image of arch linux and chrooted into my system.
I tried to rollback my packages by following a guide on the internet which instructed me to to input following commands :
grep -a qt /var/log/pacman.log | grep 2023-07-10 > /tmp/qtupdates.txt
$ awk '{print $4}' /tmp/qtupdates.txt > /tmp/lines1;awk '{print $5}' /tmp/qtupdates.txt | sed 's/(/-/g' > /tmp/lines2
$ paste /tmp/lines1 /tmp/lines2 > /tmp/lines
$ tr -d "[:blank:]" < /tmp/lines > /tmp/packages
$ cd /var/cache/pacman/pkg/
$ for i in $(cat /tmp/packages); do sudo pacman --noconfirm -U "$i"*; doneWhen I tried to do this commands at the second one I gave me error of non existstant file lines2, but i stupidly did every command up to second to last one.
Then when I rebooted into normal system the normal boot log rolled by, but it showed me that Im in emergency mode and should enter root password so I did and then when I tried to see if I can reinstall nvidia propraietrery driver. And message after packageskit line poped up
Error connecting: Could not connect: No such file or directoryAfter this I started searching online and first resoult seemed to be what I needed, on arch forum.
I run one command from this topic, in chroot,
pacman - Qkk 1>/dev/null/And safe to say it wasn't pretty
I had so many files with error like " file or directory doesn't exist", " mismatched UID" or "mismatched GID".
Also I tried pacstrap outside of chroot and It gave me the same error
Error connecting: Could not connect: No such file or directoryThat error is in emergency mode, in chroot and outside of chroot.
Is there a solution short of reinstalling whole system?
Last edited by technicap (2023-07-10 21:47:51)
Offline
I run one command from this topic, in chroot,
pacman - Qkk 1>/dev/null/And safe to say it wasn't pretty
From the chroot or emergency console please post the link the following generates
# pacman -Qkk 2>&1 | grep -Fv '0 altered files' | curl -F 'f:1=<-' ix.io This is to help establish the situation before making any suggestions.
Edit:
Also the system journal from the emergency console.
Last edited by loqs (2023-07-10 18:43:45)
Offline
Hi,
Thanks for quick reply.
The output of command that you asked me to run is
http://ix.io/4Aic
As for the output of journalctl I don't know to get it out because I don't any know how to get it out of emergency shell cause I have only loopback in adapters, so no internet and I don't have extra usb and extra computer.
Last edited by technicap (2023-07-10 19:14:58)
Offline
Try chrooting in from the live media and see if the journal for the previous boot is the one with the issue. If so then you can pipe it to a pastebin similar to before with
# journalctl -b-1 | curl -F 'f:1=<-' ix.ioOffline
Here is output of this command :
http://ix.io/4Ail
Offline
Jul 10 20:44:20 nemesis mount[467]: mount: /boot: unknown filesystem type 'vfat'.From the chroot or emergency what is the output of
uname -a
pacman -Q linuxOffline
I run it in chroot
Output of
name - a Linux arch iso 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/LinuxOutput of
pacman - Q linux linux 6.4.2.arch1-1Offline
The cause of the issue is the linux package has been updated but not the kernel used to boot the system, so the booted kernel can not load any modules not in the initrd. You need to reinstall the linux package from the chroot. Ensure you have /boot mounted before chrooting in.
Offline
I can't reinstall linux package because of error:
Error connecting: Could not connect: No such file or directory
error: command failed to execute correctlyIt appeared after "Refireshing PackageKit"
Last edited by technicap (2023-07-10 20:04:27)
Offline
And is totally irrelevant and not prohibitive to installing/updating the kernel.
https://bbs.archlinux.org/viewtopic.php … 1#p2095421
https://bbs.archlinux.org/viewtopic.php … 7#p2071347
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Post the entire pacman output, not what you believe to be relevant.
Online
Almost full output of the pacman -S linux.
Few things are left out and I don't know how to include them, but here is what I could save to pastebin
http://ix.io/4AiC/
This errors are:
warning: linux-6.4.2.arch1-1 is up to date - - reinstalling
Procced with installation[Y/n]
error: command failed to execute correctlyCommand "lsinitcpio /boot/initramfs-linux-lts.img" returns "ERROR: No such file: '/boot/initramfs-linux-lts.img'"
Command pacman -Qikk systemd returns
http://ix.io/361/
But there is warning left out which is
warning: systemd: /var/log/journal (GID mismatch)Last edited by technicap (2023-07-10 21:08:09)
Offline
Have you tried rebooting after you reinstalled the kernel? Is the result still en emergency console?
Offline
Well everything seems to be working after I reboot.
Thank you for your help
Offline
FWIW, two points about the commands you claim to have executed in your first post: 1) they are ridiculously complicated for what they aim to do to the point of being complete braindead and whomever suggested running them should not be trusted with anything computer related ever again, and 2) running all but the last one as you claim couldn't possibly have any harmful effect on anything, they just create (pointless) tmp files.
Any problem that occurred was from some other source. It sounds like perhaps just updating when the boot partition was not mounted.
Last edited by Trilby (2023-07-10 21:26:22)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks, I will avoid that website from now on.
Offline
Please also consider addressing the issues detected `pacman -Qkk`
warning: accountsservice: /usr/lib/pkgconfig/accountsservice.pc (No such file or directory)
....Somehow /usr/lib/pkgconfig/ has been deleted from the system
warning: arcus: /home/tomo/.cache/pikaur/build/arcus/src/.venv/lib/python3.10 (No such file or directory)/home should never be packaged
warning: python-dephell: /usr/lib/python3.10/site-packages/dephell/__init__.py (No such file or directory)
...
warning: python-dephell-archive: /usr/lib/python3.10/site-packages/dephell_archive (No such file or directory)
...
warning: python-dephell-argparse: /usr/lib/python3.10/site-packages/dephell_argparse (No such file or directory)
...
warning: python-dephell-changelogs: /usr/lib/python3.10/site-packages/dephell_changelogs (No such file or directory)
...
warning: python-dephell-discover: /usr/lib/python3.10/site-packages/dephell_discover (No such file or directory)
...
warning: python-dephell-licenses: /usr/lib/python3.10/site-packages/dephell_licenses (No such file or directory)
...
warning: python-dephell-links: /usr/lib/python3.10/site-packages/dephell_links (No such file or directory)
...
warning: python-dephell-markers: /usr/lib/python3.10/site-packages/dephell_markers (No such file or directory)
...
warning: python-dephell-pythons: /usr/lib/python3.10/site-packages/dephell_pythons (No such file or directory)
...
warning: python-dephell-setuptools: /usr/lib/python3.10/site-packages/dephell_setuptools (No such file or directory)
...
warning: python-dephell-shells: /usr/lib/python3.10/site-packages/dephell_shells (No such file or directory)
...
warning: python-dephell-specifier: /usr/lib/python3.10/site-packages/dephell_specifier (No such file or directory)
...
warning: python-dephell-venvs: /usr/lib/python3.10/site-packages/dephell_venvs (No such file or directory)
...
warning: python-dephell-versioning: /usr/lib/python3.10/site-packages/dephell_versioning (No such file or directory)You have all these dephell packages for python3.10 installed but it looks like you deleted /usr/lib/python3.10/ rather than uninstall them.
Offline
Pages: 1