You are not logged in.

#1 2019-08-04 06:30:48

chrisdb
Member
From: Belgium
Registered: 2018-05-16
Posts: 155

unable to download certain packages during installation

hello,

The day before yesterday I tried to reinstall my arch by using my own installation script.
I've successfully used this script many times before, but now for some reason I got issues while downloading certain packages.

The problem appeared during the 'chroot process'.
Normally I use reflector to get the latest mirrors, here's a part of my script:

# 7 Retrieve latest mirrors and update mirrorlist
echo ":: Updating mirrorlist..."
yes | pacman -S reflector --noconfirm
reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist

Although I used reflector, I still got errors like these:

error: failed retrieving file 'xxx' from xx : The requested URL returned error: 404
error: failed retrieving file 'xxx' from xx : Protocol "rsync" not supported or disabled in libcurl

In the end my grub installation was corrupted...

The strange thing is, the day afterwards I tried to reinstall arch and everything worked again! I did not change anything in the script.

So my questions are the following:
- why did reflector not see these issues for the respective mirrors
- is there a way in my script to catch any errors from pacman so I can deal with them accordingly

thx


Failure is success in progress.
A.E.

Offline

#2 2019-08-04 13:12:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: unable to download certain packages during installation

mirrors can be accessed over http, htpps or rysnc.

rsync isn't part of the installation iso (and is mainly used to synchornize mirrors) .
The --protocol option can be used to make sure reflector only uses a specific protocol, reflector wiki page has 2 examples using it.

added
Disclaimer : this could be a bug in reflector, without full command outputs that's almost imposible to determine.

Last edited by Lone_Wolf (2019-08-04 13:15:26)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-08-04 18:43:00

chrisdb
Member
From: Belgium
Registered: 2018-05-16
Posts: 155

Re: unable to download certain packages during installation

Lone_Wolf wrote:

without full command outputs that's almost imposible to determine.

I know, my script performs a reboot at the end of the installation, so there was no way to retrieve the errors...

Is there a way to collect the errors in arch-chroot during installation?


Failure is success in progress.
A.E.

Offline

#4 2019-08-04 19:08:50

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: unable to download certain packages during installation

chrisdb wrote:

Is there a way to collect the errors in arch-chroot during installation?

Have a writable partition and then use e.g. script to log terminal output? Or redirect your script output to a file (with tee if you want visible output as well)

Or just remove the automatic reboot during testing?

Last edited by progandy (2019-08-04 19:09:38)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB