Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to run "pacman -Syu" #86

Closed
ghost opened this issue Jun 19, 2018 · 35 comments
Closed

unable to run "pacman -Syu" #86

ghost opened this issue Jun 19, 2018 · 35 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2018

I cant update or install, i have gereated a public keyring thingy, this is what happens when i try to run "pacman -Syu" after a fresh reinstall

https://pastebin.com/VbiBsteU

@ghost
Copy link
Author

ghost commented Jun 19, 2018

Alright, i sorta fixed this by manually installing the files in /var/cache/pacman/pkg with "pacman -U ./*"

@FunctionalHacker
Copy link

FunctionalHacker commented Jun 19, 2018

Same thing here. Manually installed the packages in the cache, but we'll have to see when the next updates come through if this is a real fix

EDIT: tried to install some new packages and I still have the issue. Pacman was complaining that the key from builder@archlinuxarm.org is unknown trust. I trusted that but still get error: failed to commit transaction (invalid or corrupted package (PGP signature)). Perhaps this is a problem in the alarm repository

@FreshMosh
Copy link

FreshMosh commented Jun 19, 2018

At least on my device it was just an uninitialized keyring.
Therefore just do

pacman-key --init
pacman-key --populate archlinuxarm

and try again with pacman -Syu

@FunctionalHacker
Copy link

Thanks a lot, works now!

@ghost
Copy link
Author

ghost commented Jun 19, 2018

That works

@ghost ghost mentioned this issue Jun 19, 2018
@ghost
Copy link
Author

ghost commented Jun 19, 2018

And can an ADMIN close this?

@FunctionalHacker
Copy link

Why don't you close it yourself?

@ghost
Copy link
Author

ghost commented Jun 19, 2018

Because i dont know how

@tuxr
Copy link

tuxr commented Jun 26, 2018

Thank you FreshMosh, I just installed and was running into the same issue. This resolved for me as well.

@fosslinux
Copy link

@Zach-15803 next to the comment button, there is a close button

@abicorios
Copy link

It is not work for me

@FreshMosh
Copy link

@abicorios what exactly is not working for you?

@abicorios
Copy link

abicorios commented Jul 18, 2018

Now I understand. Working case in Termux is next:

pkg install git
cd && git clone https://github.com/sdrausty/TermuxArch
bash TermuxArch/setupTermuxArch.sh
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syu

My mistake was next:

pkg install git
cd && git clone https://github.com/sdrausty/TermuxArch
bash TermuxArch/setupTermuxArch.sh
pacman -Syu

And it was answer

warning: Public keyring not found; have you run 'pacman-key --init'?

So I run:

pacman-key --init
pacman -Syu 

And it was next:

error: gcc-libs: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is unknown trust
:: File /var/cache/pacman/pkg/gcc-libs-8.1.1+20180531-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

And I such

y

So I deleted all packages and TermuxArch was broken by my hands. Cool story. Yeah?

@SDRausty
Copy link
Owner

Hopefully https://sdrausty.github.io/TermuxArch/docs/outputarmv720180722.txt shall be of use; Running keys twice resolved the errors.

@abicorios
Copy link

Okay, okay. But you can run keys twice by install-script automaticaly. Why no?

@SDRausty
Copy link
Owner

@abicorios this install Arch Linux, then cannot install Arch Linux in Termux PRoot because of keyrings is a recently acquired behavior of Arch Linux in Termux PRoot that was not present earlier. I am fairly sure that the keyring shouldn't be required for users. As far as being an option for users...

@abicorios
Copy link

Ok.

  1. I install TermuxArch by setupTermuxArch.sh
  2. I have option keys.
    But if I do not run keys so pacman -Syu produce errors. If keys is option, so how can I run pacman -Syu without keys and without errors? What is another option case? Is it disabling of key-check in some configs?

@jlmess77
Copy link

jlmess77 commented Jul 24, 2018

The fix is to add the SigLevel like this.

[archstrike]
Server = https://mirror.archstrike.org/$arch/$repo

[blackarch]
Server = http://blackarch.org/blackarch/$repo/os/$arch
SigLevel = Never

@SDRausty
Copy link
Owner

This 6c9c119 commit should resolve the keyring issue.

@SDRausty
Copy link
Owner

setupTermuxArch.sh refresh can now be used to (re)generate keys too: https://sdrausty.github.io/TermuxArch/docs/outputarmv720180725refresh.txt

@abicorios
Copy link

[20:01 arch ]$ pacman -Syu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                     188.5 KiB   236K/s 00:01
 core.sig                   8.7 KiB   145K/s 00:00
error: GPGME error: No data
error: failed to update core (invalid or corrupted database (PGP signature))
 extra                      2.2 MiB   524K/s 00:04
 extra.sig                  8.7 KiB  0.00B/s 00:00
error: GPGME error: No data
error: failed to update extra (invalid or corrupted database (PGP signature))
 community                  4.1 MiB   686K/s 00:06
 community.sig              8.7 KiB   871K/s 00:00
error: GPGME error: No data
error: failed to update community (invalid or corrupted database (PGP signature))
 alarm                     46.2 KiB   171K/s 00:00
 alarm.sig                  8.7 KiB   290K/s 00:00
error: GPGME error: No data
error: failed to update alarm (invalid or corrupted database (PGP signature))
 aur                        4.4 KiB   44
 aur.sig                    8.7 KiB   290K/s 00:00
error: GPGME error: No data
error: failed to update aur (invalid or corrupted database (PGP signature))
error: failed to synchronize all databases

Is it because I have aarch64?

@FreshMosh
Copy link

FreshMosh commented Jul 25, 2018

@abicorios Run keys first in order to use pacman. Or reinstall TermuxArch entirely.

@SDRausty
Copy link
Owner

SDRausty commented Jul 25, 2018

@abicorios Running keys as @FreshMosh says is recommended. Try setupTermuxArch.sh refresh before reinstalling.

@abicorios
Copy link

keys

...
==> Running pacman -Ss keyring --color=always…
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
error: database 'extra' is not valid (invalid or corrupted database (PGP signature))
error: database 'community' is not valid (invalid or corrupted database (PGP signature))
error: database 'alarm' is not valid (invalid or corrupted database (PGP signature))


TermuxArch Keys: DONE

@FreshMosh
Copy link

FreshMosh commented Jul 25, 2018

@abicorios Please try sdrausty's solution and run in your Termux setupTermuxArch.sh refresh to refresh your TermuxArch installation.

@SDRausty
Copy link
Owner

SDRausty commented Jul 25, 2018

This snippet should be useful too: $ startarch c pacman -Syyuu

Updating -S to read -Syyuu in keys might help also.

@SDRausty
Copy link
Owner

SDRausty commented Jul 25, 2018

How'd your databases get messed up @abicorios?

error: database 'core' is not valid (invalid or corrupted database (PGP signature))
error: database 'extra' is not valid (invalid or corrupted database (PGP signature))
error: database 'community' is not valid (invalid or corrupted database (PGP signature))
error: database 'alarm' is not valid (invalid or corrupted database (PGP signature))

@abicorios
Copy link

"How'd your databases get messed up @abicorios?"
I do not know. I installed Termux Arch, and run keys. May be it depends on a mirror.

@abicorios
Copy link

It was better before fix commit. Last fix broke Arch for me.

@abicorios
Copy link

Which mirror is working for you? Maybe. I need nice mirror to exclude database error.

@FreshMosh
Copy link

FreshMosh commented Jul 29, 2018

@abicorios
Have you already tried the provided solutions?
If so, what was the output
If not, please try sdrausty's newly provided refresh-switch like
setupTermuxArch.sh refresh
Of course you may need to update your setupTermuxArch.sh-script in beforehand.

Or, if anything else fails, please completely delete the install directory of Arch in Termux and run the up-to-date setupTermuxArch.sh.

Anyway: to anwser your question:

Server = http://de4.mirror.archlinuxarm.org/$arch/$repo```

@abicorios
Copy link

Yes, I already tried all provided solutions.

keys
bash TermuxArch/setupTermuxArch.sh refresh
startarch c pacman -Syyuu

Updating -S to read -Syyuu in keys was not help.

rm -rf TermuxArch
git clone https://github.com/sdrausty/TermuxArch
bash TermuxArch/setupTermuxArch.sh 

And I have same result:

error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
error: database 'extra' is not valid (invalid or corrupted database (PGP signature))
error: database 'community' is not valid (invalid or corrupted database (PGP signature))
error: database 'alarm' is not valid (invalid or corrupted database (PGP signature))
error: database 'aur' is not valid (invalid or corrupted database (PGP signature))

@SDRausty
Copy link
Owner

SDRausty commented Jul 29, 2018

@abicorios what does bash setupTermuxArch.sh debug say?

It also appears that you misinterpreted what @FreshMosh said:

please completely delete the install directory of Arch in Termux

Use git pull to update the git repository. Deleting and recloning the repository was unnecessary:

rm -rf TermuxArch
git clone https://github.com/sdrausty/TermuxArch
bash TermuxArch/setupTermuxArch.sh 

There shouldn't be any reason to delete it. More information about working with git repositories at this link: Instructional GitHub and Git Foundations Videos Can Be Downloaded for Viewing at Your Leisure.

When setupTermuxArch.sh asks:

$ bash setupTermuxArch.sh                                                       
TermuxArch: DIRECTORY WARNING!  /data/data/com.termux/files/home/arch/ directory detected.  Termux Arch installation shall continue.  If in doubt, answer yes.                                                                                  Uninstall /data/data/com.termux/files/home/arch? [Y|n]
Uninstall /data/data/com.termux/files/home/arch? [Y|n]

Simply tap for yes.

https://sdrausty.github.io/TermuxArch/docs/outputarmv720180729debugrefresh.txt

https://sdrausty.github.io/TermuxArch/docs/outputarmv720180729installpc.txt

@abicorios
Copy link

No, I made bash SetupTermuxArch.sh uninstall
setupTermuxArchDebug9718.log

@abicorios
Copy link

I reinstall Termux, and it is not help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants