termux-pacman / pacman-for-termux

Special configured pacman for termux.
https://termux-pacman.dev
MIT License
64 stars 6 forks source link

Pacman key #17

Closed Holmberg-15A closed 1 year ago

Holmberg-15A commented 1 year ago

Help me! Screenshot_2022-10-31-19-41-04-205_com termux Screenshot_2022-10-31-19-41-08-392_com termux

Maxython commented 1 year ago

Run it

pacman-key --init
pacman-key --populate
Holmberg-15A commented 1 year ago

==> ERROR: No keyring files exist in /data/data/com.termux/files/usr/share/pacman/keyrings.

Holmberg-15A commented 1 year ago

And when he tries to update, he tries to port the keys, but he can't error: main: key "998DE27318E867EA976BA877389CEED64573DFCA" is unknown

Holmberg-15A commented 1 year ago

Screenshot_2022-11-01-13-12-55-302_com termux

Maxython commented 1 year ago

Then take the following steps:

  1. Open the pacman.conf file (nano $PREFIX/etc/pacman.conf).
  2. Find the SigLevel value and change the value to Never (SigLevel = Never).
  3. Save and close the file and install the termux-keyring package (pacman -Syy termux-keyring).
  4. After that, open this file again and change the value of SigLevel to what it was before (SigLevel = DatabaseRequired).

After these steps, pacman should work.

Holmberg-15A commented 1 year ago

Screenshot_2022-11-01-13-46-15-318_com termux

Holmberg-15A commented 1 year ago

As far as I understand, I am not the only one who has encountered this problem

Holmberg-15A commented 1 year ago

It looks like you have removed or damaged the config files, I noticed that some files that were previously present are now gone

Holmberg-15A commented 1 year ago

So I just noticed that if you leave the SigLevel config Never, then everything works, but if you change it back, it asks for keys again

Holmberg-15A commented 1 year ago

Will there be problems if SigLevel is left Never?

Holmberg-15A commented 1 year ago

It looks like pacman is currently in serious trouble

Holmberg-15A commented 1 year ago

Everyone has the same server!

Holmberg-15A commented 1 year ago

I suggest using a workaround for a while: Remove pacman and install it again but not update it (apt autoremove --purge pacman) , replace SigLevel = DatabaseRequired with SigLevel = Never, and use it!

Holmberg-15A commented 1 year ago

Try it https://s3.amazonaws.com/termux-pacman.us/main /$arch

Holmberg-15A commented 1 year ago

And it also seems to me that there is something with the pacman-keyrings package or with its installation

Maxython commented 1 year ago

Before proceeding, I would like to get the result of termux-info.

Holmberg-15A commented 1 year ago

Screenshot_2022-11-01-14-32-31-991_com termux

Holmberg-15A commented 1 year ago

So it seems that even the workaround does not work when installing something, just a huge output with an error at the end of the output until the problem with the keys is solved, nothing will work

Maxython commented 1 year ago

And so, I noticed that @Imshubh69 compiled pacman from this repository. Which I highly do not recommend, since this pacman has an old code (better install via apt). I also want to note that you have not configured pacman as the default package manager, which means that you cannot use pacman fully. If you want to use pacman as an add-on to your termux, then you just need to change the value of SigLevel. But if you want to use pacman fully, then you will need to follow the steps listed here (note: doing this you will have to change the SigLevel value).

Holmberg-15A commented 1 year ago

Unfortunately, none of the 2 methods helped, the error lies in something else (and my assumption is that there is still something with the keys, since he does not even want to install it, and when trying to install something, a huge log appears with errors at the end of each: exists in filesystem, the same as when trying to install pacman-keyring

Maxython commented 1 year ago

Unfortunately, none of the 2 methods helped, the error lies in something else (and my assumption is that there is still something with the keys)

I understand you are trying to set up pacman as the default package manager. To make pacman work, you just need to change the value of SigLevel to Never in the pacman.conf file to disable the database check. After that, you can start configuring pacman.

exists in filesystem, the same as when trying to install pacman-keyring

Did you mean termux-keyring?

Holmberg-15A commented 1 year ago

So SigLevel I have is Never yes, I mean installing termux-keyring, I can record a video about everything that happens when using pacman if you don't mind

Maxython commented 1 year ago

So SigLevel I have is Never yes, I mean installing termux-keyring, I can record a video about everything that happens when using pacman if you don't mind

This is because pacman is not your default package manager (it is apt by default). As mentioned above, to make pacman the default, you need to follow some steps (https://wiki.termux.com/wiki/Switching_package_manager). You can't use two default package managers in termux, as this can break the system.

Holmberg-15A commented 1 year ago

So just somehow, but everything worked (Ps: I didn't do anything by myself) I don't understand how (considering that I didn't even put a pacman by default)

Holmberg-15A commented 1 year ago

I think the question can be closed, but still I'm scared when reinstalling pacman whether it will break and whether it will work, I don't even know why it started working abruptly

Maxython commented 1 year ago

So I understand that you are new to using pacman. Tip: to understand what kind of pacman system, just google it well )

Holmberg-15A commented 1 year ago

No I'm not new to pacman it's just that mistakes are misleading