archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

I can't install git and python-pip

Open castillofrancodamian opened this issue 2 years ago • 12 comments

root@archiso ~ # pacman -Sy; pacman -S git python-pip
:: Synchronizing package databases...
 core                                                                    155.1 KiB   952 KiB/s 00:00 [###########################################################] 100%
 extra                                                                  1721.2 KiB  8.12 MiB/s 00:00 [###########################################################] 100%
 community                                                                 6.6 MiB  9.72 MiB/s 00:01 [###########################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (20) perl-error-0.17029-3  perl-mailtools-2.21-5  perl-timedate-2.33-3  python-cachecontrol-1:0.12.6-4  python-colorama-0.4.4-6
              python-contextlib2-0.6.0.post1-6  python-distlib-0.3.4-1  python-distro-1.7.0-1  python-html5lib-1.1-11  python-msgpack-1.0.3-1  python-pep517-0.12.0-4
              python-progress-1.6-5  python-pyopenssl-22.0.0-1  python-resolvelib-0.5.5-4  python-retrying-1.3.3-13  python-toml-0.10.2-7  python-tomli-2.0.1-1
              python-webencodings-0.5.1-9  git-2.36.1-1  python-pip-21.0-1

Total Download Size:    7.44 MiB
Total Installed Size:  39.57 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 git-2.36.1-1-x86_64                                                       6.1 MiB  8.92 MiB/s 00:01 [###########################################################] 100%
 python-pip-21.0-1-any                                                   415.7 KiB  5.27 MiB/s 00:00 [###########################################################] 100%
 python-html5lib-1.1-11-any                                              211.5 KiB  3.62 MiB/s 00:00 [###########################################################] 100%
 python-distlib-0.3.4-1-any                                              183.2 KiB  3.58 MiB/s 00:00 [###########################################################] 100%
 python-pyopenssl-22.0.0-1-any                                            86.2 KiB  1724 KiB/s 00:00 [###########################################################] 100%
 python-msgpack-1.0.3-1-x86_64                                            73.7 KiB  1713 KiB/s 00:00 [###########################################################] 100%
 perl-mailtools-2.21-5-any                                                62.2 KiB  1555 KiB/s 00:00 [###########################################################] 100%
 perl-timedate-2.33-3-any                                                 35.8 KiB   559 KiB/s 00:00 [###########################################################] 100%
 python-toml-0.10.2-7-any                                                 34.0 KiB  1000 KiB/s 00:00 [###########################################################] 100%
 python-pep517-0.12.0-4-any                                               32.0 KiB   727 KiB/s 00:00 [###########################################################] 100%
 python-distro-1.7.0-1-any                                                31.1 KiB   676 KiB/s 00:00 [###########################################################] 100%
 python-cachecontrol-1:0.12.6-4-any                                       30.3 KiB   917 KiB/s 00:00 [###########################################################] 100%
 python-colorama-0.4.4-6-any                                              24.8 KiB   388 KiB/s 00:00 [###########################################################] 100%
 python-resolvelib-0.5.5-4-any                                            23.6 KiB   550 KiB/s 00:00 [###########################################################] 100%
 python-tomli-2.0.1-1-any                                                 22.6 KiB   610 KiB/s 00:00 [###########################################################] 100%
 perl-error-0.17029-3-any                                                 21.8 KiB   436 KiB/s 00:00 [###########################################################] 100%
 python-webencodings-0.5.1-9-any                                          19.3 KiB   567 KiB/s 00:00 [###########################################################] 100%
 python-contextlib2-0.6.0.post1-6-any                                     15.6 KiB   520 KiB/s 00:00 [###########################################################] 100%
 python-progress-1.6-5-any                                                13.9 KiB   422 KiB/s 00:00 [###########################################################] 100%
 python-retrying-1.3.3-13-any                                             10.8 KiB   271 KiB/s 00:00 [###########################################################] 100%
 Total (20/20)                                                             7.4 MiB  3.35 MiB/s 00:02 [###########################################################] 100%
(20/20) checking keys in keyring                                                                     [###########################################################] 100%
downloading required keys...
:: Import PGP key 51E8B148A9999C34, "Evangelos Foutras <[email protected]>"? [Y/n] 
:: Import PGP key C06086337C50773E, "Jelle van der Waa <[email protected]>"? [Y/n] 
:: Import PGP key 786C63F330D7CB92, "Felix Yan <[email protected]>"? [Y/n] 

:: Import PGP key 7A4E76095D8A52E4, "Antonio Rojas <[email protected]>"? [Y/n] 
:: Import PGP key FC1B547C8D8172C8, "Levente Polyak <[email protected]>"? [Y/n] 

( 3/20) checking package integrity                                                                   [-----------------------------------------------------------]   1%
(20/20) checking package integrity                                                                   [###########################################################] 100%
error: perl-error: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/perl-error-0.17029-3-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: perl-timedate: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/perl-timedate-2.33-3-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: perl-mailtools: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/perl-mailtools-2.21-5-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: git: signature from "Christian Hesse <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/git-2.36.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-msgpack: signature from "Jelle van der Waa <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-msgpack-1.0.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-cachecontrol: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-cachecontrol-1:0.12.6-4-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-colorama: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-colorama-0.4.4-6-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-contextlib2: signature from "Antonio Rojas <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-contextlib2-0.6.0.post1-6-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-distlib: signature from "Antonio Rojas <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-distlib-0.3.4-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-distro: signature from "Levente Polyak <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-distro-1.7.0-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-webencodings: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-webencodings-0.5.1-9-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-html5lib: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-html5lib-1.1-11-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-tomli: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-tomli-2.0.1-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-pep517: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-pep517-0.12.0-4-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-progress: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-progress-1.6-5-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-retrying: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-retrying-1.3.3-13-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-resolvelib: signature from "Evangelos Foutras <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-resolvelib-0.5.5-4-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-toml: signature from "Antonio Rojas <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-toml-0.10.2-7-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-pyopenssl: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-pyopenssl-22.0.0-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: python-pip: signature from "Felix Yan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-pip-21.0-1-any.pkg.tar.zst 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.

castillofrancodamian avatar May 19 '22 00:05 castillofrancodamian

This looks like you're trying to run this off the archiso. Are you on the latest ISO? It may be missing the latest signatures on the archlinux keyring.

dylanmtaylor avatar May 19 '22 00:05 dylanmtaylor

This looks like you're trying to run this off the archiso. Are you on the latest ISO? It may be missing the latest signatures on the archlinux keyring.

I have the latest version 2022.05.01. I just tried again installing git first and then python-pip and it installs fine. I have rebooted the netbook and try the command pacman -Sy; pacman -S git python-pip and the error appears again.

castillofrancodamian avatar May 19 '22 01:05 castillofrancodamian

More mistakes

root@archiso ~ # pacman -S python-pip
resolving dependencies...
looking for conflicting packages...

Packages (16) python-cachecontrol-1:0.12.6-4  python-colorama-0.4.4-6  python-contextlib2-0.6.0.post1-6  python-distlib-0.3.4-1  python-distro-1.7.0-1
              python-html5lib-1.1-11  python-msgpack-1.0.3-1  python-pep517-0.12.0-4  python-progress-1.6-5  python-pyopenssl-22.0.0-1  python-resolvelib-0.5.5-4
              python-retrying-1.3.3-13  python-toml-0.10.2-7  python-tomli-2.0.1-1  python-webencodings-0.5.1-9  python-pip-21.0-1

Total Download Size:   1.20 MiB
Total Installed Size:  5.60 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-pip-21.0-1-any                                                   415.7 KiB   333 KiB/s 00:01 [###########################################################] 100%
 python-html5lib-1.1-11-any                                              211.5 KiB  1195 KiB/s 00:00 [###########################################################] 100%
 python-distlib-0.3.4-1-any                                              183.2 KiB  1097 KiB/s 00:00 [###########################################################] 100%
 python-pyopenssl-22.0.0-1-any                                            86.2 KiB   560 KiB/s 00:00 [###########################################################] 100%
 python-msgpack-1.0.3-1-x86_64                                            73.7 KiB   478 KiB/s 00:00 [###########################################################] 100%
 python-toml-0.10.2-7-any                                                 34.0 KiB   217 KiB/s 00:00 [###########################################################] 100%
 python-pep517-0.12.0-4-any                                               32.0 KiB   213 KiB/s 00:00 [###########################################################] 100%
 python-distro-1.7.0-1-any                                                31.1 KiB   139 KiB/s 00:00 [###########################################################] 100%
 python-cachecontrol-1:0.12.6-4-any                                       30.3 KiB   202 KiB/s 00:00 [###########################################################] 100%
 python-colorama-0.4.4-6-any                                              24.8 KiB   165 KiB/s 00:00 [###########################################################] 100%
 python-resolvelib-0.5.5-4-any                                            23.6 KiB   158 KiB/s 00:00 [###########################################################] 100%
 python-tomli-2.0.1-1-any                                                 22.6 KiB   150 KiB/s 00:00 [###########################################################] 100%
 python-webencodings-0.5.1-9-any                                          19.3 KiB   129 KiB/s 00:00 [###########################################################] 100%
 python-contextlib2-0.6.0.post1-6-any                                     15.6 KiB   104 KiB/s 00:00 [###########################################################] 100%
 python-progress-1.6-5-any                                                13.9 KiB  95.3 KiB/s 00:00 [###########################################################] 100%
 python-retrying-1.3.3-13-any                                             10.8 KiB  74.1 KiB/s 00:00 [###########################################################] 100%
 Total (16/16)                                                          1228.3 KiB   207 KiB/s 00:06 [###########################################################] 100%
(16/16) checking keys in keyring                                                                     [###########################################################] 100%
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

castillofrancodamian avatar May 19 '22 02:05 castillofrancodamian

root@archiso ~ # pacman -S git
resolving dependencies...
looking for conflicting packages...

Packages (4) perl-error-0.17029-3  perl-mailtools-2.21-5  perl-timedate-2.33-3  git-2.36.1-1

Total Download Size:    6.24 MiB
Total Installed Size:  33.98 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 git-2.36.1-1-x86_64                                                       6.1 MiB  2.51 MiB/s 00:02 [###########################################################] 100%
 perl-mailtools-2.21-5-any                                                62.2 KiB   389 KiB/s 00:00 [###########################################################] 100%
 perl-timedate-2.33-3-any                                                 35.8 KiB   239 KiB/s 00:00 [###########################################################] 100%
 perl-error-0.17029-3-any                                                 21.8 KiB   145 KiB/s 00:00 [###########################################################] 100%
 Total (4/4)                                                               6.2 MiB  1833 KiB/s 00:03 [###########################################################] 100%
(4/4) checking keys in keyring                                                                       [###########################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

castillofrancodamian avatar May 19 '22 02:05 castillofrancodamian

What are you trying to do here? archinstall should already be present on that iso. Are you trying to develop it? We have isos built with each commit you can try if so

dylanmtaylor avatar May 19 '22 02:05 dylanmtaylor

That's how it is. I try to test the new changes since I am translating to Spanish. But not long ago I did the same steps and this did not happen. And how could I test those ISOs?

castillofrancodamian avatar May 19 '22 02:05 castillofrancodamian

That's how it is. I try to test the new changes since I am translating to Spanish. But not long ago I did the same steps and this did not happen. And how could I test those ISOs?

I think there may have been a keyring change between when the iso was released and when you tried to install packages. Every code commit builds an iso. You can see these here: https://github.com/archlinux/archinstall/actions/workflows/iso-build.yaml

You can download and boot development isos this way. The individual PR and commits to master should have links as well. But that said, I'm interested in trying to figure out why you couldn't install basic packages in a live iso. Let me look into this and get back to you

dylanmtaylor avatar May 19 '22 02:05 dylanmtaylor

Your Spanish commit has an iso built here with the code on it under artifacts: https://github.com/archlinux/archinstall/actions/runs/2348770554

You can just download and boot this in a VM and run archinstall with your code/change already integrated

dylanmtaylor avatar May 19 '22 02:05 dylanmtaylor

Screenshot_20220518-223841

dylanmtaylor avatar May 19 '22 02:05 dylanmtaylor

PR is generating this problem? So I'm going to have to use those ISOs.

castillofrancodamian avatar May 19 '22 02:05 castillofrancodamian

PR is generating this problem? So I'm going to have to use those ISOs.

The PR has nothing to do with the problem, but using those isos is likely the easiest way to validate your change

dylanmtaylor avatar May 19 '22 02:05 dylanmtaylor

pacman -Sy archlinux-keyring and then pacman -S git python-pip. This happens every now and then sadly.

easiest way is what dyland said :)

Torxed avatar May 19 '22 04:05 Torxed

@Torxed probably can close this as its a known issue already

svartkanin avatar Sep 04 '22 11:09 svartkanin