# Arch linux sur un dédié ovh
La première chose à faire quand on installe arch sur un serveur ovh/kimsufi/soyoustart, c'est de le mettre à jour.
En effet, leur image date de 2018, avant même que le format de paquets pacman ne soit changés de .tar.xz en .tar.zst
Pour le mettre à jour, il faut donc:
`pacman -Syyu`, jusque là facile !
Sauf que des erreurs apparaissent:
```
error: failed retrieving file 'vim-runtime-8.2.0814-3-x86_64.pkg.tar.zst' from archlinux.mirrors.ovh.net : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed retrieving file 'vim-8.2.0814-3-x86_64.pkg.tar.zst' from archlinux.mirrors.ovh.net : The requested URL returned error: 404
warning: failed to retrieve some files
wget-1.20.3-3-x86_64 722.2 KiB 7.84M/s 00:00 [####################################################################] 100%
libmaxminddb-1.4.3-1-x86_64 24.0 KiB 0.00B/s 00:00 [####################################################################] 100%
man-pages-de-2.16-2-any 3.0 MiB 11.0M/s 00:00 [####################################################################] 100%
xxhash-0.8.0-1-x86_64 72.3 KiB 7.06M/s 00:00 [####################################################################] 100%
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
```
donc là... il va falloir chercher un autre miroir:
ouvrons le `/etc/pacman.d/mirrorlist`
Ohhhh quelle tristesse, il n'y a qu'une ligne avec un repo ovh ^^. Changeons cela:
https://www.archlinux.org/mirrorlist/?country=FR&protocol=https&use_mirror_status=on
Puis:
```
…
error: could not open file /var/cache/pacman/pkg/texinfo-6.7-3-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/vim-runtime-8.2.0814-3-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/vim-8.2.0814-3-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/wget-1.20.3-3-x86_64.pkg.tar.zst: Unrecognized archive format
error: could not open file /var/cache/pacman/pkg/xfsprogs-5.7.0-3-x86_64.pkg.tar.zst: Unrecognized archive format
error: failed to commit transaction (cannot open package file)
Errors occurred, no packages were upgraded.
```
Là on est bloqués. Le pacman fourni ne comprends pas les formats de paquets.
C'est un problème tellement répandu qu'un dev arch a fait un pacman compilé en statique:
```
wget https://pkgbuild.com/~eschwartz/repo/x86_64-extracted/pacman-static
chmod + x pacman-static
./pacman-static -Syu
```
OUF, finalement notre système est à jour !
Maintenant, je veux basculer sur le kernel normal et pas le LTS !
```
pacman -S linux
grub-mkconfig -o /boot/grub/grub.cfg
```
Et là : surprise: :bomb:
```
[root@… ~]#reboot
Failed to talk to init daemon.
[root@… ~]# systemctl daemon-reload
Failed to reload daemon: Access denied
[root@… ~]# exit
ssh root@…
kex_exchange_identification: read: Connection reset by peer
Connection reset by X.X.X.X port 22
………………
R A G E Q U I T