Package Manager Failed to prepare software

I’ve tried to update my packages using the add/remove software app for months and it always fails. What should I do? Can someone help me troubleshoot this?

run this:
pamac update
and post the output here

1 Like
pamac update
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                                          
Cloning bisq build files...                                                                
Generating bisq information...
Checking bisq dependencies...
Cloning ocaml-curl build files...
Generating ocaml-curl information...
Checking ocaml-curl dependencies...
Cloning gnome-icon-theme build files...
Generating gnome-icon-theme information...
Checking gnome-icon-theme dependencies...
Cloning tesseract-data-best-jpn_vert-git build files...
Generating tesseract-data-best-jpn_vert-git information...
Checking tesseract-data-best-jpn_vert-git dependencies...
Cloning libpdfium-nojs build files...
Generating libpdfium-nojs information...
Checking libpdfium-nojs dependencies...
Cloning python-tesserocr build files...
Generating python-tesserocr information...
Checking python-tesserocr dependencies...
Cloning ocaml-biniou build files...
Generating ocaml-biniou information...
Checking ocaml-biniou dependencies...
Cloning tachidesk build files...
Generating tachidesk information...
Checking tachidesk dependencies...
Cloning ocaml-ppx_let build files...
Generating ocaml-ppx_let information...
Checking ocaml-ppx_let dependencies...
Cloning ocaml-react build files...
Generating ocaml-react information...
Checking ocaml-react dependencies...
Cloning zoom build files...
Generating zoom information...
Checking zoom dependencies...
Cloning ocaml-xmlm build files...
Generating ocaml-xmlm information...
Checking ocaml-xmlm dependencies...
Cloning ocaml-lwt build files...
Generating ocaml-lwt information...
Checking ocaml-lwt dependencies...
Cloning ocaml-mmap build files...
Generating ocaml-mmap information...
Checking ocaml-mmap dependencies...
Cloning ocaml-ounit build files...
Generating ocaml-ounit information...
Checking ocaml-ounit dependencies...
Cloning ocaml-ppxlib build files...
Generating ocaml-ppxlib information...
Checking ocaml-ppxlib dependencies...
Cloning ocaml-yojson build files...
Generating ocaml-yojson information...
Checking ocaml-yojson dependencies...
Cloning ocaml-seq build files...
Generating ocaml-seq information...
Checking ocaml-seq dependencies...
Cloning tachidesk-jui build files...
Generating tachidesk-jui information...
Checking tachidesk-jui dependencies...
Cloning parsec-bin build files...
Generating parsec-bin information...
Checking parsec-bin dependencies...
Cloning ocaml-luv build files...
Generating ocaml-luv information...
Checking ocaml-luv dependencies...
Cloning protontricks build files...
Generating protontricks information...
Checking protontricks dependencies...
Cloning ocaml-ocplib-endian build files...
Generating ocaml-ocplib-endian information...
Checking ocaml-ocplib-endian dependencies...
Cloning normcap build files...
Generating normcap information...
Checking normcap dependencies...
Checking ocaml-ppx_here dependencies...
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/pamac_aur.db': Permission denied
Error: Failed to prepare transaction: target not found: bisq



Edit build files : [e] 
Apply transaction ? [e/y/N] y

Transaction cancelled.

In the future, please follow this guide for posting terminal output:

I’ve done it for you this time. :wink:

try running this:
sudo pamac update

sudo pamac update                                                 1 ✘  52s  
[sudo] password for sham: 
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                                          
Checking bisq dependencies...                                                              
Checking ocaml-curl dependencies...
Checking gnome-icon-theme dependencies...
Checking tesseract-data-best-jpn_vert-git dependencies...
Checking libpdfium-nojs dependencies...
Checking python-tesserocr dependencies...
Checking ocaml-biniou dependencies...
Checking tachidesk dependencies...
Checking ocaml-ppx_let dependencies...
Checking ocaml-react dependencies...
Checking zoom dependencies...
Checking ocaml-xmlm dependencies...
Checking ocaml-lwt dependencies...
Checking ocaml-mmap dependencies...
Checking ocaml-ounit dependencies...
Checking ocaml-ppxlib dependencies...
Checking ocaml-yojson dependencies...
Checking ocaml-seq dependencies...
Checking tachidesk-jui dependencies...
Checking parsec-bin dependencies...
Checking ocaml-luv dependencies...
Checking protontricks dependencies...
Checking ocaml-ocplib-endian dependencies...
Checking normcap dependencies...
Resolving dependencies...
Checking inter-conflicts...
Error: Failed to prepare transaction:
could not satisfy dependencies:
- removing wxgtk-common breaks dependency 'wxgtk-common' required by wxgtk2



Edit build files : [e] 
Apply transaction ? [e/y/N] y

Transaction cancelled.

sudo pacman -R wxgtk2
then again run:
sudo pamac update

1 Like

It looks like it updated everything but it didn’t finish. It just stopped here,

Download of xdg-desktop-portal (1.14.5-1) finished                                         
Download of xorg-xmodmap (1.0.11-1) started                                                
Download of xorg-xmodmap (1.0.11-1) finished                                               
Download of xorg-xwayland (22.1.3-1) started                                               
Download of xorg-xwayland (22.1.3-1) finished                                              
Download of zsh-completions (0.34.0-1) started                                             
Download of zsh-completions (0.34.0-1) finished                                            
Download of zita-alsa-pcmi (0.5.1-1) started                                               
Download of zita-alsa-pcmi (0.5.1-1) finished                                              
Download of wine (7.13-1) finished     
                                                    

you didnt cancel it? it downloaded the updates, and then it will run the actual updates, so wait

Please read #announcements posts and search the forum before posting.

:+1:

:-1:

Pamac will prompt for elevated privileges when needed. It is not recommended to use sudo with it at all–especially when updating AUR packages.

1 Like

No I didn’t cancel it.
It updated 375 of the 400 updates.

so did it finished succesfully?

For the most part, it failed to build this though


Building bisq...
Running as unit: run-u220.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: bisq 1.9.4-1 (Sat 30 Jul 2022 05:11:27 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading bisq-1.9.4.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 99.8M    0 99.8M    0     0  4064k      0 --:--:--  0:00:25 --:--:-- 6780k
  -> Downloading bisq-1.9.4.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   874  100   874    0     0   2506      0 --:--:-- --:--:-- --:--:-- 21850
  -> Found bisq.desktop
==> Validating source files with sha256sums...
    bisq-1.9.4.tar.gz ... Passed
    bisq-1.9.4.tar.gz.asc ... Skipped
    bisq.desktop ... Passed
==> Verifying source file signatures with gpg...
    bisq-1.9.4.tar.gz ... cat: write error: Broken pipe
FAILED
==> ERROR: One or more PGP signatures could not be verified!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 26.279s
CPU time consumed: 2.432s
Error: Failed to build bisq

from the aur page:
run this:
gpg --recv-keys 29CDFD3B
run again update

and how to fix this:

cp: cannot create regular file '/var/tmp/pamac/dbs/sync/pamac_aur.db': Permission denied

thats why i suggested to run sudo with pamac

I got the same error as above

if you run again:
pamac update
whats the ouptut?

Pamac already has access to /var/tmp/, using sudo should not be necessary.

I suggest creating an issue if there is not already an existing one.

here is the same issue
and here is a possible fix, but i dont know if its safe to remove it