run first:
pacman -Sy
I ran it not in chroot and it did this
sudo pacman -Sy ξ² 1 β
:: Synchronizing package databases...
core 165.3 KiB 116 KiB/s 00:01 [#######################################################################################] 100%
extra 1849.1 KiB 1238 KiB/s 00:01 [#######################################################################################] 100%
community 7.1 MiB 1475 KiB/s 00:05 [#######################################################################################] 100%
multilib 180.5 KiB 608 KiB/s 00:00 [#######################################################################################] 100%
ο ξ° ο ~ ξ° mhwd-kernel -li ξ² β ξ² 9s ο
Currently running: 5.15.60-1-MANJARO (linux515)
The following kernels are installed in your system:
* linux515
are you chrooted?
this was ran while I wasnt in manjaro-chroot -a
in chroot this is the message
ο ξ° ο ~ ξ° manjaro-chroot -a ξ² INT β
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda5]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
[manjaro /]# sudo pacman -Sy
Bus error
[manjaro /]# pacman -Sy
Bus error (core dumped)
[manjaro /]#
from chroot run this:
mhwd-kernel -li
chroot is this right ? manjaro-chroot -a
[manjaro /]# mhwd-kernel -li
Currently running: 5.15.60-1-MANJARO (linux515)
The following kernels are installed in your system:
[manjaro /]#
so you dont have any kernel installed β¦
try installing the 510:
mhwd-kernel -i linux510
does this command gives you bus error?
not its a different errror
[manjaro /]# mhwd-kernel -i linux510
Error: Please make sure if the given kernel(s) exist(s).
available kernels:
[manjaro /]#
so its time to try this:
sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh
exit | manjaro-chroot -a
sudo pacman-mirrors -f5
sudo pacman --sysroot /mnt -Qqn | sudo pacman --sysroot /mnt -Syu -
run these commands one at a time, any errors post here
[manjaro /]# sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh
sed: can't read /usr/lib/manjaro-tools/util-mount.sh: No such file or directory
For this one, you have to exit chroot.
Is it supposed to do nothing?
If there is no output that doesnβt mean it did nothing.
ο ξ° ο ~ ξ° sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh ξ² β
ο ξ° ο ~ ξ° exit | manjaro-chroot -a ξ² β
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda5]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
ο ξ° ο ~ ξ° sudo pacman-mirrors -f5 ξ² β ξ² 11s ο
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
0.289 Ukraine : http://mirrors.colocall.net/manjaro/
1.158 Switzerland : https://manjaro.osmir.ch/
0.432 Poland : https://repo.skni.umcs.pl/manjaro/
0.182 MENA : https://mirror.arvancloud.com/manjaro/
2.886 Japan : https://mirrors.xtom.jp/manjaro/
::INFO Writing mirror list
::MENA : https://mirror.arvancloud.com/manjaro/stable
::Ukraine : http://mirrors.colocall.net/manjaro/stable
::Poland : https://repo.skni.umcs.pl/manjaro/stable
::Switzerland : https://manjaro.osmir.ch/stable
::Japan : https://mirrors.xtom.jp/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
ο ξ° ο ~ ξ° sudo pacman ξ² β ξ² 6s ο
error: no operation specified (use -h for help)
ο ξ° ο ~ ξ° sudo pacman --sysroot /mnt -Qqn | sudo pacman --sysroot /mnt -Syu - ξ² 1 β
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
ο ξ° ο ~ ξ°
Run this now (outside of chroot):
pacman -r /mnt -b /mnt/var/lib/pacman --cachedir /mnt/var/cache/pacman/pkg --gpgdir /mnt/etc/pacman.d/gnupg -Syu linux519 pacman
ο ξ° ο ~ ξ° pacman -r /mnt -b /mnt/var/lib/pacman --cachedir /mnt/var/cache/pacman/pkg --gpgdir /mnt/etc/pacman.d/gnupg -Syu linux519 pacman ξ² 0|1 β
error: you cannot perform this operation unless you are root.
ο ξ° ο ~ ξ° sudo pacman -r /mnt -b /mnt/var/lib/pacman --cachedir /mnt/var/cache/pacman/pkg --gpgdir /mnt/etc/pacman.d/gnupg -Syu linux519 pacman ξ² 1 β
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
ο ξ° ο ~ ξ°
Show
lsblk
ο ξ° ο ~ ξ° lsblk ξ² 1 β
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 21M 1 loop /run/miso/sfs/livefs
loop1 7:1 0 717.4M 1 loop /run/miso/sfs/mhwdfs
loop2 7:2 0 1.3G 1 loop /run/miso/sfs/desktopfs
loop3 7:3 0 645.3M 1 loop /run/miso/sfs/rootfs
sda 8:0 0 931.5G 0 disk
ββsda1 8:1 0 1000M 0 part
ββsda2 8:2 0 260M 0 part /mnt/boot/efi
ββsda3 8:3 0 128M 0 part
ββsda4 8:4 0 781.4G 0 part
ββsda5 8:5 0 133.5G 0 part /mnt
ββsda6 8:6 0 15.3G 0 part
sdb 8:16 1 7.2G 0 disk /run/miso/bootmnt
ββsdb1 8:17 1 2.7G 0 part
ββsdb2 8:18 1 4M 0 part
sr0 11:0 1 1024M 0 rom
ο ξ° ο ~ ξ°
Mkay.
rm /mnt/var/lib/pacman/db.lck
and redo one of previous commands.