Linux Fixes

lewisgill.com

This page documents all the issues have I encountered in Linux since August 2022 and what I've done to fix them. These fixes should work just fine on any distro however some may require sone slight tweaking for non-Arch based distributions e.g. using apt instead of pacman.

Application(s) Issue(s) Fix Fix Explanation
plasma-desktop Taskbar gone / KDE crashed Run the following commands;
  1. killall plasmashell
  2. kstart plasmashell
If the first command returns "plasmashell: no process found" then Plasma has crashed, if it does not them Plasma has simply not then Plasma is still partially running and causing issues. This is why the second command is needed as in the first case the process isn't even running so we need to start it up again and in the second case it is nessecary to perform a restart of Plasma to attempt to resolve any issues.
OpenSSH no hostkeys available -- exiting Run the command: ssh-keygen -A Generates host key
timedatectl, firefox, gpg, pacman System clock syncronised: no, SEC_ERROR_OCSP_FUTURE_RESPONSE, Gpg: key was created X days in future (time warp or clock problem)
  1. Check the current date and time is correct by running timedatectl. If the date is incorrect proceed to next set
  2. hwclock -systohc
These issues stem from your system clock being desynchronised. These commands will resynchronise it
Dolphin Unknown protocol audiocd sudo pacman -S audiocd-kio dolphin requires this package to support CDs
nvidia Screen tearing
  1. Open /etc/X11/mhwd.d/nvidia.conf in your favourite text editor with root permission.
  2. Under "devices" add the line Option "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
  3. Save the modified file with the exact name and location: /etc/X11/xorg.conf.d/95-mhwd.conf
  4. As root, delete /etc/X11/xorg.conf.d/@90-mhwd.conf, or 90-mhwd.conf file (whichever you have)
  5. Logout then login again
Blocks Nvidias broken proprietary updates from messing with your 95-mhwd.conf file. For more info click here
pacman Failed to commit transaction (invalid or corrupted package (PGP signature)) SOLUTION 1: Run the following commands. Do not add the text in italics unless you are on Manjaro:
  1. sudo rm -rf /etc/pacman.d/gnupg
  2. sudo pacman-key --init
  3. sudo pacman-key --populate archlinux manjaro
  4. sudo pacman-key --refresh-keys
SOLUTION 2: If this does not work then try;
  1. sudo pacman -Sy archlinux-keyring && pacman -Su
SOLUTION 3: If all else fails and you can be 100% sure that you trust the source of your binaries, you can issue the following commands;
  1. sudo pacman -Syyu --noconfirm
  2. sudo pacman -Syyu --confirm ← Restores package integrity verification
  1. Error is caused by an issue with the GnuPG local master key, which becomes unable to sign other keys, it can be regenerated with the first command and then the rest of the keys can be repopulated and refreshed with the latter commands.
  2. Updates the Arch Linux key ring then re-syncs the package database
  3. Simply ignores the error by skipping some checks
unbound when used with Pi-hole status: SERVFAIL on every request Complete the following
  1. Run sudo systemctl status unbound-resolvconf.service
  2. Run sudo systemctl disable unbound-resolvconf.service
  3. Run sudo systemctl stop unbound-resolvconf.service
  4. Run sudo systemctl restart dhcpcd
  5. Edit /etc/resolvconf.conf and comment out the line unbound_conf=/etc/unbound/unbound.conf.d/resolvconf_resolvers.conf
  6. Run the following command sudo rm /etc/unbound/unbound.conf.d/resolvconf_resolvers.conf
  7. Restart the unbound service using sudo service unbound restart
This issue occurs as unbound is attempting to resolve to a config file other than pi-hole's
Betterbird Sender address rejected: Not logged in
  1. Right click on the email account you are having the issue with. This will open the Account Settings panel.
  2. Select server settings
  3. Ensure the username field contains only your username and not something like myusername@example.org
  4. In this same section ensure your authentication method is actually set. This should usually be set to "Normal Password"
  5. Repeat the same process for the "Outgoing Server (SMTP)" section
This issue is usually caused by Betterbird not automatically detecting the correct authentication method or by Betterbird automatically changing your username field to your full e-mail address rather than just your username.
OpenRGB One or more I2C/SMBus interfaces failed to initialize. Run the following:
  1. sudo modprobe i2c-dev
  2. sudo modprobe i2c-piix4 (if using an AMD chipset) OR sudo modprobe i2c-i801 (if using an Intel chipset)

OPTIONAL - Load these modules at boot

  1. sudo vim /etc/modules-load.d/i2c-dev.conf
  2. Add the line i2c-dev
  3. sudo vim /etc/modules-load.d/i2c-piix4.conf (for AMD) sudo vim /etc/modules-load.d/i2c-i801 (for Intel)
  4. Add the line i2c-piix4 (for AMD) OR i2c-i801 (for Intel)
This issue has occured as the modules nessecary to detect your RGB have not been loaded.
OBS & VLC OBS: Segmentation fault (core dumped)
VLC: Crashes when playing media
Issue the following commands in your terminal
  1. sudo mhwd -i pci video-linux
  2. sudo mhwd -r pci video-nvidia
  3. sudo reboot*
  4. sudo mhwd -i pci video-nvidia
  5. sudo mhwd -r pci video-linux
  6. sudo reboot
*After rebooting you might find that you are stuck in a loading screen, to fix this press Ctrl+Alt+F2 to open a new TTY and then login with your regular username and password before running the commands below.
This issue is caused by Nvidia pushing a broken proprietary driver update. To fix this we have to uninstall the offending driver, switch to the open-source version then reinstall the proprietary driver.
nix (Installed from Official Arch Repo) error: attribute 'nixpkgs' in selection path 'nixpkgs.git' not found sudo systemctl enable nix-daemon.service
sudo systemctl start nix-daemon.service
The nix daemon was probably not running