You are not logged in.

#1 2022-11-28 13:15:17

taiongh
Member
Registered: 2018-10-04
Posts: 75

[SOLVED]pikaur upgrade error

The solution:
First uninstall pikaur, then delete the pkiaur folder in the user directory, and then reinstall pikaur.


pikaur upgrade error, ask for advice, the output is as follows:

[taizongh@leccesg pikaur]$ pikaur -Syu
:: Warning:
:: Warning: System Python had minor version update. You need to rebuild Pikaur:
Warning: pikaur -S --rebuild pikaur
:: Warning: or
Warning: pikaur -S --rebuild pikaur-git
:: Warning:
:: Synchronizing software package database...
core is the latest version
extra is the latest version
community is the latest version

:: carry out a comprehensive AUR update...
Read the package repository database...
Read the local package database...
Reading AUR packet information...
Traceback (most recent call last):
File "/usr/bin/pikaur", line 36, in <module></module>
main()
File "/usr/lib/python3.9/site-packages/pikaur/main.py", line 352, in main
cli_entry_point()
File "/usr/lib/python3.9/site-packages/pikaur/main.py", line 271, in cli_entry_point
run_with_sudo_loop(pikaur_operation)
File "/usr/lib/python3.9/site-packages/pikaur/core.py", line 332, in run_with_sudo_loop
raise catched_exc  # pylint: disable=raising-bad-type
File "/usr/lib/python3.9/site-packages/pikaur/core.py", line 326, in run_with_sudo_loop
result = main_thread.get()
The File "/ usr/lib/python3.10 multiprocessing/pool. Py", line 774, get in
raise self._value
The File "/ usr/lib/python3.10 multiprocessing/pool. Py", line 125, in the worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.9/site-packages/pikaur/main.py", line 117, in cli_install_packages
InstallPackagesCLI()
File "/usr/lib/python3.9/site-packages/pikaur/install_cli.py", line 161, in __init__
self.main_sequence()
File "/usr/lib/python3.9/site-packages/pikaur/install_cli.py", line 168, in main_sequence
self.get_all_packages_info()
File "/usr/lib/python3.9/site-packages/pikaur/install_cli.py", line 249, in get_all_packages_info
self.install_info = InstallInfoFetcher(
File "/usr/lib/python3.9/site-packages/pikaur/install_info_fetcher.py", line 68, in __init__
self.get_all_packages_info()
File "/usr/lib/python3.9/site-packages/pikaur/install_info_fetcher.py", line 167, in get_all_packages_info
self.get_aur_pkgs_info(self.not_found_repo_pkgs_names)
File "/usr/lib/python3.9/site-packages/pikaur/install_info_fetcher.py", line 388, in get_aur_pkgs_info
aur_updates_list, not_found_aur_pkgs = find_aur_updates()
The File "/ usr/lib/python3.9 / site - packages/pikaur/updates. Py", line 117, in find_aur_updates
aur_pkgs_info, not_found_aur_pkgs = find_aur_packages(package_names)
File "/usr/lib/python3.9/site-packages/pikaur/aur.py", line 170, in find_aur_packages
results = [request.get() for request in requests]
File "/usr/lib/python3.9/site-packages/pikaur/aur.py", line 170, in <listcomp></listcomp>
results = [request.get() for request in requests]
The File "/ usr/lib/python3.10 multiprocessing/pool. Py", line 774, get in
raise self._value
The File "/ usr/lib/python3.10 multiprocessing/pool. Py", line 125, in the worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.9/site-packages/pikaur/aur.py", line 129, in aur_rpc_info_with_progress
result = aur_rpc_info(search_queries)
File "/usr/lib/python3.9/site-packages/pikaur/aur.py", line 119, in aur_rpc_info
return [
File "/usr/lib/python3.9/site-packages/pikaur/aur.py", line 120, in <listcomp></listcomp>
AURPackageInfo(**{key.lower(): value for key, value in aur_json.items()})
File "/usr/lib/python3.9/site-packages/pikaur/aur.py", line 52, in __init__
super().__init__(**kwargs)
File "/usr/lib/python3.9/site-packages/pikaur/core.py", line 64, in __init__
setattr(self, key, value)
File "/usr/lib/python3.9/site-packages/pikaur/core.py", line 77, in __setattr__
raise TypeError(
TypeError: 'AURPackageInfo' does not have attribute 'comaintainers'

Last edited by taiongh (2022-11-29 13:27:39)

Offline

#2 2022-11-28 13:57:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED]pikaur upgrade error

The output told you exactly what to do - or at least what pikaur thinks you should do.

My advice would be to not use a pacman wrapper and learn to manage your system properly.  Though if you do not read the output of commands, this would still not do you much good.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2022-11-28 14:37:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,785

Re: [SOLVED]pikaur upgrade error

Moving to AUR issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2022-11-28 14:38:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,723

Re: [SOLVED]pikaur upgrade error

Moving to AUR issues.

Offline

#5 2022-11-29 17:44:32

rkelly
Member
Registered: 2012-08-07
Posts: 5

Re: [SOLVED]pikaur upgrade error

The maintainer says this:

actionless commented on 2022-11-27 13:05 (UTC)
AUR RPC reply changed today - unfortunately that would require rebuilding pikaur manually.

As another user posted in another thread, rebuilding pikaur seems to work. My approach:

cd /tmp
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pikaur.tar.gz
tar xvfz pikaur.tar.gz
cd pikaur
makepkg -s
sudo pacman -U pikaur-1.14.5-1-any.pkg.tar.zst

Offline

#6 2022-11-30 07:26:02

archqt
Member
Registered: 2015-04-29
Posts: 180

Re: [SOLVED]pikaur upgrade error

Another way

git clone https://aur.archlinux.org/pikaur.git
cd pikaur
makepkg -fsri

Offline

Board footer

Powered by FluxBB