Skip to main content
Topic: General issues after the latest kernel upgrades (Read 536 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

General issues after the latest kernel upgrades

Hey there,

Something happened after the latest two artix kernel updates from 6.8.7-artix1-1 to 6.8.7-artix1-2 and 6.8.8-artix1-1.
The Printers GUI does not start and Settings editor for LightDM GTK+ Greeter does not start as well. The difference is that when I click on Lightdm GTK greeter settings icon, the system asks for the Admin password and after I enter it, nothing happens on all drives that run cinnamon openrc with the artix kernels 6.8.7-artix1-2 and 6.8.8-artix1-1. I tried to resolve the problem. Here are the descriptions.

There two drives running artix-cinnamon-openrc-20230814-x86_64.iso (both installed from a LIVE pendrive)

Problem 1.

drive 1:

This machine's Printer Settings (Printers GUI) worked fine till kernel 6.8.7-artix1-1.
Note: Cups was in the Users and Groups of the Admin account.

After the upgrade from kernel 6.8.7-artix1-2 and to 6.8.8-artix1-1, the Printers GUI wont start from the System Settings. The printer driver was installed more that a year ago and it worked fine with the kernel 6.8.7-artix1-1. Now, it prints but the Printer Settings/Printers GUI is not starting anymore i.e. the Printer Icon in the System Settings is static i.e does not react on the clicks. I did not do any unistallations and re-installations to try to solve the problem because on drive 2 I tried this and did not work.

drive 2:

It is a fresh installation with the Stable ISO (artix-cinnamon-openrc-20230814-x86_64.iso) i did the update (sudo pacman -Syu) and reboot.
Then:
sudo pacman -S base-devel
sudo pacman -S artix-archlinux-support
enabled the Artix 'lib32' repo and added the Arch repositories
then:
sudo pacman-key --populate archlinux
sudo pacman -Syyy && sudo reboot
then:
Installed YAY:
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
then:
still in the terminal installed the Octopi package manager with yay
then:
installed system-config-printer in octopi
then in terminal:
sudo pacman -S cups  cups-openrc
rc-update add cupsd
then:
added few cinnamon modules (cinnamon-translations, iso-flag, mintlocales, mint-themes, LightDM GTK Greeter settings)
some software...
at the end run sudo pacman -Syu in terminal.
then:
added the printer driver successfully
then:
tried to run the Printers GUI and it did not start.
then:
Checked the cups in Users and Groups. Cups was not in the Users and Groups / Admin account. Added 'cups' to the Admin account. This did not solve the problem.

If I run the system-config-printer command in terminal, this is what I get:

system-config-printer

(system-config-printer.py:4944): Handy-WARNING **: 06:22:46.829: Using GtkSettings:gtk-application-prefer-dark-theme together with HdyStyleManager is unsupported. Please use HdyStyleManager:color-scheme instead.
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 86, in <module>
    import cupshelpers
ModuleNotFoundError: No module named 'cupshelpers'

Any ideas why system-config-printer GUI wont run as well as the Settings editor for LightDM GTK+ Greeter? The printer related installations did not show any errors.

Problem 2.

I want to change the default artix theme look: applications/artix-dark, icons/adwaita, desktop/artix-dark to mint/Y, icons/papirus, desktop/mint-y-dark but it does not fully work after the latest two kernel updates. The icon pack changes work.

Please advise.

Re: General issues after the latest kernel upgrades

Reply #1
Not only Artix Linux OpenRC, but I noticed that my System-config-printer program on my Dinit Artix Linux System doesn't work either.
When I try to launch it on terminal, it shows the following message:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 86, in <module>
    import cupshelpers
ModuleNotFoundError: No module named 'cupshelpers'

I think it may be related with the update 6.8.7-artix1-2.

Re: General issues after the latest kernel upgrades

Reply #2
https://bbs.archlinux.org/viewtopic.php?id=295392
Workaound suggested there:
Code: [Select]
sudo ln -sf /usr/lib/python3.12/site-packages/cupshelpers-1.0-py3.12.egg/cupshelpers /usr/lib/python3.12/site-packages/cupshelpers
And see the related bug report, work is ongoing to fix properly, it is related to recent python updates and not the kernel:
https://github.com/OpenPrinting/system-config-printer/issues/357

It's also possible to add and configure printers via the CUPS interface which is what I usually do, I hadn't used this system-config-printer app before but perhaps it makes things easier  ;D
http://localhost:631/

Re: General issues after the latest kernel upgrades

Reply #3
https://bbs.archlinux.org/viewtopic.php?id=295392
Workaound suggested there:
Code: [Select]
sudo ln -sf /usr/lib/python3.12/site-packages/cupshelpers-1.0-py3.12.egg/cupshelpers /usr/lib/python3.12/site-packages/cupshelpers
And see the related bug report, work is ongoing to fix properly, it is related to recent python updates and not the kernel:
https://github.com/OpenPrinting/system-config-printer/issues/357

It's also possible to add and configure printers via the CUPS interface which is what I usually do, I hadn't used this system-config-printer app before but perhaps it makes things easier  ;D
http://localhost:631/


well, CUPS and Admin is always there. Muchos tank yous :)  A perfectionist here, and the problem bugged me since appeared. Tried to get some sleep with this question: why is that there is a code, there is always its bug?
The suggested workaround worked.

Re: General issues after the latest kernel upgrades

Reply #4
That's one problem solved then, but how about lightdm-settings? Trying it here, it starts OK from the terminal, although I don't have lightdm set up as dm, so perhaps this is not reproducing your issue:
Code: [Select]
# lightdm-settings

 

Re: General issues after the latest kernel upgrades

Reply #5
so far the first problem fixed, but with the new updates, including the system-config-printer-1.5.18-4 showed the "Failed to commit transaction (conflicting files)" error:

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.

I removed the system-config-printer in octopi, cleared the octopi cache and tried to install the system-config-printer and got an error:

error: failed to commit transaction (conflicting files)
system-config-printer: /usr/lib/python3.12/site-packages/cupshelpers exists in filesystem

manually deleting the 'cupshelpers' resolved the problem and the system-config-printer is installed on the system, and the update ended successfully. pacman was happy)

2.

the lightdm-settings worked here too, but the gtk version not.  problem two solved. tank you very muchos.