Open Jackfritt opened 1 year ago
Try this way. I fixed my issue with Mariadb giving me the same error with. I tried all the other way this seemed to work. Just replace the mariadb with key-mapper or key-mapper.
sudo apt purge mariadb* -y | sudo apt purge mysql* -y
sudo apt autoremove -y | sudo apt autoclean -y
sudo rm -R /usr/share/Mariad* | sudo rm -R /usr/share/Mysq*
sudo apt-get install mariadb-server
sudo apt update
Hope this helps✨
Never had key-mapper.service installed.... maybe thats the problem?
Those errors are fine, this is from https://github.com/sezanzeb/input-remapper/blob/main/DEBIAN/postinst, which makes sure old services with the old name are not running in parallel.
input-remapper will require python 3.10 though. Try installing https://github.com/sezanzeb/input-remapper/releases/tag/1.5.1 if you haven't upgraded your system in the meantime
Since it reaches postinst, is input-remapper installed, but just doesn't start? Have you tried running sudo input-remapper-service
after the installation attempt?
Didnt upgrade the system to python3.10 thats to much trouble for my system.
So went on with 3.9
git checkout tags/1.5.1
LC_ALL=C sudo apt install -f ./dist/input-remapper-1.5.1.deb
Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'input-remapper' instead of './dist/input-remapper-1.5.1.deb' The following packages will be DOWNGRADED: input-remapper 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/216 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Get:1 /home/kvm/src/input-remapper/dist/input-remapper-1.5.1.deb input-remapper all 1.5.1 [216 kB] dpkg: warning: downgrading input-remapper from 2.0.0 to 1.5.1 (Reading database ... 498103 files and directories currently installed.) Preparing to unpack .../dist/input-remapper-1.5.1.deb ... Unpacking input-remapper (1.5.1) over (2.0.0) ... Setting up input-remapper (1.5.1) ... Failed to disable unit: Unit file key-mapper.service does not exist. Failed to stop key-mapper.service: Unit key-mapper.service not loaded. Job for input-remapper.service failed because the control process exited with error code. See "systemctl status input-remapper.service" and "journalctl -xe" for details. dpkg: error processing package input-remapper (--configure): installed input-remapper package post-installation script subprocess returned error exit status 1 Processing triggers for mailcap (3.69) ... Processing triggers for desktop-file-utils (0.26-1) ... Processing triggers for dbus (1.12.24-0+deb11u1) ... Errors were encountered while processing: input-remapper E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo input-remapper-service
Traceback (most recent call last):
File "/usr/bin/input-remapper-service", line 28, in
LC_ALL=C sudo apt remove -f ./dist/input-remapper-1.5.1.deb
Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'input-remapper' instead of './dist/input-remapper-1.5.1.deb' input-remapper is already the newest version (1.5.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up input-remapper (1.5.1) ... Failed to disable unit: Unit file key-mapper.service does not exist. Failed to stop key-mapper.service: Unit key-mapper.service not loaded. Job for input-remapper.service failed because the control process exited with error code. See "systemctl status input-remapper.service" and "journalctl -xe" for details. dpkg: error processing package input-remapper (--configure): installed input-remapper package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: input-remapper E: Sub-process /usr/bin/dpkg returned an error code (1)
Still cant uninstall.
Also found this. Maybe thats the problem?
Aug 21 10:06:36 systemd[1]: Starting Service to inject keycodes without the GUI application...
Aug 21 10:06:36 input-remapper-service[1285438]: Traceback (most recent call last):
Aug 21 10:06:36 input-remapper-service[1285438]: File "/usr/bin/input-remapper-service", line 28, in
The real problem is me trying to install it on python < 3.10 . Just write it somewhere(didnt know that until you said it here :) ) or check it in the build? install scripts?
I will wait for a next Debian release when its included :)
ty for support!
Use this to remove broken package
sudo dpkg --remove --force-remove-reinstreq input-remapper
ModuleNotFoundError: No module named 'inputremapper'
This usually happens because python paths are somehow incorrect. Happens after python upgrades, or because of stuff like conda or active pipenvs. https://github.com/sezanzeb/input-remapper/issues/723#issuecomment-1605656474
uname -a Linux 6.0.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.3-1~bpo11+1 (2022-10-29) x86_64 GNU/Linux
cat /etc/debian_version 11.7
Remove also dont work now ;)
any hints?
Never had key-mapper.service installed.... maybe thats the problem?