You are not logged in.

#1 2024-01-12 22:10:58

antarctic
Member
Registered: 2023-06-08
Posts: 9

[Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

I tried to install arch linux in a qemu vm and when booting archiso I get the following error: Failed to start Refresh Pacman mirrorlist with Reflector...
https://ibb.co/dpG321y

I tried to start reflector.service but when I try that I get the error: job for reflector.service failed because the control process exited with error code.
https://ibb.co/vqSwWjZ

I also tried to google but didn't find anything that helped me

Last edited by antarctic (2024-01-14 16:42:42)

Offline

#2 2024-01-12 22:14:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,237
Website

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Please do not post images of text - just post the text in code tags.

Then follow the guidance in the last line of the error message and provide the output from the journal here.

Last edited by Trilby (2024-01-12 22:15:05)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-01-12 22:19:37

antarctic
Member
Registered: 2023-06-08
Posts: 9

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Trilby wrote:

Please do not post images of text - just post the text in code tags.

Then follow the guidance in the last line of the error message and provide the output from the journal here.

archiso systemd[1]: Failed to start Refresh Pacman mirrorlist with Reflector...
Subject: A start job for unit reflector.service has failed
Definded-By: systemd
Support: https://lists.freedesktop.org/mailman/l … temd-devel

A start job for unit reflector.service has finished with a failure.

The job identifier is 5414 and the job result is failed

Offline

#4 2024-01-13 02:33:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,237
Website

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Oh... sorry - that's not nearly as useful as I thought it would be.  That appears to be the proper journalctl output, but I was expecting an actual error message from reflector.

What happens if you try to run reflector manually, e.g.:

reflector @/etc/xdg/reflector/reflector.conf

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2024-01-14 13:34:36

antarctic
Member
Registered: 2023-06-08
Posts: 9

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Trilby wrote:

Oh... sorry - that's not nearly as useful as I thought it would be.  That appears to be the proper journalctl output, but I was expecting an actual error message from reflector.

What happens if you try to run reflector manually, e.g.:

reflector @/etc/xdg/reflector/reflector.conf
error: failed to retrieve mirrorstatus data: URLError: <urlopen error [Errno -2] Name or service not known>              :(

Last edited by antarctic (2024-01-14 16:18:03)

Offline

#6 2024-01-14 14:25:07

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,215
Website

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Are you actually connected?

ping -c3 google.com
ping -c3 8.8.8.8

How have you configured the VM?


"It's impossible for a white person to believe in capitalism and not believe in racism. You can't have capitalism without racism."
— Malcolm X

Offline

#7 2024-01-14 15:35:09

antarctic
Member
Registered: 2023-06-08
Posts: 9

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Head_on_a_Stick wrote:

Are you actually connected?

ping -c3 google.com
ping -c3 8.8.8.8

How have you configured the VM?


Ping works.

Arch Linux ISO in virt-manager/qemu, Virtual Network 'default' : NAT

I use a TP Link TL-WN823N USB Wifi Adapter in my pc. maybe that is the reason why it don't work??

Offline

#8 2024-01-14 15:46:07

seth
Member
Registered: 2012-09-03
Posts: 57,229

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

antarctic wrote:

error: failed to retrieve mirrorstatus data: URLError: <urlopen error [Errno -2] Name or service not known>              sad

curl -vL 'https://archlinux.org/mirrors/status/json/' > /dev/null

You might generally see whether it works™, but you're not gonna be able to paraphrase that.

curl -vL 'https://archlinux.org/mirrors/status/json/' > /dev/null 2>/tmp/curl.log

will dump the traffic data into /tmp/curl.log and you'll have to share that file.

Offline

#9 2024-01-14 16:15:53

antarctic
Member
Registered: 2023-06-08
Posts: 9

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

seth wrote:
antarctic wrote:

error: failed to retrieve mirrorstatus data: URLError: <urlopen error [Errno -2] Name or service not known>              sad

curl -vL 'https://archlinux.org/mirrors/status/json/' > /dev/null

You might generally see whether it works™, but you're not gonna be able to paraphrase that.

curl -vL 'https://archlinux.org/mirrors/status/json/' > /dev/null 2>/tmp/curl.log

will dump the traffic data into /tmp/curl.log and you'll have to share that file.

I can't copy the whole text and paste it here but I get this:

* Could not resolve host: archlinux.org* Closing connection
curl: (6) Could not resolve host: archlinux.org

Last edited by antarctic (2024-01-14 16:17:35)

Offline

#10 2024-01-14 16:19:55

seth
Member
Registered: 2012-09-03
Posts: 57,229

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

I can't copy the whole text and paste it here but I get this:

Of course you can: https://en.wikipedia.org/wiki/Sneakernet
That's the whole point of redirecting the output to a file.

"could not resovle host" means that "ping -c3 8.8.8.8" worked but "ping -c3 google.com" did actually *not*?
In general we'll need the actual data from the system, not your vague rendition of what you think is relevant.

Offline

#11 2024-01-14 16:32:04

antarctic
Member
Registered: 2023-06-08
Posts: 9

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

seth wrote:

I can't copy the whole text and paste it here but I get this:

Of course you can: https://en.wikipedia.org/wiki/Sneakernet
That's the whole point of redirecting the output to a file.

"could not resovle host" means that "ping -c3 8.8.8.8" worked but "ping -c3 google.com" did actually *not*?
In general we'll need the actual data from the system, not your vague rendition of what you think is relevant.

Sorry...
This morning the google.com ping worked but now I tried it again and it actually doesn't work anymore. only the 8.8.8.8 ping.
I get the error:

 ping: google.com: Name or service not known 

Output of curl -vL 'https://archlinux.org/mirrors/status/json/' > /dev/null

   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Could not resolve host: archlinux.org
* Closing connection
curl: (6) Could not resolve host: archlinux.org 

Offline

#12 2024-01-14 16:38:20

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,215
Website

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Try

# rm /etc/resolv.conf
# echo 'nameserver 1.1.1.1' > /etc/resolv.conf
# systemctl start reflector

Looks like systemd-resolved isn't working properly.


"It's impossible for a white person to believe in capitalism and not believe in racism. You can't have capitalism without racism."
— Malcolm X

Offline

#13 2024-01-14 16:41:42

antarctic
Member
Registered: 2023-06-08
Posts: 9

Re: [Solved] Failed to start Refresh Pacman mirrorlist with Reflector...

Head_on_a_Stick wrote:

Try

# rm /etc/resolv.conf
# echo 'nameserver 1.1.1.1' > /etc/resolv.conf
# systemctl start reflector

Looks like systemd-resolved isn't working properly.

nameserver 1.1.1.1 didn't work but 8.8.8.8 worked perfect!
Thank you so much!!!

Offline

Board footer

Powered by FluxBB