Can't do Pacman -Suy

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Can't do Pacman -Suy

Postby nqknxh » Wed Jan 30, 2019 5:40 am

Hi you guys,

I'm a super newbie. Don't know much about Linux, just copy and paste commands mostly. Normally I can update my Pi using "pacman -Suy" but today I got this

$this->bbcode_second_pass_code('', 'Packages (24) ca-certificates-mozilla-3.42-1 glib2-2.58.3-1 gnutls-3.6.6-1
gtk-update-icon-cache-3.24.4+15+g80b5024239-1
gtk3-3.24.4+15+g80b5024239-1 iana-etc-20190125-1
iso-codes-4.2-1 libdrm-2.4.97-1 libunrar-1:5.7.1-1
libunwind-1.3.1-1 linux-firmware-20190118.a8b75ca-1
mesa-18.3.2-1 nss-3.42-1 p11-kit-0.23.15-1
pyqt5-common-5.11.3-3 python2-mechanize-1:0.4.0-1
python2-packaging-19.0-1 python2-psutil-5.5.0-1
python2-pyqt5-5.11.3-3 python2-regex-2019.01.24-1
python2-setuptools-1:40.7.1-1 thunar-1.8.4-1 tslib-1.19-1
zstd-1.3.8-1

Total Installed Size: 616.72 MiB
Net Upgrade Size: 2.57 MiB

:: Proceed with installation? [Y/n] y
(24/24) checking keys in keyring [######################] 100%
(24/24) checking package integrity [######################] 100%
(24/24) loading package files [######################] 100%
(24/24) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
python2-pyqt5: /usr/lib/python2.7/site-packages/PyQt5/__init__.pyc exists in filesystem
Errors occurred, no packages were upgraded.')

Could you tell me what to do?
nqknxh
 
Posts: 2
Joined: Wed Jan 30, 2019 5:34 am

Re: Can't do Pacman -Suy

Postby summers » Wed Jan 30, 2019 10:07 am

What I usually do is upgrade the packages individually, e.g. $this->bbcode_second_pass_code('', 'pacman -S glib2') then you can see which package is causing the problem. Then a bit of digging and you should be able to solve, either by creating or removing the problem file ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Can't do Pacman -Suy

Postby DanSman » Wed Jan 30, 2019 7:26 pm

Hi

I guess you installed the package via pip.

This package is the problem:
python2-pyqt5

That's listed
$this->bbcode_second_pass_code('', '
python2-pyqt5: /usr/lib/python2.7/site-packages/PyQt5/__init__.pyc exists in filesystem
')
there.

Check:
$this->bbcode_second_pass_code('', 'pacman -Qo /usr/lib/python2.7/site-packages/PyQt5/__init__.pyc')
Might be something comes up like
$this->bbcode_second_pass_quote('', 'e')rror: No package owns ..


and check
$this->bbcode_second_pass_code('', 'pip list')
The package pyqt5 might be listed there.

2 options are available
Move the file $this->bbcode_second_pass_code('', '__init__.pyc') to your home folder or somewhere else or force the pacman update.
$this->bbcode_second_pass_code('', 'pacman --force -S python2-pyqt5')
$this->bbcode_second_pass_code('', 'mv /usr/lib/python2.7/site-packages/PyQt5/__init__.pyc /home/user')

Edit:
Keep in mind:
Try to install all your packages through pacman or AUR-Helper.

Good luck
DanSman
 
Posts: 9
Joined: Wed Jan 30, 2019 7:09 pm

Re: Can't do Pacman -Suy

Postby nqknxh » Thu Jan 31, 2019 2:19 am

Thank you all for your replies.

I did what you suggested. By moving the file stated above to another place, the update ran without problem.
nqknxh
 
Posts: 2
Joined: Wed Jan 30, 2019 5:34 am

Re: Can't do Pacman -Suy

Postby DanSman » Thu Jan 31, 2019 8:41 pm

Good to hear ;)
DanSman
 
Posts: 9
Joined: Wed Jan 30, 2019 7:09 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 6 guests