You are not logged in.

#1 2023-06-07 11:18:17

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Bus error (core dumped) doing pacman -Syu

hello everyone smile noob here.

i was updating my system, but then i decided this would be a good time to play a game while playing a movie in the background whilst also having 3 browsers open and a jetbrains ide at the same time, so my system froze and when i turned it off and on again it said error: load kernel first and giving me back grubs boot menu over and over. so i thought maybe the update got borked and i need to redo it somehow, so i followed the steps in this topic: https://bbs.archlinux.org/viewtopic.php?id=250845 which basically was to arch-chroot with a bootable usb and i'm in my system now but when i do pacman -Syu it says Bus error (core dumped). so i'm stuck now. any insight would be much appreciated

Offline

#2 2023-06-07 12:01:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

https://wiki.archlinux.org/title/Pacman … an_upgrade
Don't chroot into the system, use the pacman of the install iso along --sysroot

Offline

#3 2023-06-07 13:28:42

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

how's it going @seth? nice to hear from you again

is there an article perhaps with instructions i can use?

Offline

#4 2023-06-07 13:45:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: Bus error (core dumped) doing pacman -Syu

The instructions you can use are in the link seth gave you.

Offline

#5 2023-06-07 15:05:58

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

thanks. i missed that, i appreciate all the help btw.

i did the instructions in that link up to step 5 but now, a new problem:

error: failed retrieving file 'core.db' from < a couple of different host urls> : could not resolve ...

this error is repeated as many times as the amount of urls in the mirrorlist

Offline

#6 2023-06-07 15:08:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Bus error (core dumped) doing pacman -Syu

You have to connect to the internet first

Offline

#7 2023-06-07 15:26:08

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

how's it going, thanks for your reply.

it is connected to the internet. pinging 8.8.8.8 and google.com works fine which tells me dns is also okay

Offline

#8 2023-06-07 15:30:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

Can you ping any of the failing servers?

Offline

#9 2023-06-07 16:14:22

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

thanks. yeah, now that i do that, the packets dont seem to come back..  100% packet loss

any ideas how to go from here, i can't figure out how to refresh the mirrorlist on the bootable media

Last edited by Bluish9992 (2023-06-07 17:24:02)

Offline

#10 2023-06-07 17:54:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

You can just edit the mirrorlist and pick on of those.
https://archlinux.org/mirrorlist/?count … _status=on

Sanity check:

ping -4 google.com

works?

Offline

#11 2023-06-07 18:39:47

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

ty for replying, i don't know if i'm doing it right

ping -4 google.com

does work yes

same error occured aftered i tried removing all the registered servers and only leaving one server which was the world wid one
same error also occurs when replacing the /etc/pacman.d/mirrorlist file with the official one by doing

# curl -o /etc/pacman.d/mirrorlist https://archlinux.org/mirrorlist/all/

still no luck

Offline

#12 2023-06-07 18:43:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

Post the actual error you receive

pacman -Syu --debug 2>&1 | tee /tmp/pacman.dbg
cat /tmp/pacman.dbg | curl -F 'f:1=<-' ix.io

Offline

#13 2023-06-07 19:55:43

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

assuming you wanted

pacman --sysroot /mnt -Syu --debug 2>&1 | tee /tmp/pacman.dbg
cat /tmp/pacman.dbg | curl -F 'f:1=<-' ix.io

since doing just pacman -Syu will attempt to upgrade write protected packages from the bootable media

the output is:

Warning: Invalid character is found in given range. A specified range MUST
Warning: have only digits in 'start'-'stop'. The server's response to this
Warning: request ls uncertain.
TL;DR curl -F 'f:1=<-' ix.io

Last edited by Bluish9992 (2023-06-07 20:05:16)

Offline

#14 2023-06-07 20:00:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

copy-paste error, you forgot a quote or used backticks or whatever?

Offline

#15 2023-06-07 20:09:14

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

ty for replying, it's impossible to copy paste since the pc i'm doing it on isn't booting into x server for any gui

but i found what was wrong with how i typed in your command, this is the output:

http://ix.io/4xI6

Offline

#16 2023-06-07 20:32:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

mirror.anigil.com doesn't respond to pings here. Remove that.
Edit: http(s) works, though.

You can

ping -c3 mirror.funami.tech

w/o errors?

Last edited by seth (2023-06-07 20:32:59)

Offline

#17 2023-06-07 22:31:42

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

but changing the /etc/pacman.d/mirrorlist file doesn't seem to be working. adding or removing lines to it doesn't seem to be affecting the list of errors that comes out saying 'core.db' couldnot be retrieved.

like right now, i don't have mirror.anigil.com in that file and the first error stiill says

error: failed retrieving file 'core.db' from mirror.anigil.com : Could not resolvve host: mirror.anigil.com

maybe pacman is pointing to a different file? but /etc/pacman.conf says it's using that file with multiple lines saying

Include = /etc/pacman.d/mirrorlist

and doing

ping -c3 mirror.funami.tech

comes back 100% packetloss

Offline

#18 2023-06-08 06:14:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

Are you editing the mirrorlist of the iso or of the installed system on /mnt

Regardless of that, there's a network issue.
What IP does mirror.funami.tech resolve?

Offline

#19 2023-06-08 19:47:21

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

I'm editing the mirrorlist of the iso, /mnt/etc/pacman.d/mirrorlist doesn't even exist for some reason

I don't think mirror.funami.tech is resolving anything pinging it doesn't result in any output message it's just blank but the shell prompt isn't there unless I Ctrl+c which doesn't give any outputs either

Offline

#20 2023-06-08 19:50:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

ls -laR /mnt/etc/pacman*
ip a
ip r
getent ahostsv4  mirror.funami.tech

Offline

#21 2023-06-08 20:40:29

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

Thanks for the quick reply @seth, your ls command does seem to reveal that /mnt/etc/pacman.d/mirrorlist does exist, it is a symlink to /etc/pacman.d/mirrorlist.pacnew I don't know why it was saying nonexistent when doing a cat.

Anyway here is the output for the 2 ip commands:
https://ibb.co/vvPMhw4
I'm connected to wifi

The getent output is this:

146.56.166.92 STREAM mirror.funami.tech
146.56.166.92 DGRAM
146.56.166.92 RAW

after doing this pinging it returns an output:

PING mirror.funami.tech(2603:c022:8002:8b69:d15c:632:ec0:cbe8 (2603:c022:8002:8b69:d15c:632:ec0:cbe8)) 56 data bytes

Then I interrupted after a minute and it returns 100percent packet loss

Last edited by Bluish9992 (2023-06-08 20:57:04)

Offline

#22 2023-06-08 20:44:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: Bus error (core dumped) doing pacman -Syu

Because /etc/pacman.d/mirrorlist.pacnew would be on the install iso…
Can you ping the IPv4

ping -c3 146.56.166.92

Disable IPv6, https://wiki.archlinux.org/title/IPv6#Disable_IPv6

Offline

#23 2023-06-08 21:56:26

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

Hi there smile

Doing

ping -c3 146.56.166.92

Does work

I disabled ipv6 by doing:

sysctl -w net.ipv6.conf.all.disable_ipv6=1

And I think it worked, coz when I do:

sysctl -a 2>/dev/null | grep disable_ipv6

It outputs:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.enp2s0.disable_ipv6 = 1
net.ipv6.conf.io.disable_ipv6 = 1
net.ipv6.conf.wlan0.disable_ipv6 = 1

Also when I ping mirror.funami.tech, the ping works.

So now the problem is back to changing the mirror urls pacman is using coz I still get that list of errors saying failed to retrieve 'core.db' from the original urls included in the bootable media even though I have changed them in the /etc/pacman.d/mirrorlist file when I do

pacman --sysroot /mnt -Syu

Last edited by Bluish9992 (2023-06-08 22:12:41)

Offline

#24 2023-06-08 22:03:13

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

The first error in that list is with mirror.anigil.com but when I ping that url it comes back 100% packet loss

Pinging it also resolves into 110.9.231.150 but and pinging that is also a 100% packet loss

Last edited by Bluish9992 (2023-06-08 22:05:16)

Offline

#25 2023-06-08 22:35:56

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: Bus error (core dumped) doing pacman -Syu

Update:
I was changing the wrong file I needed to change the /mnt/etc/pacman.d/mirrorlist.pacnew
Now, changing it does affect which urls it looks for the packages but I still get the list of errors I'll be it from the new urls

Now these urls I can ping fine but the error message is still

error: failed to retrieve 'core.db' from geo.mirror.pkgbuild.com : Could not resolve host: geo.mirror.pkgbuild.com

Even though pinging this url works fine

Last edited by Bluish9992 (2023-06-09 02:45:10)

Offline

Board footer

Powered by FluxBB