Home FAQ Solve “Perl 5.26 Dependency error: failed to prepare transaction (could not satisfy dependencies)” In Arch Linux

Solve “Perl 5.26 Dependency error: failed to prepare transaction (could not satisfy dependencies)” In Arch Linux

By sk
Published: Updated: 845 views

Today, I tried to update my Arch Linux desktop, and ended up with Perl dependency problem. However, I never installed those broken Perl packages directly. I thought it was due to pacman problem. After a bit of searching on Arch Linux forums, I found that it isn't related to pacman, but AUR. Here is the error message I got when I tried to update my Arch system.

$ sudo pacman -Syu

Sample output:

:: Synchronizing package databases...
 core 124.1 KiB 131K/s 00:01 [----------------------] 100%
 extra 1667.6 KiB 221K/s 00:08 [----------------------] 100%
 community 3.8 MiB 375K/s 00:10 [----------------------] 100%
 multilib 176.6 KiB 189K/s 00:01 [----------------------] 100%
 archlinuxfr is up to date
 :: Starting full system upgrade...
 :: Replace wxgtk with extra/wxgtk2? [Y/n]
 resolving dependencies...
 looking for conflicting packages...
 error: failed to prepare transaction (could not satisfy dependencies)
 :: gnome-perl: installing perl (5.26.0-1) breaks dependency 'perl<5.25'
 :: gnome-vfs-perl: installing perl (5.26.0-1) breaks dependency 'perl<5.25'
 :: gnomecanvas-perl: installing perl (5.26.0-1) breaks dependency 'perl<5.25'
 :: perl-gnome2-wnck: installing perl (5.26.0-1) breaks dependency 'perl<5.25'
 :: perl-goo-canvas: installing perl (5.26.0-1) breaks dependency 'perl<5.25'
 :: perl-gtk2-imageview: installing perl (5.26.0-1) breaks dependency 'perl<5.25'
 :: perl-gtk2-unique: installing perl (5.26.0-1) breaks dependency 'perl<5.25'

The above packages are the dependencies of Shutter screenshot tool. The actual reason of this perl dependency issue is the developer of Shutter has stopped the development two or three years ago. It makes use of a lot of dependencies which makes it very hard to maintain.

To solve this problem, either you should uninstall Shutter, and go for the other alternative, or just remove Shutter and all its dependencies, and then reinstall it again.

To remove shutter, run:

$ sudo pacman -R shutter

After removing Shutter, you need to remove all unused dependencies using command:

$ sudo pacman -Rns $(pacman -Qtdq)

Alternatively, you can only remove problematic dependencies using as shown below. Please be careful while doing this. Just make sure you are removing the correct problematic perl packages only.

$ sudo pacman -R perl-gtk2-unique perl-gtk2-imageview perl-goo-canvas perl-gnome2-wnck gnomecanvas-perl gnome-vfs-perl gnome-perl

This time I updated my Arch Linux box without any issues. After updating the system, you can either find any alternative tool for Shutter or simply reinstall it using Yaourt or Packer.

yaourt -S shutter

Or,

packer -S shutter

Reinstalling Shutter may bring this perl dependency issue again. I recommend you to wait for the official solution. This method will solve the problem temporally.  Or, find an alternative to the Shutter screenshot tool, and get rid of it permanently.

Cheers!

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You May Also Like

5 comments

Ruben June 19, 2017 - 5:20 pm

Thanks, clear descriptive tutorial and not unimportant, it worked for me!

Reply
kejzak July 14, 2019 - 9:09 am

super!! worked for me too

Reply
keth July 17, 2019 - 12:12 am

Thank you sir, like Ruben said, useful comment and straight to the point, This worked for me !!!

Reply
Orlando July 20, 2019 - 9:26 am

Ok I actually disabled adblock for this, great tut.

Reply
sk July 20, 2019 - 12:47 pm

Thank you very much for supporting us.

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More