Could Not Update (system printer config)

I took a member’s advice about how to fix broken (wouldn’t launch) system-config-printer a couple days ago by creating a symlink. Is this related?
I can no longer update Endeavour:

:: Proceed with installation? [Y/n] y
(25/25) checking keys in keyring                                                 [----------------------------------------------] 100%
(25/25) checking package integrity                                               [----------------------------------------------] 100%
(25/25) loading package files                                                    [----------------------------------------------] 100%
(25/25) checking for file conflicts                                              [----------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__init__.py exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/__init__.cpython-312.opt-1.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/__init__.cpython-312.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/config.cpython-312.opt-1.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/config.cpython-312.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/cupshelpers.cpython-312.opt-1.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/cupshelpers.cpython-312.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/installdriver.cpython-312.opt-1.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/installdriver.cpython-312.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/openprinting.cpython-312.opt-1.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/openprinting.cpython-312.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/ppds.cpython-312.opt-1.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/ppds.cpython-312.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/xmldriverprefs.cpython-312.opt-1.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/__pycache__/xmldriverprefs.cpython-312.pyc exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/config.py exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/cupshelpers.py exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/installdriver.py exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/openprinting.py exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/ppds.py exists in filesystem
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers/xmldriverprefs.py exists in filesystem
Errors occurred, no packages were upgraded.

What do I need to do to update Endeavour again? I’m sure this is easy but I’m not real sharp with this one. Thank you.

The answer is usually in the Arch Wiki:
https://wiki.archlinux.org/title/pacman#Troubleshooting

since there were so many core updates I wound up excluding printer config so there’s that…


that went fine.

Almost definitely. Remove the symlink

If this is what I did:
sudo ln -sf /usr/lib/python3.12/site-packages/cupshelpers-1.0-py3.12.egg/cupshelpers /usr/lib/python3.12/site-packages/cupshelpers

then how do I undo?


this ^^ will take some spelunking, but I did bring this on myself. thanks for the reference.

sudo rm /usr/lib/python3.12/site-packages/cupshelpers
1 Like
$ sudo rm /usr/lib/python3.12/site-packages/cupshelpers
[sudo] password for drunkenvicar: 
$ yay
:: Synchronizing package databases...
 endeavouros
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
 -> Missing AUR Debug Packages: nitch-debug
:: 1 package to upgrade/install.
1  extra/system-config-printer  1.5.18-3 -> 1.5.18-4
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 
Sync Explicit (1): system-config-printer-1.5.18-4
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (1)                  Old Version  New Version  Net Change

extra/system-config-printer  1.5.18-3     1.5.18-4       0.00 MiB

Total Installed Size:  8.09 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                 [--------------------------------------------] 100%
(1/1) checking package integrity                                               [--------------------------------------------] 100%
(1/1) loading package files                                                    [--------------------------------------------] 100%
(1/1) checking for file conflicts                                              [--------------------------------------------] 100%
:: Processing package changes...
(1/1) upgrading system-config-printer                                          [--------------------------------------------] 100%
:: Running post-transaction hooks...
(1/6) Reloading system manager configuration...
(2/6) Reloading device manager configuration...
(3/6) Arming ConditionNeedsUpdate...
(4/6) Reloading system bus configuration...
(5/6) Checking which packages need to be rebuilt
(6/6) Updating the desktop file MIME type cache..

:+1: :smiley: :purple_heart:

thanks sincerely.

1 Like

I use this for forced update when there are errors related to files already existing:

sudo pacman -Syu --overwrite='/*'

You shouldn’t just do that blindly unless you understand the source of the errors. That can just create more errors.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.