trying to automatically restart wifi https://askubuntu.com/questions/1565613/trying-to-automatically-restart-wifi

Ubuntu 24.04.4 LTS

To preface, I didn't have this issue with Ubuntu 22...Trying to automatically restart wifi for my jellyfin server. I can't remotely connect to jellyfin at all times, because at some point my wifi is possibly going to sleep (everything appears connected, can reach all websites, jellyfin works locally). So I initially disabled wifi power saving. Didn't stop the issue. Then I tried an auto script via cron, it runs every 10 minutes to check if there is a connection and if there isn't it restarts the network. Problem is everything appears connected, in fact is connected. So it doesn't go through restarting the network. Does anyone have a possible solution? Perhaps a way to restart the network every 4 hours regardless of a current connection.

Some programs are flickering on the eGPU, but not on the internal screen https://askubuntu.com/questions/1565612/some-programs-are-flickering-on-the-egpu-but-not-on-the-internal-screen

I am considering switching from Windows 11 to Ubuntu. To fully test Ubuntu (24.04 LTS) before switching, I am using a second SSD on my Laptop. But the problems already start at the beginning: my eGPU is not working properly on Ubuntu. I have an unusual GPU setup:

  • Intel GPU from the processor
  • Nvidia MX250 iGPU inside my Laptop
  • Nvidia RTX3060 eGPU connected using Thunderbolt 3 (TB3)

I disabled the iGPU and the Screen connected to the eGPU works now after doing the following:

  • Updated all general drivers:
    sudo apt update
    sudo apt install linux-headers-$(uname -r)
    sudo ubuntu-drivers install

  • eGPU setup:

    • Disabled automatic loading of Nvidia graphics drivers at boot by creating /etc/modprobe.d/blacklist-nvidia-mx250.conf with:
      blacklist nvidia
      blacklist nvidia_drm
      blacklist nvidia_modeset
      blacklist nouveau
    • Enforced explicit sync by editing /etc/environment and adding:
      XWAYLAND_NO_GLAMOR=0
      __GL_GSYNC_ALLOWED=0
      __GL_VRR_ALLOWED=0
      KWIN_DRM_NO_AMS=1
    • Installed the script from: https://github.com/ewagner12/all-ways-egpu
    • Launched All-Ways-eGPU, ran Guided Setup (1), selected the eGPU as the primary GPU, then selected the iGPU (Intel + MX250), confirming all suggested methods with y.
    • Enabled automatic GPU switching:
      sudo prime-select nvidia
    • After any driver changes and reboot, always ran:
      sudo flatpak update
      (otherwise some apps won’t launch)

Currently an annoying issue remains: some programs/apps like OnlyOffice (Flatpak) or PDF-XChange Editor running on Bottles/Wine are flickering. When the window is still nothing happens but when switching between tabs or scrolling the window kind of switches fast between the tabs or scroll positions and stops when clicking. I read it may be some issue with XWAYLAND. I definitely want to use WAYLAND because I want to update to Ubuntu 26 soon. A short video can be seen here (only 2 days valid sadly): https://streamable.com/adtks7 When I move the window to the laptop screen everything works fine!

How do I solve this problem? Did I miss something? I would be lad for any help!

Intel NUC5 system keeps freezing https://askubuntu.com/questions/1565611/intel-nuc5-system-keeps-freezing

I just did a clean install with Ubuntu on an old Intel NUC5. Everything seems to have gone well except the system keeps freezing and I have to manual restart it. It will work for a while, and then freeze again. My NUC has 8GB of memory, and a 256GB SSD. Do you have any suggestions as to where to look to solve the issue?

Newest update for libcjson1 not available on Ubuntu APT Repos - Ubuntu 22.04 Free Pro Activated https://askubuntu.com/questions/1565608/newest-update-for-libcjson1-not-available-on-ubuntu-apt-repos-ubuntu-22-04-fre

When trying to harden my home server i came across a libcjson vulnerability where my current version is - 1.7.15-1ubuntu0.1+esm1 but the suggested version shows - 1.7.15-1ubuntu0.1~esm2.

However even after enabling global repos & multiple APT updates & cache clearings. apt-cache policy libcjson1 shows the candidate version as 1.7.15-1ubuntu0.1+esm1

The Ubuntu security page also defines the latest package that was released to Ubuntu 22.04 (link below)

https://ubuntu.com/security/CVE-2024-31755

Automatically restart docker daemon if there are no running containers https://askubuntu.com/questions/1565604/automatically-restart-docker-daemon-if-there-are-no-running-containers

My installation pauses when a manual APT update and install (sudo apt full-upgrade) includes a new version of docker.io on one of my systems .. this requires me to type yes to restart the daemon, despite there being no running containers to impact

This is accompanied by a reasonable message, which rationalizes offering to restart the daemon

If Docker is upgraded without restarting the Docker daemon, Docker will often have trouble starting new containers, and in some cases even maintaining the containers it is currently running. See https://launchpad.net/bugs/1658691 for an example of this breakage.

Normally, upgrading the package would simply restart the associated daemon(s). In the case of the Docker daemon, that would also imply stopping all running containers (which will only be restarted if they're part of a "service", have an appropriate restart policy configured, or have some other means of being restarted such as an external systemd unit).

Automatically restart Docker daemon? [yes/no]

I've found some suggestions to blanket enable noninteractive mode (which never asks questions, always choosing the default, yes), but that's not granular enough for me and will restart the daemon even when containers are (still) running

What is the most practical way to always and automatically restart the daemon on a new version install (or other apt interactions?) if there are no running containers? I do want to be asked and the restart waited on, but only when there are running containers .. though as a stretch goal, ensuring there are also no building containers would be an advantage!

I imagine a script can be added somewhere (apt, debconf?) to provide or override the default behavior like this

#!/bin/sh
# docker ps
#   only output container IDs
# grep
#   don't output matches, returncode is 0 for matched, 1 for unmatched
#   trailing dot matches any container ID(s)
docker ps --quiet | grep --quiet .

If there's no sensible and "official" way of doing this, I feel like I should add a script into my updating workflow to add the wait myself, then debconf away this specific question, but I'm not certain

My system specifically is running 24.04.4 server (noble LTS) with desktop-minimal installed on a physical workstation which I'm using it for development, though I also suspect both the issue is more general and many users choose noninteractive


complete, relevant output during apt use, above is embedded in a quote to ensure readable wrapping

Setting up docker.io (29.1.3-0ubuntu3~24.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 79.)
debconf: falling back to frontend: Readline
Configuring docker.io
---------------------

If Docker is upgraded without restarting the Docker daemon, Docker will often have trouble starting new containers, and in some cases even maintaining the containers it is currently running. See https://launchpad.net/bugs/1658691 for an example of this breakage.

Normally, upgrading the package would simply restart the associated daemon(s). In the case of the Docker daemon, that would also imply stopping all running containers (which will only be restarted if they're part of a "service", have an appropriate restart policy configured, or have some other means of being restarted such as an external systemd unit).

Automatically restart Docker daemon? [yes/no] 

Automatically restart Docker daemon? [yes/no] yes

note that yes is not the default and something needs to be typed, mildly increasing frustration

Unable to open Cronopete https://askubuntu.com/questions/1565603/unable-to-open-cronopete

I have updated to Ubuntu 22.04 on my laptop. Previously I have used Cronopete for my backups. I have installed Cronopete in Ubuntu 22.04.

Cronopete does not open when I click on the icon in "Show Applications"

If I try to run Cronopete from the terminal I get the following error message:

$ tony@TONYZ-UBUNTU:\~$ cronopete
cronopete: symbol lookup error: cronopete: undefined symbol: g_once_init_enter_pointer
Error when trying to reinstall Ubuntu https://askubuntu.com/questions/1565602/error-when-trying-to-reinstall-ubuntu

I have had Ubuntu running on this system for a year. I tried Truenas, but I decided to go back to Ubuntu. When trying to install it gives an error, and does not complete installation. Nothing else has changed in the system. I'm using 24.04.04 desktop.

This is what it shows on the log when it errors out.

                                              Something went wrong

Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:       
                                                              builtin_curthooks(cfg, target, state)
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:           File "/snap/ubuntu-desktop-bootstrap/502/lib/
python3.10/site-packages/curtin/commands/curthooks.py", line 2179, in builtin_curthooks
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:             update_initramfs(target, all_kernels=True)
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:           File "/snap/ubuntu-desktop-bootstrap/502/lib/
python3.10/site-packages/curtin/commands/curthooks.py", line 908, in update_initramfs
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:             in_chroot.subp(cmd)
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:           File "/snap/ubuntu-desktop-bootstrap/502/lib/
python3.10/site-packages/curtin/util.py", line 851, in subp
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:             return subp(*args, **kwargs)
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:           File "/snap/ubuntu-desktop-bootstrap/502/lib/
python3.10/site-packages/curtin/util.py", line 331, in subp
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:             return _subp(*args, **kwargs)
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:           File "/snap/ubuntu-desktop-bootstrap/502/lib/
python3.10/site-packages/curtin/util.py", line 175, in _subp
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:             raise ProcessExecutionError(stdout=out,
stderr=err,
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]: curtin.util.ProcessExecutionError: Unexpected error
while running command.
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]: Command: ['unshare', '--fork', '--pid', '--mount-
proc=/target/proc', '--', 'chroot', '/target', 'update-initramfs', '-c', '-k', '6.17.0-20-generic']
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Exit code: 1
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Reason: -
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Stdout: ''
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Stderr: ''
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Unexpected error while running command.
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]: Command: ['unshare', '--fork', '--pid', '--mount-
proc=/target/proc', '--', 'chroot', '/target', 'update-initramfs', '-c', '-k', '6.17.0-20-generic']
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Exit code: 1
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Reason: -
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Stdout: ''
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Stderr: ''
Apr 09 15:04:42 ubuntu subiquity_log.6881[10641]:         Stderr: ''
Apr 09 15:04:42 ubuntu subiquity_event.6881[6881]:  curtin command install
Why do I suddenly get "A privileged instruction was executed at address 004dd5b4" Wine error? https://askubuntu.com/questions/1565600/why-do-i-suddenly-get-a-privileged-instruction-was-executed-at-address-004dd5b4

I played the old original Command and Conquer game, There was an update and suddenly it would no longer start.

It stops with:

A privileged instruction was executed at address 004dd5b4    
Click on OK to terminate the application.

Kubuntu 22.04 LTS (Yes, I know we have to upgrade). And yes, I know OpenRA exists.

The error first appeared in Lutris, so I tried reinstall, new wine prefix, complete reinstall of game, try different wine versions in Lutris. Nothing worked. Then I moved over to PlayOnLinux, installed there and I had the same issue.

At first I thought it was a Lutris issue, but it seem this is system-wide. I am unsure what update would cause this, but it seems as if something is blocking Wine. The game worked just fine, then one day this error message appeared and it no longer worked.

System: Ryzen 7 2700, 16 GB RAM, Nvidia GTX 1650 4 GB; kernel 5.15.0-174-generic x86_64

Lutris log - original error:

Started initial process 30014 from taskset -c 0-0 /home/user/.local/share/lutris/runners/wine/wine-staging-11.2-x86_64/bin/wine /media/user/biggames1/CnC/drive_c/WESTWOOD/CNC95/C&C95.EXE DXVK_FRAME_RATE 60  
Start monitoring process.  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
libEGL warning: egl: failed to create dri2 screen  
Monitored process exited.  
Initial process has exited (return code: 256)  
Exit with return code 256"  
\-Lutris log    
  
new prefix in Lutris and fresh install:  
Started initial process 52570 from /home/user/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /media/user/biggames1/cncz/drive_c/WESTWOOD/CNC95/C&C95.EXE  
Start monitoring process.  
esync: up and running.  
wine: RLIMIT_NICE is \<= 20, unable to use setpriority safely  
Monitored process exited.  
Initial process has exited (return code: 38400)  
Exit with return code 38400
Why does /var/lib/apt/lists get so big? [closed] https://askubuntu.com/questions/1565598/why-does-var-lib-apt-lists-get-so-big

The question is the title. Note, I am NOT asking why it is big in my particular case, nor am I asking a previously asked question. If files /var/lib/apt/lists is supposed to store lists of the packages in repos, then it should NOT be hundreds of megabytes in size.

New 25.10 install on ASUS Zenbook UX3407R install, 4 major issues https://askubuntu.com/questions/1565597/new-25-10-install-on-asus-zenbook-ux3407r-install-4-major-issues

How can I install the correct driver for Snapdragon Elite X? I'm unable to install anything from Qualcomm. This causes further problems:

  • The battery was not found, upower -e (no bat0,1,etc.) Main issue is there is no indication of battery level. Can I resolve this out of the UEFI?
  • While I can get a network connection via ethernet, I cannot get my wireless working or even seen in settings or terminal.
  • When in the App Center the screen starts flickering. I have set the value to 60 Hz now but there are still instances occurring mainly in the app center.

I have searched through other people's solutions, but couldn't get anything to work besides updating and upgrading via sudo apt. This is beating me down; I was going to Ubuntu 24.04 LTS on because I have lost patience, but that wouldn't boot.

How to make a Bluetooth game controller show up under /dev/input/js* in addition to /dev/input/event*? https://askubuntu.com/questions/1565596/how-to-make-a-bluetooth-game-controller-show-up-under-dev-input-js-in-addition

I'm using Ubuntu Cinnamon 24.04, and have a Bluetooth gamepad (a Gioteck WX5 that emulates a Nintendo Switch 2 Pro Controller). I can pair it with my laptop, and when I do, it shows up as a pair of devices in /dev/input (specifically, "Pro Controller" in /dev/input/event18, which responds to button presses and thumbstick movements, and "Pro Controller (IMU)" in /dev/input/event19, which I think (but am not totally sure) is the accelerometer / motion controls).

I can confirm that the gamepad is working by using evtest, which displays the button presses. I have added myself to the input group in /etc/group, giving myself permissions to read from /dev/input directly.

However, the gamepad doesn't show up under /dev/input/js*, which means that some programs (such as jstest-gtk) aren't able to see it. I'm particularly interested in using the gamepad from a browser such as Firefox or Chromium, but they don't appear to see the gamepad either, and I think that the fact that it doesn't show up under /dev/input/js* is the most likely cause. (To rule out possibilities, I also tried a wired Xbox 360 game controller, and this does show up as /dev/input/js0 and does work correctly in at least Chromium.)

I tried checking for existing questions but none seemed to have similar enough circumstances: in most of them, the controller was appearing in /dev/input/js* and the problem was elsewhere. This question is the closest, but the journalctl entries I'm seeing are substantially different from the ones seen in that case:

kernel: nintendo 0005:057E:2009.0005: hidraw2: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on [REDACTED]
kernel: nintendo 0005:057E:2009.0005: controller MAC = [REDACTED]
kernel: nintendo 0005:057E:2009.0005: using user cal for left stick
kernel: nintendo 0005:057E:2009.0005: using user cal for right stick
[...]
kernel: nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
kernel: nintendo 0005:057E:2009.0005: Failed to read left stick cal, using defaults; e=-110
kernel: nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
kernel: nintendo 0005:057E:2009.0005: Failed to read right stick cal, using defaults; e=-110
kernel: nintendo 0005:057E:2009.0005: using factory cal for IMU
kernel: nintendo 0005:057E:2009.0005: assigned player 1 led pattern
kernel: input: Pro Controller as /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:3/0005:057E:2009.0005/input/input31
kernel: input: Pro Controller (IMU) as /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:3/0005:057E:2009.0005/input/input32
systemd[1]: Starting iio-sensor-proxy.service - IIO Sensor Proxy service...
systemd[1]: Started iio-sensor-proxy.service - IIO Sensor Proxy service.
systemd[1]: iio-sensor-proxy.service: Deactivated successfully.

I also don't want to blacklist the Nintendo driver because part of the reason I bought this controller is that I was interested in making use of the motion/accelerometer inputs (given that I already have a different controller for which the button/joystick inputs work).

Is there a way to configure the Bluetooth gamepad to show up under /dev/input/js* in addition to /dev/input/event*, and/or to allow Chromium to see it directly from /dev/input/event*?

Information requested in the comments

One of the comments asked for information from the udevadm command; here it is (with MAC addresses redacted):

$ udevadm info --no-pager /sys/class/input/input35
P: /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:1/0005:057E:2009.0007/input/input35
M: input35
R: 35
U: input
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:1/0005:057E:2009.0007/input/input35
E: SUBSYSTEM=input
E: PRODUCT=5/57e/2009/8001
E: NAME="Pro Controller"
E: PHYS="[REDACTED]"
E: UNIQ="[REDACTED]"
E: PROP=0
E: EV=20000b
E: KEY=7ffb000000000000 0 0 0 0
E: ABS=3001b
E: FF=107030000 0
E: MODALIAS=input:b0005v057Ep2009e8001-e0,1,3,15,k130,131,133,134,135,136,137,138,139,13A,13B,13C,13D,13E,ra0,1,3,4,10,11,mlsf50,51,58,59,5A,60,w
E: USEC_INITIALIZED=34383723107
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_BUS=bluetooth
E: ID_PATH_WITH_USB_REVISION=pci-0000:00:14.0-usbv2-0:8:1.0
E: ID_PATH=pci-0000:00:14.0-usb-0:8:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_8_1_0
E: ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_8_1_0
E: TAGS=:seat:
E: CURRENT_TAGS=:seat:

$ udevadm info --no-pager /sys/class/input/input36
P: /devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:1/0005:057E:2009.0007/input/input36
M: input36
R: 36
U: input
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/bluetooth/hci0/hci0:1/0005:057E:2009.0007/input/input36
E: SUBSYSTEM=input
E: PRODUCT=5/57e/2009/8001
E: NAME="Pro Controller (IMU)"
E: PHYS="[REDACTED]"
E: UNIQ="[REDACTED]"
E: PROP=40
E: EV=19
E: ABS=3f
E: MSC=20
E: MODALIAS=input:b0005v057Ep2009e8001-e0,3,4,kra0,1,2,3,4,5,m5,lsfw
E: USEC_INITIALIZED=34383723420
E: ID_INPUT=1
E: ID_INPUT_ACCELEROMETER=1
E: ID_BUS=bluetooth
E: ID_PATH_WITH_USB_REVISION=pci-0000:00:14.0-usbv2-0:8:1.0
E: ID_PATH=pci-0000:00:14.0-usb-0:8:1.0
E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_8_1_0
E: ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_8_1_0
E: IIO_SENSOR_PROXY_TYPE=input-accel
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:seat:
E: CURRENT_TAGS=:systemd:seat:

joydev appears in the output of lsmod (showing a size of 32768 and no users, regardless of whether or not I connect the gamepad). The kernel version is 6.17.0-20-generic #20~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC.

No wired or wireless connection in Ubuntu 24.04.4 LTS https://askubuntu.com/questions/1565576/no-wired-or-wireless-connection-in-ubuntu-24-04-4-lts

One day recently my Wifi stopped working. If I go to Settings > Network, I see the VPN and Proxy settings but nothing else. No networks are listed.

I tried a hard reset -- powering down, removing the battery, holding down the power button for 30 seconds. That didn't help.

root@xps:/home/myself# lshw -C network
  *-network UNCLAIMED       
       description: Network controller
       product: Comet Lake PCH CNVi WiFi
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix cap_list
       configuration: latency=0
       resources: iomemory:600-5ff memory:604b11c000-604b11ffff
root@xps:/home/myself# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever                                                                     

It appears I may need iwlwifi. If I run dmesg | grep iwl there is no output. The internet says I can get iwlwifi by manually installing linux-firmware. Presumably this was installed when the wifi connection was working, but has disappeared. I downloaded the .tar.gz from https://gitlab.com/kernel-firmware/linux-firmware and copied the contents of linux-firmware to /lib/firmware. After running sudo update-initramfs -u and rebooting, I still don't see any networks at Settings > Network.

I have also tried establishing a wired connection, but connecting to the router (using an ethernet-to-usb-c adapter) does not result in any networks being listed at Settings > Network.

The computer is a Dell XPS 9500.

--

Update: The issue (or at least the symptoms) were resolved by booting into an older kernel. Subsequently there was a recommendation that I post the output from sudo dpkg --configure -a. To be clear, this is the output from dpkg when I boot into the older kernel:

Setting up linux-modules-nvidia-580-6.17.0-20-generic (6.17.0-20.20~24.04.1) ...
linux-image-nvidia-6.17.0-20-generic: constructing .ko files
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20-generic/scripts/module.lds: No such file or directory
sha256sum: nvidia-drm.ko: No such file or directory
nvidia-drm.ko: FAILED open or read
sha256sum: nvidia-modeset.ko: No such file or directory
nvidia-modeset.ko: FAILED open or read
sha256sum: nvidia-peermem.ko: No such file or directory
nvidia-peermem.ko: FAILED open or read
sha256sum: nvidia-uvm.ko: No such file or directory
nvidia-uvm.ko: FAILED open or read
sha256sum: nvidia.ko: No such file or directory
nvidia.ko: FAILED open or read
sha256sum: WARNING: 5 listed files could not be read
dpkg: error processing package linux-modules-nvidia-580-6.17.0-20-generic (--configure):
 installed linux-modules-nvidia-580-6.17.0-20-generic package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-modules-nvidia-580-generic-hwe-24.04:
 linux-modules-nvidia-580-generic-hwe-24.04 depends on linux-modules-nvidia-580-6.17.0-20-generic (= 6.17.0-20.20~24.04.1); however:
  Package linux-modules-nvidia-580-6.17.0-20-generic is not configured yet.

dpkg: error processing package linux-modules-nvidia-580-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-modules-nvidia-550-generic-hwe-24.04:
 linux-modules-nvidia-550-generic-hwe-24.04 depends on linux-modules-nvidia-580-generic-hwe-24.04; however:
  Package linux-modules-nvidia-580-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-modules-nvidia-550-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-modules-nvidia-580-6.17.0-20-generic
 linux-modules-nvidia-580-generic-hwe-24.04
 linux-modules-nvidia-550-generic-hwe-24.04

Here is the output from sudo apt install --reinstall linux-modules-extra-6.17.0-20-generic:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-6.17.0-14-generic linux-hwe-6.17-headers-6.17.0-14
  linux-hwe-6.17-tools-6.17.0-14 linux-image-6.17.0-14-generic
  linux-modules-6.17.0-14-generic linux-modules-nvidia-580-6.17.0-14-generic
  linux-objects-nvidia-580-6.17.0-14-generic
  linux-signatures-nvidia-6.17.0-14-generic linux-tools-6.17.0-14-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 59 not upgraded.
3 not fully installed or removed.
Need to get 0 B/122 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 244865 files and directories currently installed.)
Preparing to unpack .../linux-modules-extra-6.17.0-20-generic_6.17.0-20.20~24.04
.1_amd64.deb ...
Unpacking linux-modules-extra-6.17.0-20-generic (6.17.0-20.20~24.04.1) over (6.1
7.0-20.20~24.04.1) ...
Setting up linux-modules-nvidia-580-6.17.0-20-generic (6.17.0-20.20~24.04.1) ...
linux-image-nvidia-6.17.0-20-generic: constructing .ko files
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20
-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20
-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20
-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20
-generic/scripts/module.lds: No such file or directory
/usr/bin/ld.bfd: cannot open linker script file /usr/src/linux-headers-6.17.0-20
-generic/scripts/module.lds: No such file or directory
sha256sum: nvidia-drm.ko: No such file or directory
nvidia-drm.ko: FAILED open or read
sha256sum: nvidia-modeset.ko: No such file or directory
nvidia-modeset.ko: FAILED open or read
sha256sum: nvidia-peermem.ko: No such file or directory
nvidia-peermem.ko: FAILED open or read
sha256sum: nvidia-uvm.ko: No such file or directory
nvidia-uvm.ko: FAILED open or read
sha256sum: nvidia.ko: No such file or directory
nvidia.ko: FAILED open or read
sha256sum: WARNING: 5 listed files could not be read
dpkg: error processing package linux-modules-nvidia-580-6.17.0-20-generic (--con
figure):
 installed linux-modules-nvidia-580-6.17.0-20-generic package post-installation 
script subprocess returned error exit status 1
Setting up linux-modules-extra-6.17.0-20-generic (6.17.0-20.20~24.04.1) ...
dpkg: dependency problems prevent configuration of linux-modules-nvidia-580-gene
ric-hwe-24.04:
 linux-modules-nvidia-580-generic-hwe-24.04 depends on linux-modules-nvidia-580-
6.17.0-20-generic (= 6.17.0-20.20~24.04.1); however:
  Package linux-modules-nvidia-580-6.17.0-20-generic is not configured yet.

dpkg: error processing package linux-modules-nvidia-580-generic-hwe-24.04 (--con
figure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-modules-nvidia-550-gene
ric-hwe-24.04:
 linux-modules-nvidia-550-generic-hwe-24.04 depends on linux-modules-nvidia-580-
generic-hwe-24.04; however:
  Package linux-modules-nvidia-580-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-modules-nvidia-550-generic-hwe-24.04 (--con
figure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          No apport report written because the error message ind
icates its a followup error from a previous failure.
                                                    Processing triggers for linu
x-image-6.17.0-20-generic (6.17.0-20.20~24.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: autoinstall for kernel 6.17.0-20-generic was skipped since the kernel h
eaders for this kernel do not seem to be installed
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.17.0-20-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.17.0-20-generic
Found initrd image: /boot/initrd.img-6.17.0-20-generic
Found linux image: /boot/vmlinuz-6.17.0-19-generic
Found initrd image: /boot/initrd.img-6.17.0-19-generic
Found linux image: /boot/vmlinuz-6.17.0-14-generic
Found initrd image: /boot/initrd.img-6.17.0-14-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Errors were encountered while processing:
 linux-modules-nvidia-580-6.17.0-20-generic
 linux-modules-nvidia-580-generic-hwe-24.04
 linux-modules-nvidia-550-generic-hwe-24.04
E: Sub-process /usr/bin/dpkg returned an error code (1)
Fix modprobe: ERROR: could not insert 'module_name', separate vermagic SMP and flags between modinfo on module and current linux kernel version https://askubuntu.com/questions/1565426/fix-modprobe-error-could-not-insert-module-name-separate-vermagic-smp-and-f

I am trying to run modprobe on a kernel module, specifically 'nft_fib' and 'nft_fib_ipv4'. When I try to run the 'sudo modprobe nft_fib' command, I receive:

 modprobe: ERROR: could not insert 'nft_fib': Exec format error    

I recently upgraded from Ubuntu 24.04 LTS to 25.10, upon examination:

Results of me@compuper:\~$ find /lib/modules/$(uname -r) -type f -name 'nft_fib\*

/lib/modules/6.17.0-20-generic/kernel/net/netfilter/nft_fib.ko.zst
/lib/modules/6.17.0-20-generic/kernel/net/netfilter/nft_fib_netdev.ko.zst
/lib/modules/6.17.0-20-generic/kernel/net/netfilter/nft_fib_inet.ko.zst
/lib/modules/6.17.0-20-generic/kernel/net/ipv6/netfilter/nft_fib_ipv6.ko.zst
/lib/modules/6.17.0-20-generic/kernel/net/ipv4/netfilter/nft_fib_ipv4.ko.zst  

Results of `me@compuper:\~$ modinfo /lib/modules/6.17.0-20-generic/kernel/net/netfilter/nft_fib.ko.zst | grep vermagic` :
vermagic:       6.17.0-20-generic SMP preempt mod_unload modversions 

... vs. ...

Results of me@compuper:\~$ uname -r:

6.17.0-20-generic

I discovered I have different kernel version between my system's kernel and the vermagic kernel version on the module. I think these different flags are what are giving my error while trying to run modprobe on my kernel module. If anyone thinks otherwise, please let me know.

I want to have the vermagic version exactly match the kernel I get on my machine by typing uname -r. I have tried: sudo apt-get reinstall linux-headers-$(uname -r) and the vermagic versions on the modules did not change.

Afterwards, I tried moving the modules to another directory so their path could be broken, I thought then the correct modules would be installed if I tried re-installing again. Subsequent apt installs and apt reinstalls do not install these kernel module headers.

How can I make these kernel module header files exactly match the kernel version of my machine? (what I get from typing uname -r)?

~ EDIT

~ here is the output of dpkg-query --no-page -l linux-* : (notes, the nft-tables modules I mentioned earlier are still in another directory when I ran this command, but their location didn't seem relevant to the command so I didn't bother putting them back in place.) ~

me@compuper:~$ dpkg-query --no-pager -l linux-\* 
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                   Version                         Architecture Description
+++-======================================-===============================-============-===============================================================
ii  linux-base                             4.14ubuntu2                     all          Linux image base package
un  linux-cpupower                         <none>                          <none>       (no description available)
ii  linux-firmware                         20250901.git993ff19b-0ubuntu1.9 all          Firmware for Linux kernel drivers
un  linux-firmware-raspi2                  <none>                          <none>       (no description available)
un  linux-firmware-snapdragon              <none>                          <none>       (no description available)
ii  linux-generic                          6.17.0-20.20                    amd64        Complete Generic Linux kernel and headers
ii  linux-generic-hwe-24.04                6.17.0-20.20                    amd64        Complete Generic Linux kernel and headers
un  linux-headers                          <none>                          <none>       (no description available)
un  linux-headers-3.0                      <none>                          <none>       (no description available)
un  linux-headers-6.11.0-17-generic        <none>                          <none>       (no description available)
un  linux-headers-6.11.0-29-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-24-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-27-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-28-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-29-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-32-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-33-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-34-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-35-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-36-generic        <none>                          <none>       (no description available)
un  linux-headers-6.14.0-37-generic        <none>                          <none>       (no description available)
un  linux-headers-6.17.0-14-generic        <none>                          <none>       (no description available)
ii  linux-headers-6.17.0-19                6.17.0-19.19                    all          Header files related to Linux kernel version 6.17.0
ii  linux-headers-6.17.0-19-generic        6.17.0-19.19                    amd64        Linux kernel headers for version 6.17.0
ii  linux-headers-6.17.0-20                6.17.0-20.20                    all          Header files related to Linux kernel version 6.17.0
ii  linux-headers-6.17.0-20-generic        6.17.0-20.20                    amd64        Linux kernel headers for version 6.17.0
ii  linux-headers-generic                  6.17.0-20.20                    amd64        Generic Linux kernel headers
ii  linux-headers-generic-hwe-24.04        6.17.0-20.20                    amd64        Generic Linux kernel headers
un  linux-hwe-6.11-tools                   <none>                          <none>       (no description available)
un  linux-hwe-6.14-tools                   <none>                          <none>       (no description available)
un  linux-hwe-6.17-tools                   <none>                          <none>       (no description available)
un  linux-image                            <none>                          <none>       (no description available)
rc  linux-image-6.11.0-17-generic          6.11.0-17.17~24.04.2            amd64        Signed kernel image generic
rc  linux-image-6.11.0-29-generic          6.11.0-29.29~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-24-generic          6.14.0-24.24~24.04.3            amd64        Signed kernel image generic
rc  linux-image-6.14.0-27-generic          6.14.0-27.27~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-28-generic          6.14.0-28.28~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-29-generic          6.14.0-29.29~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-32-generic          6.14.0-32.32~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-33-generic          6.14.0-33.33~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-34-generic          6.14.0-34.34~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-35-generic          6.14.0-35.35~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-36-generic          6.14.0-36.36~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.14.0-37-generic          6.14.0-37.37~24.04.1            amd64        Signed kernel image generic
rc  linux-image-6.17.0-14-generic          6.17.0-14.14~24.04.1            amd64        Signed kernel image generic
ii  linux-image-6.17.0-19-generic          6.17.0-19.19                    amd64        Signed kernel image generic
ii  linux-image-6.17.0-20-generic          6.17.0-20.20                    amd64        Signed kernel image generic
un  linux-image-fb-generic                 <none>                          <none>       (no description available)
un  linux-image-fb-generic-hwe-24.04       <none>                          <none>       (no description available)
ii  linux-image-generic                    6.17.0-20.20                    amd64        Generic Linux kernel image
ii  linux-image-generic-hwe-24.04          6.17.0-20.20                    amd64        Generic Linux kernel image
un  linux-image-unsigned-6.11.0-17-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.11.0-29-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-24-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-27-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-28-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-29-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-32-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-33-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-34-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-35-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-36-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.14.0-37-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.17.0-14-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.17.0-19-generic <none>                          <none>       (no description available)
un  linux-image-unsigned-6.17.0-20-generic <none>                          <none>       (no description available)
un  linux-initramfs-tool                   <none>                          <none>       (no description available)
un  linux-kernel-headers                   <none>                          <none>       (no description available)
un  linux-kernel-log-daemon                <none>                          <none>       (no description available)
ii  linux-libc-dev:amd64                   6.17.0-20.20                    amd64        Linux Kernel Headers for development
rc  linux-modules-6.11.0-17-generic        6.11.0-17.17~24.04.2            amd64        Linux kernel extra modules for version 6.11.0 on 64 bit x86 SMP
rc  linux-modules-6.11.0-29-generic        6.11.0-29.29~24.04.1            amd64        Linux kernel extra modules for version 6.11.0 on 64 bit x86 SMP
rc  linux-modules-6.14.0-24-generic        6.14.0-24.24~24.04.3            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-27-generic        6.14.0-27.27~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-28-generic        6.14.0-28.28~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-29-generic        6.14.0-29.29~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-32-generic        6.14.0-32.32~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-33-generic        6.14.0-33.33~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-34-generic        6.14.0-34.34~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-35-generic        6.14.0-35.35~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-36-generic        6.14.0-36.36~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.14.0-37-generic        6.14.0-37.37~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-6.17.0-14-generic        6.17.0-14.14~24.04.1            amd64        Linux kernel extra modules for version 6.17.0
ii  linux-modules-6.17.0-19-generic        6.17.0-19.19                    amd64        Linux kernel modules for version 6.17.0
ii  linux-modules-6.17.0-20-generic        6.17.0-20.20                    amd64        Linux kernel modules for version 6.17.0
rc  linux-modules-extra-6.11.0-17-generic  6.11.0-17.17~24.04.2            amd64        Linux kernel extra modules for version 6.11.0 on 64 bit x86 SMP
rc  linux-modules-extra-6.11.0-29-generic  6.11.0-29.29~24.04.1            amd64        Linux kernel extra modules for version 6.11.0 on 64 bit x86 SMP
rc  linux-modules-extra-6.14.0-24-generic  6.14.0-24.24~24.04.3            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-27-generic  6.14.0-27.27~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-28-generic  6.14.0-28.28~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-29-generic  6.14.0-29.29~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-32-generic  6.14.0-32.32~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-33-generic  6.14.0-33.33~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-34-generic  6.14.0-34.34~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-35-generic  6.14.0-35.35~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-36-generic  6.14.0-36.36~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.14.0-37-generic  6.14.0-37.37~24.04.1            amd64        Linux kernel extra modules for version 6.14.0
rc  linux-modules-extra-6.17.0-14-generic  6.17.0-14.14~24.04.1            amd64        Linux kernel extra modules for version 6.17.0
ii  linux-modules-extra-6.17.0-19-generic  6.17.0-19.19~24.04.2            amd64        Linux kernel extra modules for version 6.17.0
ii  linux-modules-extra-6.17.0-20-generic  6.17.0-20.20~24.04.1            amd64        Linux kernel extra modules for version 6.17.0
ii  linux-perf                             6.17.0-20.20                    amd64        Performance analysis tools for Linux
un  linux-restricted-common                <none>                          <none>       (no description available)
ii  linux-sound-base                       1.0.25+dfsg-0ubuntu8            all          base package for ALSA and OSS sound systems
ii  linux-sysctl-defaults                  4.14ubuntu2                     all          default sysctl configuration for Linux
un  linux-tools                            <none>                          <none>       (no description available)
ii  linux-tools-6.17.0-19                  6.17.0-19.19                    amd64        Linux kernel version specific tools for version 6.17.0-19
ii  linux-tools-6.17.0-19-generic          6.17.0-19.19                    amd64        Linux kernel version specific tools for version 6.17.0-19
ii  linux-tools-6.17.0-20                  6.17.0-20.20                    amd64        Linux kernel version specific tools for version 6.17.0-20
ii  linux-tools-6.17.0-20-generic          6.17.0-20.20                    amd64        Linux kernel version specific tools for version 6.17.0-20
ii  linux-tools-common                     6.17.0-20.20                    all          Linux kernel version specific tools for version 6.17.0

~ Additional Edit ~ Running modinfo ahci does show the vermagic with the same flags!

me@compupers:~$ modinfo ahci | grep vermagic vermagic: 6.17.0-20-generic SMP preempt mod_unload modversions

I moved the kernel modules back into their original place and ran "sudo modprobe -v nft_fib", the output I got is:

me@compuper:~$ sudo modprobe -v nft_fib insmod /lib/modules/6.17.0-20-generic/kernel/net/netfilter/nft_fib.ko.zst modprobe: ERROR: could not insert 'nft_fib': Exec format error

~ EDIT ~

It seems like I have unknowingly still added an out of tree / incompatible kernel module. Is there a way to force reinstall kernell modules from the official apt if I know my kernel version and architecture?

I ran

me@compuper:~$ sudo apt-get reinstall linux-headers-generic ,

and it set up and unpacked the new headers,but running modprobe on nft_fib still returns the same error.

Ubuntu 24.04.4 LTS video issue https://askubuntu.com/questions/1565008/ubuntu-24-04-4-lts-video-issue

I'm a new user of Ubuntu (24.04.4 LTS)

I have used Linux casually over the last 30 years. With Windows becoming everything that I abhor, I decided to turn my Plex Media Server into a Ubuntu based machine.

I have installed everything but there are some quirky issues I'm not sure how to resolve, the most nagging is a video issue:

When I right-click to open a context menu the resulting menu or context window flickers and distorts.

This happens whether using the local keyboard and display OR when I remote desktop into the machine.

It's a frustrating issue; I often cannot see the menu or the resulting window. This is a real problem for me.

I suspect that this might have something to do with the video/graphics driver. I know I have an Nvidia Quadro adapter. I've looked for help online about how to install a better driver but I'm deeply concerned I'm going to do something wrong.

Is there FAQ on how to properly install a better driver for my video adapter?

Thanks in advance.

Rob

Update:

I ran sudo lshw -C display

it returned:

*-display
description: VGA compatible controller product: G96CGL [Quadro FX 580] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:28:00.0 logical name: /dev/fb0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom fb configuration: depth=32 driver=nouveau latency=0 mode=3440x1440 resolution=3440,1440 visual=truecolor xres=3440 yres=1440 resources: irq:31 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f4000000-f5ffffff ioport:e000(size=128) memory:c0000-dffff

As I said I'm seeing lots of video artifacts and distortions that I believe are symptoms of a driver that's not adequate to my video adapter...

Can any one assist me choosing a proper driver compatible with ubuntu 24?

What settings for TigerVNC on Ubuntu 24.04 running Cinnamon? https://askubuntu.com/questions/1550887/what-settings-for-tigervnc-on-ubuntu-24-04-running-cinnamon

I am running Ubuntu 24.04 and the Cinnamon Desktop.

I want to install TiverVNC, and ran the sudo apt install tigervnc... CLI part.

I ran TigerVNC and it asked me for a password, (this seemed to go OK) and I read to make a xstartup file in my home .vnc directory.

There is no xstartup file in that directory, so I assume I must create one from scratch?

I get instructions for Gnome, and XFCE, but can't seem to find what to enter tor Cinnamon.

Any help would be appreciated,

Thanks, Mark.

nvidia "GPU has fallen off the bus" after upgrade to 25.04 https://askubuntu.com/questions/1546891/nvidia-gpu-has-fallen-off-the-bus-after-upgrade-to-25-04

After an upgrade from 24.10 to 25.04 this morning, my GPU (RTX 4070 mobile) has become extremely unreliable. It seems to depend a bit on how much it is doing, but with just the QHD laptop screen connected it can go several minutes before freezing, while with a 4K external screen connected it rarely lasts past the first user interaction.

The problem appears to be related to something trying to allocate enormous amounts of RAM:

2025-05-01T11:42:29.780885+01:00 VSYS-LT28 kernel: __vm_enough_memory: pid: 9603, comm: nvidia-smi, bytes: 51539607552 not enough memory for the allocation
2025-05-01T11:43:36.001898+01:00 VSYS-LT28 kernel: NVRM: GPU at PCI:0000:01:00: GPU-57164be6-eed0-8252-bb72-2e95a2e0dbd4
2025-05-01T11:43:36.001911+01:00 VSYS-LT28 kernel: NVRM: Xid (PCI:0000:01:00): 79, pid=4451, name=gnome-shell, GPU has fallen off the bus.
2025-05-01T11:43:36.001911+01:00 VSYS-LT28 kernel: NVRM: GPU 0000:01:00.0: GPU has fallen off the bus.
2025-05-01T11:43:36.001921+01:00 VSYS-LT28 kernel: NVRM: Xid (PCI:0000:01:00): 154, GPU recovery action changed from 0x0 (None) to 0x2 (Node Reboot Required)
2025-05-01T11:43:36.583002+01:00 VSYS-LT28 kernel: ------------[ cut here ]------------
2025-05-01T11:43:36.583010+01:00 VSYS-LT28 kernel: WARNING: CPU: 10 PID: 9109 at nvidia/nv.c:4946 nvidia_dev_put+0xb3/0xc0 [nvidia]
2025-05-01T11:43:36.583010+01:00 VSYS-LT28 kernel: Modules linked in: xt_nat veth vxlan ip6_udp_tunnel udp_tunnel xt_policy xt_mark xt_bpf nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype snd_seq_dummy snd_hrtimer ipt_REJECT nf_reject_ipv4 xt_conntrack xt_MASQUERADE nft_chain_nat xt_CHECKSUM xt_comment xt_tcpudp nft_compat iptable_raw iptable_mangle iptable_nat ipmi_devintf nf_nat ipmi_msghandler nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables ccm overlay qrtr rfcomm cmac algif_hash algif_skcipher af_alg bnep msr nvidia_uvm(POE) binfmt_misc nls_iso8859_1 nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel soundwire_cadence snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof iwlmvm snd_sof_utils snd_soc_acpi_intel_match snd_soc_acpi_intel_sdca_quirks snd_hda_codec_realtek soundwire_generic_allocation snd_soc_acpi soundwire_bus snd_hda_codec_generic snd_hda_scodec_component snd_soc_sdca

The thing only has 8GB of VRAM so trying to allocate about 50GB is never going to work. nvidia-smi reports that about 350MB is currently being used.

I found a number of references on the web to setting "persistent mode" using nvidia-smi -pm 1 but this fails:

$ sudo nvidia-smi -pm 1
Unable to set persistence mode for GPU 00000000:01:00.0: Unknown Error
Terminating early due to previous errors.
Suspension and hibernation on Ubuntu 24.04 - Dell Precision 5490 https://askubuntu.com/questions/1525525/suspension-and-hibernation-on-ubuntu-24-04-dell-precision-5490

I have a new Dell Precision 5490 Laptop that comes with Ubuntu 22.04, and I have installed the stock Ubuntu 24.04, but I have now problems I didn't "tested" with the shipped OS (I was too quick to move on Ubuntu 24.04), namely suspension and hibernation. The laptop is quite powerful, as it comes with Intel Core Ultra 7 165H, 64 Gb of RAM and NVIDIA RTX2000 GPU.

Suspension "works" but eats 10% of the battery in 1 h !!! So, pretty useless. Hibernation doesn't, even if I followed all the steps in this long tutorial:

  • I have updated the bios to the latest version and disables Secure Boot
  • as I had a swap file of "only" 8 GB vs a RAM of 32 GB I created a swap partition of 70GB and added to fstab (it works) - /dev/nvme0n1p5 / UUID e4e24763-b174-4057-9ebe-2aa34a423583
  • I have added the option resume=UUID=e4e24763-b174-4057-9ebe-2aa34a423583 to the GRUB_CMDLINE_LINUX_DEFAULT parameter in /etc/default/grub and I have run update-grub
  • I have created a file /etc/tmpfiles.d/hibernation_resume.conf with content :
#    Path                   Mode UID  GID  Age Argument
w    /sys/power/resume       -    -    -    -   259:5

(I have also tried adding w /sys/power/image_size - - - - 8036093952 but I don't know what does it means... of course I would like to be hibernated only the actual RAM in use, not all the 64GB that I need only in particular circumstances)

  • I have created a file /etc/initramfs-tools/conf.d/resume with content resume=UUID=e4e24763-b174-4057-9ebe-2aa34a423583 and run sudo update-initramfs -c -k all

Still, running systemctl hibernate "seems" to work, but then the pc freeze on restart and need a physical power reset.

Any idea what else could I try ?

EDIT

I reverted to Dell Ubuntu 22.04 where ibernation still not works, but I have discovered that if I hibernate from a tty terminal (e.g. CTR+ALT+F4) then, when I have the black screen comig back from hibernation, I can again press CTR+ALT+F4 and "see" the old session, but there is nothing else I can do, can't type and have to manually bruteforece take down the system.

So the issue is not on bios or getting the wrong partition, but has to do with login and taking on X on post hibernation.

How can I install Ubuntu 22.04 on a system with an SSD and a hard drive using full disk encryption? https://askubuntu.com/questions/1421868/how-can-i-install-ubuntu-22-04-on-a-system-with-an-ssd-and-a-hard-drive-using-fu

I would like to install Ubuntu 22.04 on a PC with an NVMe solid-state drive for the OS and a traditional hard drive for /home, using full disk encryption.

Before I buy the hardware, I have been trying to experiment with installing Ubuntu 22.04 on a virtual machine with two SATA drives to emulate this setup. As the machine will be used as a desktop, I have been using the desktop installer.

If I choose full disk encryption during installation, the installer seems to want to install everything to a single drive and I don't get any control over partitioning.

If I choose the advanced option, I get some manual partitioning options but it's not obvious to me how things should be set up for encryption. The closest I got to a working configuration was something like:

Drive Partition Description
/dev/sda (SSD) /dev/sda1 lvm partition for encryption, filling the whole drive
/dev/mapper/sda1_crypt ext4 partition mounted at /, filling the whole partition
/dev/sdb (HDD) /dev/sdb1 1MB biosgrub partition
/dev/sdb2 1GB EFI partition
/dev/sdb3 1GB ext4 /boot partition
/dev/sdb4 lvm partition for encryption, taking up the rest of the space on the drive
/dev/mapper/sdb4_crypt ext4 partition for /home taking up the whole of the encrypted partition

I couldn't figure out how to add any swap, which I would want to be encrypted as well. I wasn't actually able to proceed with the install in this case as the "Install Now" button was greyed out.

I have put the biosgrub, EFI and /boot partitions on the hard drive because the BIOS on the fairly old system I'd be using almost certainly won't be able to boot from the NVMe SSD. This is obviously not an issue with the virtual machine I'm testing with.

Is this configuration possible or am I asking too much? It's actually worse than this, as I would really like to use bcache as well and have part of the SSD set aside to cache the /home partition, but I haven't put that in the title of the question as I thought it might be more helpful to ask about this without adding bcache into the mix.

Would it be better to use the server installer? Would it be simplest to let the desktop installer put everything on a single drive then try to fix things up afterwards?

Looking at existing questions:

Any advice would be greatly appreciated, even if it's just "don't do that!". :-)

Ubuntu 22.04 Kernel panic - Cannot open root device LVC [duplicate] https://askubuntu.com/questions/1418195/ubuntu-22-04-kernel-panic-cannot-open-root-device-lvc

I tried to update to Ubuntu 22.04 from 20.04 though after updating I have an issue with the system not starting either via normal or recovery or an old kernel version.

[    1.530064] integrity: Loaded X.509 cert 'Canonical Ltd. Master Certificate Authority: ad91990bc22ab1f517048c23b6655a2
[    1.530683] ima: No TPM chip found, activating TPM-bypass!
[    1.530999] Loading compiled-in module X.509 certificates
[    1.531584] Loaded X.509 cert 'Build time autogenerated kernel key: 7f2e266096ca6df1a1e0bcd33100abd18aeaa3ca'
[    1.531911] ima: Allocated hash algorithm: sha1
[    1.532296] ima: No architecture policies found
[    1.532627] evm: Initialising EVM extended attributes:
[    1.532959] evm: security.selinux
[    1.533294] evm: security.SMACK64
[    1.533631] evm: security.SMACK64EXEC
[    1.533969] evm: security.SMACK64TRANSMUTE
[    1.534308] evm: security.SMACK64MMAP
[    1.534757] evm: security.apparmor
[    1.535088] evm: security.ima
[    1.535414] evm: security.capability
[    1.535737] evm: HMAC attrs: 0x1
[    1.536216] PM: Magic number: 14:125:879
[    1.536649] RAS: Correctable Errors collector initialized.
[    1.536987] md: Waiting for all devices to be available before autodetect
[    1.537310] md: If you don't use raid, use raid=noautodetect
[    1.537633] md: Autodetecting RAID arrays.
[    1.537956] md: autorun ...
[    1.538271] md: ... autorun DONE.
[    1.538651] VFS: Cannot open root device "mapper/ubuntu--vg-ubuntu--lv" or unknown-block(0,0): error -6
[    1.538977] Please append a correct "root=" boot option; here are the available partitions:
[    1.539310] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.539644] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.15.0-40-generic #43-Ubuntu
[    1.539996] Hardware name: Gigabyte Technology Co., Ltd. Z590 AORUS PRO AX/Z590 AORUS PRO AX, BIOS F5 03/16/2021
[    1.540404] Call Trace:
[    1.540799]  <TASK>
[    1.541189]  show_stack+0x52/0x58
[    1.541582]  dump_stack_lvl+0x4a/0x5f
[    1.541968]  dump_stack+0x10/0x12
[    1.542345]  panic+0x149/0x321
[    1.542718]  mount_block_root+0x144/0x1d9
[    1.543084]  mount_root+0x10c/0x118
[    1.543440]  prepare_namespace+0x13f/0x18d
[    1.543793]  kernel_init_freeable+0x18c/0x1b1
[    1.544152]  ? rest_init+0x100/0x100
[    1.544486]  kernel_init+0x1b/0x150
[    1.544807]  ? rest_init+0x100/0x100
[    1.545125]  ret_from_fork+0x1f/0x30
[    1.545445]  </TASK>
[    1.545808] Kernel Offset: 0x4200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    1.546165] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Do you have any suggestions?

Can't set sink description to string with spaces https://askubuntu.com/questions/1291818/cant-set-sink-description-to-string-with-spaces

I'm trying to create a null sink and I want to set a description so that it can be recognized easily. I'm able to do it with a name without spaces but if I try to add spaces, the sink isn't created.

This what I've tried :

`

pacmd load-module module-null-sink sink_name=my-sink sink_properties=device.description="My sink"
`

`pacmd 'load-module module-null-sink sink_name=my-sink sink_properties=device.description="My sink" '
`

`pacmd load-module module-null-sink sink_name=my-sink sink_properties=device.description='"My sink"'
`

And all these commands return 0, like it was a success, but if I run pactl list short modules the sink is not created.

I also tried updating the sink after it was created using

pacmd update-sink-proplist my-sink device.description='"My sink"` 

but the command returns also 0 and don't change anything

And one more thing : I want to do it via command line, and without setting the sink in config files.

I'd be glad if someone could help.

Thanks in advance !

Ubuntu Server 20.04 install is not booting on low memory VM https://askubuntu.com/questions/1230191/ubuntu-server-20-04-install-is-not-booting-on-low-memory-vm

I tried to boot the live DVD installer for 20.04 server on VirtualBox with 512 MB of RAM on 2 separate machines. There is a kernel panic after I select install Ubuntu Server. This amount of memory worked fine for 18.04 server. It works when changed to 1024 MB. Is there any reason why I can't have 512 MB for small servers that need very little memory?

Kernel panic - not syncing: No working init found:

[    6.228406] Initramfs unpacking failed: write error
[    6.430514] Failed to execute /init (error -2)
[    6.430674] Kernel panic - not syncing: No working init found.  
Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    6.431016] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-26-generic #30-Ubuntu
[    6.431212] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[    6.431425] Call Trace:
[    6.431519]  dump_stack+0x6d/0x9a
[    6.431627]  ? rest_init+0x30/0xb0
[    6.431738]  panic+0x101/0x2e3
[    6.431841]  ? do_execve+0x25/0x30
[    6.431950]  ? rest_init+0xb0/0xb0
[    6.432059]  kernel_init+0xfb/0x100
[    6.432170]  ret_from_fork+0x22/0x40
[    6.432319] Kernel Offset: 0x17000000 from 0xffffffff81000000 (relocation 
range: 0xffffffff80000000-0xffffffffbfffffff)
[    6.432587] ---[ end Kernel panic - not syncing: No working init found.    
Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst   
for guidance. ]---
G_IS_DBUS_connection failed https://askubuntu.com/questions/1128343/g-is-dbus-connection-failed

I am new to Linux, trying to connect to Nucleo board using putty. I am sure the serial line is correct, this is the message error I got in terminal:

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Kernel panic when starting Ubuntu installer on HP DL360 G6 https://askubuntu.com/questions/1070655/kernel-panic-when-starting-ubuntu-installer-on-hp-dl360-g6

I can boot up from the USB, but after I select the language (with normal kernel or HWE kernel) on a 16.04.5 server, I get this error. I got this Kernel panic - not syncing boot message with an HWE kernel:

[    0.040000] [Firmware Bug]: the BIOS has corrupted hw-PMU resources (MSR 38d is 330)
[    0.196003] ACPI Error: Field [CDW3] at bit offset/length 64/32 exceeds size
target Buffer (64 bits) (20170831/dsopcode-235)
[    0.196003] ACPI Error: Method parse/execution failed _SB._OSC, AE_AML_BUFFER_LIMIT (20170831/psparse-550)
[    0.678163] ERST: Failed to get Error Log Address Range.
[    0.969243] mce: [Hardware Error]: CPU 0: Machine Check Exception: 4 Bank 8: fa0000000008000b2
[    0.970201] mce: [Hardware Error]: TSC 5998d310ee MISC 80000
[    0.970840] mce: [Hardware Error]: PROCESSOR 0:206c2 TIME 1274413556 SOCKET 0 APIC 0 microcode c
[    0.971816] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
[    0.972570] mce: [Hardware Error]: Machine check: Processor context corrupt
[    0.973343] Kernel panic - not syncing: Fatal machine check
[    0.973977] Kernel Offset: 0x34600000 from 0xffffffff81000000 (relocation range: 0xffffffff800000
-0xffffffffbfffffff)
[    0.975176] Rebooting in 30 seconds...
S3fs can't access bucket permission denied https://askubuntu.com/questions/896997/s3fs-cant-access-bucket-permission-denied

I have installed s3fs and made a bucket with aws S3. I am able to write to it. But when I upload a file to the bucket and try reading it I get the following error.

You do not have the permissions necessary to open the file.

I've tried chmod 777 and I don't have permissions, I've tried sudo and I still don't have permissions.

I mount my drive by typing the following line:

s3fs babylon ~/MyMount -o passwd_file=~/.passwd-s3fs

How can I get permissions to access my files? Looking at them with ls -l I see the following:

~/MyMount$ ls -l
total 5
---------- 1 root root 2272 Mar 25 21:47 lab8.cpp
-rw-rw-r-- 1 kaz  kaz    16 Mar 24 22:44 nextday.txt
---------- 1 root root  586 Mar 20 13:27 sample.c
-rw-rw-r-- 1 kaz  kaz     6 Mar 26 01:29 temp.txt
Upgrade from 14.04 to 16.04 results in kernel panic [closed] https://askubuntu.com/questions/855362/upgrade-from-14-04-to-16-04-results-in-kernel-panic

I've been upgrading my Ubuntu 14.04 to 16.04 by following this guide.

First I did sudo apt-get update and it updated successfully. Then I did sudo apt-get upgrade and it downloaded packages around 300 MB or something. After that I did sudo apt-get dist-upgrade which downloaded about 800 MB of data.

Then the system restarted. Now it's not booting up. As of now, it just shows a blank screen and my Caps-Lock Indicator is blinking infinitely.

I've enabled Secure Boot from the BIOS, and now I am getting some errors on the screen.

/init: line 277: readlink: not found
Target filesystem doesn't have requested /sbin/init.
/init: line 295: readlink: not found
/init: line 295: readlink: not found
/init: line 295: readlink: not found
/bin/sh: 0: Can't open splash
[    2.196669] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    2.196669]
[    2.196715] CPU: 2 PID: 1 Comm: sh Not tainted 4.4.0-47-generic #68-Ubuntu
[    2.196746] Hardware name: ASUSTeK COMPUTER INC. TP300LA/TP300LA, BIOS TP300LA.202 05/14/2014
[    2.196784] 0000000000000086 000000008ec44fac ffff880119843e08 ffffffff813f5aa3
[    2.196825] ffff8801cb4548 ffff880119843ea0 ffff880119843e90 ffffffff8118c657
[    2.196866] ffff880100000010 ffff880119843ea0 ffff880119843e38 000000008ec44fac
[    2.196906] Call Trace:
[    2.196926]  [<ffffffff813f5aa3>] dump_stack+0x63/0x90
[    2.196953]  [<ffffffff8118c657>] panic+0xd3/0x215
[    2.196977]  [<ffffffff811854fe>] ? perf_event_exit_task+0xbe/0x350
[    2.197009]  [<ffffffff810846b1>] do_exit+0xaf1/0xb00
[    2.197034]  [<ffffffff81084743>] do_group_exit+0x43/0xb0
[    2.197059]  [<ffffffff810847c4>] SyS_exit_group+0x14/0x20
[    2.197087]  [<ffffffff81834ff2>] entry_SYSCALL_64_fastpath+0x16/0x71
[    2.197142] Kernel Offset: disabled
[    2.197160] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    2.197160]
_
how to setup a Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) https://askubuntu.com/questions/779442/how-to-setup-a-cambridge-silicon-radio-ltd-bluetooth-dongle-hci-mode

Bluetooth setup docs seem a bit dated; my device, but with a different chipset, is on the hardware support docs, however.

thufir@mordor:~$ 
thufir@mordor:~$ hciconfig 
hci0:   Type: BR/EDR  Bus: USB
    BD Address: 00:11:22:98:76:54  ACL MTU: 1021:4  SCO MTU: 180:1
    UP RUNNING PSCAN ISCAN 
    RX bytes:1118 acl:0 sco:0 events:39 errors:0
    TX bytes:413 acl:0 sco:0 commands:37 errors:0

thufir@mordor:~$ 
thufir@mordor:~$ hciconfig -a hci0
hci0:   Type: BR/EDR  Bus: USB
    BD Address: 00:11:22:98:76:54  ACL MTU: 1021:4  SCO MTU: 180:1
    UP RUNNING PSCAN ISCAN 
    RX bytes:1118 acl:0 sco:0 events:39 errors:0
    TX bytes:413 acl:0 sco:0 commands:37 errors:0
    Features: 0xff 0x3e 0x09 0x76 0x80 0x01 0x00 0x80
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH HOLD SNIFF 
    Link mode: SLAVE ACCEPT 
    Name: 'mordor'
    Class: 0x0c0104
    Service Classes: Rendering, Capturing
    Device Class: Computer, Desktop workstation
    HCI Version: 2.0 (0x3)  Revision: 0x50
    LMP Version: 2.0 (0x3)  Subversion: 0x3
    Manufacturer: Mitel Semiconductor (16)

thufir@mordor:~$ 
thufir@mordor:~$ lsusb
Bus 002 Device 003: ID 0a48:3302 I/O Interconnect 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 147a:e034 Formosa Industrial Computing, Inc. 
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 004 Device 002: ID 045e:00b4 Microsoft Corp. Digital Media Keyboard 1.0A
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
thufir@mordor:~$ 

also:

thufir@mordor:~$ 
thufir@mordor:~$ dmesg | grep Bluetooth 
[ 8112.206222] Bluetooth: Core ver 2.20
[ 8112.206258] Bluetooth: HCI device and connection manager initialized
[ 8112.206264] Bluetooth: HCI socket layer initialized
[ 8112.206267] Bluetooth: L2CAP socket layer initialized
[ 8112.206276] Bluetooth: SCO socket layer initialized
[ 8114.340022] Bluetooth: hci0 command 0x0c12 tx timeout
[ 8132.558756] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 8132.558761] Bluetooth: BNEP filters: protocol multicast
[ 8132.558769] Bluetooth: BNEP socket layer initialized
[ 8146.465549] Bluetooth: RFCOMM TTY layer initialized
[ 8146.465560] Bluetooth: RFCOMM socket layer initialized
[ 8146.465570] Bluetooth: RFCOMM ver 1.11
thufir@mordor:~$ 

Running 15.10 wily.

How do I enable ______ so that I can access BT through the settings interface? The bluez package is installed.

I've tried a few bluetooth devices, it can't connect with any of them:

enter image description here

killing and restarting the applet:

thufir@mordor:~$ 
thufir@mordor:~$ killall blueman-applet
thufir@mordor:~$ 
thufir@mordor:~$ blueman-applet
blueman-applet version 2.0 starting
Stale PID, overwriting
_________
Load (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:60)
['StatusIcon', 'ExitItem', 'SerialManager', 'AppIndicator', 'Headset', 'PowerManager', 'NetUsage', 'NMPANSupport', 'GameControllerWakelock', 'RecentConns', 'StandardItems', 'TransferService', 'DBusService', 'Menu', 'ShowConnected', 'Networking', 'PPPSupport', 'AuthAgent', 'DhcpClient', 'DiscvManager', 'NMDUNSupport', 'KillSwitch'] 
_________
get_interface_version (/usr/lib/python2.7/dist-packages/blueman/bluez/BlueZInterface.py:13)
Detected BlueZ 5 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.Headset.Headset'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.Networking.Networking'> 
_________
load_nap_settings (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/Networking.py:36)
Loading NAP settings 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.DBusService.DBusService'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.NMDUNSupport.NMDUNSupport'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.Menu.Menu'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.ShowConnected.ShowConnected'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
Not loading PPPSupport because it's conflict has higher priority 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.PowerManager.PowerManager'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.KillSwitch.KillSwitch'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.AuthAgent.AuthAgent'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.ExitItem.ExitItem'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.DhcpClient.DhcpClient'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.SerialManager.SerialManager'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.AppIndicator.AppIndicator'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
Not loading NMPANSupport because it's conflict has higher priority 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.GameControllerWakelock.GameControllerWakelock'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.TransferService.TransferService'> 
_________
get_interface_version (/usr/lib/python2.7/dist-packages/blueman/bluez/obex/Base.py:20)
Detected BlueZ integrated obexd 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.DiscvManager.DiscvManager'> 
_________
update_menuitems (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/DiscvManager.py:123)
warning: Adapter is None 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.RecentConns.RecentConns'> 
_________
__load_plugin (/usr/lib/python2.7/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.applet.StandardItems.StandardItems'> 
_________
io_event (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/KillSwitch.py:72)
killswitch registered 0 
_________
io_event (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/KillSwitch.py:72)
State: True 
_________
UpdatePowerState (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/PowerManager.py:159)
off False 
foff False 
on True 
current state True 
new state True 
_________
_on_obex_owner_changed (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/TransferService.py:170)
obex owner changed: :1.59 
_________
on_dbus_name_owner_change (/usr/bin/blueman-applet:94)
org.bluez owner changed to :1.8 
_________
set_nap (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/Networking.py:65)
set nap False 
_________
update_menuitems (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/DiscvManager.py:123)
warning: Adapter is None 
_________
initialize (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/RecentConns.py:144)
rebuilding menu 
_________
enumerate_connections (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/ShowConnected.py:50)
Found 0 existing connections 
_________
on_registered (/usr/lib/python2.7/dist-packages/blueman/bluez/obex/AgentManager.py:18)
/org/blueman/obex_agent 
_________
RequestPowerState (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/PowerManager.py:131)
Requesting True 
_________
on_power_state_change_requested (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/KillSwitch.py:119)
True 
_________
UpdatePowerState (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/PowerManager.py:159)
off True 
foff False 
on True 
current state True 
new state False 
_________
UpdatePowerState (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/PowerManager.py:159)
Signalling False 
_________
check (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/PowerManager.py:119)
callbacks done 
_________
set_adapter_state (/usr/lib/python2.7/dist-packages/blueman/plugins/applet/PowerManager.py:90)
True 
bluetooth stops working after resuming from sleep https://askubuntu.com/questions/645004/bluetooth-stops-working-after-resuming-from-sleep

I am on Lenovo Z50-70 running Ubuntu 15.04 with Linux kernel 4.0

My bluetooth works fine until I resume from sleep, it says bluetooth is disabled, it doesn't start even if i toggle the OFF button (see image below)

output of lsusb; lsmod | grep bluetooth; dmesg | grep firmware is:

Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 0cf3:3004 Atheros Communications, Inc. 
Bus 002 Device 003: ID 5986:055e Acer, Inc 
Bus 002 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
bluetooth             446409  12 bnep,ath3k,btusb,rfcomm
[  483.670589] usb 1-7: device firmware changed

enter image description here

Random kernel panics after upgrade to 14.04 https://askubuntu.com/questions/533105/random-kernel-panics-after-upgrade-to-14-04

I installed a fresh Ubuntu 13.10 on my Samsung series 9 (NP900X3C). It was working great, however after upgrading to Ubuntu 14.04 I'm getting random crashes and kernel panics. The system might run well for a whole day, but at other times the system crashes each hour.

The way a crash occurs isn't consistent. The system may freeze up, it can go black or I can get a kernel panic.

I often get a Machine Check Exception as shown below, but I've also had not syncing messages.

[ 4441.599827] mce: [Hardware Error]: CPU 1: Machine Check Exception: 5 Bank 4: b200000000100402
[ 4441.599962] mce: [Hardware Error]: RIP !INEXACT! 33:<00007f604592dcb8>
[ 4441.600061] mce: [Hardware Error]: TSC 6da71b11897
[ 4441.600137] mce: [Hardware Error]: PROCESSOR 0:306a9 TIME 1407489419 SOCKET 0 APIC 1 microcode 12
[ 4441.600259] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
[ 4441.600357] mce: [Hardware Error]: CPU 3: Machine Check Exception: 5 Bank 4: b200000000100402
[ 4441.600475] mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff813e3d68> {intel_idle+0xd8/0x140}
[ 4441.600611] mce: [Hardware Error]: TSC 6da71b1d47c
[ 4441.600686] mce: [Hardware Error]: PROCESSOR 0:306a9 TIME 1407489419 SOCKET 0 APIC 3 microcode 12
[ 4441.600812] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
[ 4441.600910] mce: [Hardware Error]: CPU 2: Machine Check Exception: 5 Bank 4: b200000000100402
[ 4441.601028] mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff813e3d68> {intel_idle+0xd8/0x140}
[ 4441.601160] mce: [Hardware Error]: TSC 6da71b1d48d
[ 4441.601234] mce: [Hardware Error]: PROCESSOR 0:306a9 TIME 1407489419 SOCKET 0 APIC 2 microcode 12
[ 4441.601356] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
[ 4441.601451] mce: [Hardware Error]: CPU 0: Machine Check Exception: 5 Bank 4: b200000000100402
[ 4441.601569] mce: [Hardware Error]: RIP !INEXACT! 10:<ffffffff813e3d68> {intel_idle+0xd8/0x140}
[ 4441.601690] mce: [Hardware Error]: TSC 6da71b11ba5
[ 4441.601773] mce: [Hardware Error]: PROCESSOR 0:306a9 TIME 1407489419 SOCKET 0 APIC 0 microcode 12
[ 4441.601894] mce: [Hardware Error]: Run the above through 'mcelog --ascii'
[ 4441.601989] mce: [Hardware Error]: Machine check: Processor context corrupt
[ 4441.602006] Kernel panic - not syncing: Fatal Machine check
[ 4441.602176] drm_kms_helper: panic occurred, switching back to text console
[ 4441.628152] Rebooting in 30 seconds..

Please don't dismiss it as just faulty hardware. The laptop did not have this problem before upgrading and the kernel panics started almost right after the dist upgrade.

How to use debconf-show results with debconf-set-selections? https://askubuntu.com/questions/381593/how-to-use-debconf-show-results-with-debconf-set-selections

I'd like to know how to use the results of debconf-show with debconf-set-selections to pre-configure deb packages with the command line or within a shell script

For example, if I use

sudo debconf-get-selections | grep java7 > result; cat result

I get the following

oracle-java7-installer  shared/present-oracle-license-v1-1  note    
oracle-java7-installer  oracle-java7-installer/local    string  
oracle-java7-installer  shared/accepted-oracle-license-v1-1 boolean true
oracle-java7-installer  shared/error-oracle-license-v1-1    error   
oracle-java7-installer  oracle-java7-installer/not_exist    error

How would the right debconf-set-selections line look like to configure the two dialogs that appear trough the installation?

In general how is the right syntax of debconf-set-selections? I assume there are not only booleans like true or false and yes or no

I guess there is much more an other example will be how to select the default desktop manager if lightdm and gdm installed by a bash script.

Is there a general proofed approach to determine and the right values for a debconf package and write a proper bash script that installs something like the webupt8 java package and preselect the values that the user normally would be asked for?

How to know what program is listening on a given port? https://askubuntu.com/questions/278448/how-to-know-what-program-is-listening-on-a-given-port

I suspect a program is listening on port 8000 on my machine.

When I run the following command, I get this error:

> python -m SimpleHTTPServer
# Lots of python error
socket.error: [Errno 98] Address already in use

If I use another port (8000 is the default), the web server runs fine.

If I run wget localhost:8000 from the command line, it returns 404 Not Found.

What can I do (or what tools are available) to find what program is listening on port 8000, and from there where that program is configured?