Skip to main content
Topic: migration problems (Read 1965 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

migration problems

I tried to follow your migration instructions (in the wiki: https://wiki.artixlinux.org/Main/Migration) but it failed pretty early:

After 'sudo pacman -Scc && pacman -Syy' i get:

Code: [Select]
Warnung: database file for 'system' does not exist
Warnung: database file for 'world' does not exist
Warnung: database file for 'galaxy' does not exist

Puffer-Verzeichnis: /var/cache/pacman/pkg/
:: Möchten Sie ALLE Dateien aus dem Puffer entfernen? [j/N] j
Entferne alle Dateien aus dem Puffer...

Datenbank-Verzeichnis: /var/lib/pacman/
:: Möchten Sie ungenutzte Repositorien entfernen? [J/n]
Entferne unbenutzte Sync-Repositorien...
Fehler: Sie benötigen Root-Rechte, um diese Operation auszuführen.

My new /etc/pacman.d/mirrorlist looks like this:

Code: [Select]
# Worldwide mirrors
Server = https://mirrors.dotsrc.org/artix-linux/repos/\$repo/os/\$arch
Server = http://mirror.strits.dk/artix-linux/repos/\$repo/os/\$arch
Server = https://artix.mief.nl/repos/\$repo/os/\$arch
Server = http://mirror1.artixlinux.org/artix-linux/repos/\$repo/os/\$arch

What did i wrong?

Re: migration problems

Reply #1
Hello.
Reminder: You posted this into international section,  please use English for the program outputs.

There are multiple errors:
1. 'sudo pacman -Scc && pacman -Syy'
- runs "pacman-Scc" as root  and "pacman -Syy" as user
PS: All commands below must be run as root.

2. "Warnung: database file for 'galaxy' does not exist"
- The database might not exist because you never synced/downloaded it
- What is in your /etc/pacman.conf ?
- Please add your pacman.conf if you want some details

Re: migration problems

Reply #2
Sorry for the german output (how can i change that? my console is set to german ...)

Anyway the pacman.conf is identical to what is suggested on the wiki page regarding migration ...

Re: migration problems

Reply #3
For English output for forum you can simply add "LANG=C", example:
Code: [Select]
LANG=C pacman -Syy

OK, you took first and last thing in my comment, the middle section explains it to you

Quote
1. 'sudo pacman -Scc && pacman -Syy'
- runs "pacman-Scc" as root  and "pacman -Syy" as user
PS: All commands below must be run as root.

You need to run both commands as user "root".
You can do it in this way (example):
Code: [Select]
sudo pacman -Scc && sudo pacman -Syy
Or login as root, or use "su", or "be a devil" with "sudo su"

Re: migration problems

Reply #4
I did that but the next step (pacman -Syy) gives this result:

Code: [Select]
LANG=C pacman -Syy
:: Synchronizing package databases...
error: failed retrieving file 'system.db' from mirrors.dotsrc.org : The requested URL returned error: 404
error: failed retrieving file 'system.db' from mirror.strits.dk : The requested URL returned error: 404
error: failed retrieving file 'system.db' from artix.mief.nl : Failed to connect to artix.mief.nl port 443: Connection refused
error: failed retrieving file 'system.db' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed to update system (unexpected error)
error: failed retrieving file 'world.db' from mirrors.dotsrc.org : The requested URL returned error: 404
error: failed retrieving file 'world.db' from mirror.strits.dk : The requested URL returned error: 404
error: failed retrieving file 'world.db' from artix.mief.nl : Failed to connect to artix.mief.nl port 443: Connection refused
error: failed retrieving file 'world.db' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed to update world (unexpected error)
error: failed retrieving file 'galaxy.db' from mirrors.dotsrc.org : The requested URL returned error: 404
error: failed retrieving file 'galaxy.db' from mirror.strits.dk : The requested URL returned error: 404
error: failed retrieving file 'galaxy.db' from artix.mief.nl : Connection timed out after 10001 milliseconds
error: failed retrieving file 'galaxy.db' from mirror1.artixlinux.org : The requested URL returned error: 404
error: failed to update galaxy (unexpected error)
 extra                               1741,5 KiB  1472K/s 00:01 [##################################] 100%
 community                              4,5 MiB  1809K/s 00:03 [##################################] 100%

And, obviously, the next step, installation of the artix-keyring, does not work at all ... :-(

Re: migration problems

Reply #5
In your mirrorlist is there '\' before '$' ?
if yes it should not be there !

Code: [Select]
# Artix mirrors

Server = http://mirror1.artixlinux.org/repos/$repo/os/$arch
Server = http://artix.wheaton.edu/repos/$repo/os/$arch/
Server = http://mirror.strits.dk/artix-linux/repos/$repo/os/$arch
Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
Server = https://www.uex.dk/public/artix/$repo/os/$arch

So it was like that on the wiki... it should be fixed now

Re: migration problems

Reply #6
You were right about the "\" backslash. But i see there is a difference regarding the mirrors. Those i got from the wiki are:

Code: [Select]
# Worldwide mirrors
Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch          
Server = http://mirror.strits.dk/artix-linux/repos/$repo/os/$arch
Server = https://artix.mief.nl/repos/$repo/os/$arch                                             <---
Server = http://mirror1.artixlinux.org/artix-linux/repos/$repo/os/$arch

But yours are:

Code: [Select]
# Artix mirrors

Server = http://mirror1.artixlinux.org/repos/$repo/os/$arch
Server = http://artix.wheaton.edu/repos/$repo/os/$arch/                                <---
Server = http://mirror.strits.dk/artix-linux/repos/$repo/os/$arch
Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
Server = https://www.uex.dk/public/artix/$repo/os/$arch                               <---

I have marked those which are different.

Now, using mine, i get this result when trying  pacman -S artix-keyring:

Code: [Select]
LANG=C pacman -S artix keyring
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20180302-1

Total Download Size:   0,64 MiB
Total Installed Size:  0,90 MiB
Net Upgrade Size:      0,02 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 archlinux-keyring-20180302-1-any     650,5 KiB  1777K/s 00:00 [##################################] 100%
(1/1) checking keys in keyring                                 [##################################] 100%
(1/1) checking package integrity                               [##################################] 100%
error: archlinux-keyring: signature from "Artix Buildbot <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20180302-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

error: target not found: artix
error: target not found: keyring

With your mirrorlist the result is the same:

Code: [Select]
LANG=C pacman -S artix-keyring
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20180302-1

Total Download Size:   0,64 MiB
Total Installed Size:  0,90 MiB
Net Upgrade Size:      0,02 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 archlinux-keyring-20180302-1-any     650,5 KiB  1971K/s 00:00 [##################################] 100%
(1/1) checking keys in keyring                                 [##################################] 100%
(1/1) checking package integrity                               [##################################] 100%
error: archlinux-keyring: signature from "Artix Buildbot <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20180302-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

resolving dependencies...
looking for conflicting packages...

Packages (1) artix-keyring-20171114-1

Total Download Size:   0,04 MiB
Total Installed Size:  0,08 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 artix-keyring-20171114-1-any          38,8 KiB   881K/s 00:00 [##################################] 100%
(1/1) checking keys in keyring                                 [##################################] 100%
(1/1) checking package integrity                               [##################################] 100%
error: artix-keyring: signature from "Artix Buildbot <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/artix-keyring-20171114-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Is there a way to install the correct keyring otherwise?

In any case, thanks a lot for your patience!

Re: migration problems

Reply #7
Mirrors change over the time...

As always there is more ways how to do this.
But for safety reasons you should manually add artix key / signature
(i took this from wiki, i am not expert in this area)

Code: [Select]
 pacman-key --populate artix
pacman-key --lsign-key 78C9C713EAD7BEC69087447332E21894258C6105

and when you signed it you should be able to install artix keyring and continue with installation.

Another way (i did it this way) is not very safe.
You can force pacman to NOT check package signature and install it.

Re: migration problems

Reply #8
I did as suggested before "pacman -S artix-keyring but:

Code: [Select]
LANG=C pacman -S artix-keyring
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20180302-1

Total Download Size:   0,64 MiB
Total Installed Size:  0,90 MiB
Net Upgrade Size:      0,02 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 archlinux-keyring-20180302-1-any     650,5 KiB   469K/s 00:01 [##################################] 100%
(1/1) checking keys in keyring                                 [##################################] 100%
(1/1) checking package integrity                               [##################################] 100%
error: archlinux-keyring: signature from "Artix Buildbot <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20180302-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

resolving dependencies...
looking for conflicting packages...

Packages (1) artix-keyring-20171114-1

Total Download Size:   0,04 MiB
Total Installed Size:  0,08 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 artix-keyring-20171114-1-any          38,8 KiB   362K/s 00:00 [##################################] 100%
(1/1) checking keys in keyring                                 [##################################] 100%
(1/1) checking package integrity                               [##################################] 100%
error: artix-keyring: signature from "Artix Buildbot <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/artix-keyring-20171114-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

For my simple mind, it looks like the counterpart is broken
Code: [Select]
error: artix-keyring: signature from "Artix Buildbot <[email protected]>" is unknown trust

Btw, me too, i saw in the wiki the comma regarding the installation of the keyring. I tried all what is suggested there, but to no extent. I'm always hanging at the same point ... :-(


Re: migration problems

Reply #9
If you edit the /etc/pacman.conf and change

Code: [Select]
SigLevel = Required 
to
SigLevel = Never

download and update/populate archlinux and artix  then switch them back. 
Those are the two keyrings that all pkgs are checked by, and right now you don't have any, so you have to allow them in first.  Then switch back to Siglevel as it was default.
The line Siglevel = .....  can go between each repository header and mirrorlist definition for any other repository you may add in the future.

I suspect you only have the manjaro key now.  It has been a while since I made a manjaro to artix move.

Re: migration problems

Reply #10
Thanks fungalnet. That works so far. But now, a, for me, tricky question: All goes thru fine up to when it comes to Install OpenRC (in the migration wiki). When i execute this command ('pacman -S base base-devel openrc-system grub linux-lts linux-lts-headers systemd-dummy libsystemd-dummy openrc-world openrc netifrc grub mkinitcpio') I'm prompted with 2 conflicts:

Code: [Select]
:: elogind-openrc and systemd-sysvcompat are in conflict. Remove systemd-sysvcompat? [y/N]

What do i do? y? If yes i get:

Code: [Select]
:: artix-mirrorlist and pacman-mirrors are in conflict (pacman-mirrorlist). Remove pacman-mirrors? [y/N]

1. Why that? I created the mirrorlist exactly like advised in the wiki ...

Re: migration problems

Reply #11
You want to remove systemd, so it is logical to remove it. (Press Yes)
Artix mirrorist is package which contains mirrorlist for artix, it is in conflict with pacman mirrorlist because it is using the same file (Press Yes)

Why that ?
You modified some files, now you need to install correct packages.

Re: migration problems

Reply #12
I felt ...  :-[  Anyway ...

In some way now i'm thru the migration ... with problems.

1) I seem to have a problem with sddm. I configured as proposed but when the boot process finishes and the dm should come up there is only a dead underline cursor. So, starting from a rescue disk i reconfigured the /etc/conf.d/xdm back to xdm. Then i log in to a console and have to start X by startx.

2) When i log in as user, all input devices result dead (no keyboard, no mouse). But when i login as root all works, more or less (some settings are gone), like it should. At this point i'd need a hleping hand to guide me thru the xinit and xorg configurations ...

Re: migration problems

Reply #13
1) I have no idea, i don't use sddm. Do you have any logs ?
     It might be better to create new topic for this

2) I would check if your user is in right groups (IIRC when i was migrating some groups were removed...)
     You can find you groups with command 'id'

Since you migrated and should be running openrc post output from command "rc-status"

Re: migration problems

Reply #14
I migrated yes, but the migrated setup was absolutely not useable. So i gave up on that and tried the way of an installation from the live isos.

Unfortunately both fails - at least for me.