Cannot run, install, update, or uninstall python3 from ubuntu 24.04 https://askubuntu.com/questions/1564673/cannot-run-install-update-or-uninstall-python3-from-ubuntu-24-04

I'm currently trying to install python3 onto ubuntu24.04.3. I only realized that python came preinstalled with ubuntu after attempting sudo apt install python3.

I have now seemed to have permanently borked python and apt on my system. When I try to run any python operation, the system cannot find the python3command. When I try to run sudo apt install python3, I get the following output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : Depends: libpython3-stdlib (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I tried to run sudo apt install libpython3-stdliband got the following output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : PreDepends: python3-minimal (= 3.12.3-0ubuntu2) but 3.12.3-0ubuntu2.1 is to be installed
           Depends: libpython3-stdlib (= 3.12.3-0ubuntu2) but 3.12.3-0ubuntu2.1 is to be installed
 python3-dev : Depends: python3 (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
 python3-venv : Depends: python3 (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I thought that there might have been an issue with my apt repos, so I ran a sudo apt update. It resulted in this error:

Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Fetched 6,581 B in 1s (11.3 kB/s)
sh: 1: /usr/lib/cnf-update-db: Permission denied
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code

Getting pretty frustrated at this point, I decided I'd try to run --fix-broken as it suggested.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libllvm19
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libpython3-stdlib python3
Suggested packages:
  python3-doc python3-tk
The following packages will be upgraded:
  libpython3-stdlib python3
2 upgraded, 0 newly installed, 0 to remove and 347 not upgraded.
3 not fully installed or removed.
Need to get 0 B/33.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python3-minimal (3.12.3-0ubuntu2.1) ...
/var/lib/dpkg/info/python3-minimal.postinst: 5: py3compile: Permission denied
dpkg: error processing package python3-minimal (--configure):
 installed python3-minimal package post-installation script subprocess returned error exit status 126
Errors were encountered while processing:
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm completely stuck at this point. And I'd much rather avoid doing a completely fresh ubuntu install. Does anyone know of a fix for this?

Thanks in advance!

Edit: Here is my list of installed python packages:

libpython3-dev/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,automatic]
libpython3-stdlib/now 3.12.3-0ubuntu2 amd64 [installed,upgradable to: 3.12.3-0ubuntu2.1]
libpython3.12-dev/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12-minimal/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12-stdlib/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12t64/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python-apt-common/now 2.7.7ubuntu5 all [installed,upgradable to: 2.7.7ubuntu5.2]
python-babel-localedata/noble,now 2.10.3-3build1 all [installed,automatic]
python3-apport/noble-updates,noble-security,now 2.28.1-0ubuntu3.8 all [installed,automatic]
python3-apt/now 2.7.7ubuntu5 amd64 [installed,upgradable to: 2.7.7ubuntu5.2]
python3-aptdaemon.gtk3widgets/noble,now 1.1.1+bzr982-0ubuntu44 all [installed,automatic]
python3-aptdaemon/noble,now 1.1.1+bzr982-0ubuntu44 all [installed,automatic]
python3-attr/noble,now 23.2.0-2 all [installed,automatic]
python3-babel/noble,now 2.10.3-3build1 all [installed,automatic]
python3-blinker/noble,now 1.7.0-1 all [installed,automatic]
python3-bpfcc/noble,now 0.29.1+ds-1ubuntu7 all [installed,automatic]
python3-brlapi/noble,now 6.6-4ubuntu5 amd64 [installed,automatic]
python3-cairo/noble,now 1.25.1-2build2 amd64 [installed,automatic]
python3-certifi/noble,now 2023.11.17-1 all [installed,automatic]
python3-cffi-backend/noble,now 1.16.0-2build1 amd64 [installed,automatic]
python3-chardet/noble,now 5.2.0+dfsg-1 all [installed,automatic]
python3-click/noble,now 8.1.6-2 all [installed,automatic]
python3-colorama/noble,now 0.4.6-4 all [installed,automatic]
python3-commandnotfound/noble,now 23.04.0 all [installed,automatic]
python3-configobj/noble,now 5.0.8-3 all [installed,automatic]
python3-cryptography/noble-updates,noble-security,now 41.0.7-4ubuntu0.1 amd64 [installed,automatic]
python3-cups/noble,now 2.0.1-5build6 amd64 [installed,automatic]
python3-cupshelpers/noble,now 1.5.18-1ubuntu9 all [installed,automatic]
python3-dateutil/noble,now 2.8.2-3ubuntu1 all [installed,automatic]
python3-dbus/noble,now 1.3.2-5build3 amd64 [installed,automatic]
python3-debconf/noble,now 1.5.86ubuntu1 all [installed,automatic]
python3-debian/noble,now 0.1.49ubuntu2 all [installed,automatic]
python3-defer/noble,now 1.0.6-2.1ubuntu1 all [installed,automatic]
python3-dev/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,automatic]
python3-distro-info/noble,now 1.7build1 all [installed,automatic]
python3-distro/noble,now 1.9.0-1 all [installed,automatic]
python3-distupgrade/now 1:24.04.27 all [installed,upgradable to: 1:24.04.28]
python3-dnspython/noble,now 2.6.1-1ubuntu1 all [installed,automatic]
python3-gdbm/noble,now 3.12.3-0ubuntu1 amd64 [installed,automatic]
python3-gi/noble,now 3.48.2-1 amd64 [installed,automatic]
python3-gpg/noble,now 1.18.0-4.1ubuntu4 amd64 [installed,automatic]
python3-httplib2/noble,now 0.20.4-3 all [installed,automatic]
python3-ibus-1.0/noble,now 1.5.29-2 all [installed,automatic]
python3-idna/noble-updates,noble-security,now 3.6-2ubuntu0.1 all [installed,automatic]
python3-jinja2/noble-updates,noble-security,now 3.1.2-1ubuntu1.3 all [installed,automatic]
python3-json-pointer/noble,now 2.0-0ubuntu1 all [installed,automatic]
python3-jsonpatch/noble,now 1.32-3 all [installed,automatic]
python3-jsonschema/noble,now 4.10.3-2ubuntu1 all [installed,automatic]
python3-jwt/noble,now 2.7.0-1 all [installed,automatic]
python3-launchpadlib/noble,now 1.11.0-6 all [installed,automatic]
python3-lazr.restfulclient/noble,now 0.14.6-1 all [installed,automatic]
python3-lazr.uri/noble,now 1.0.6-3 all [installed,automatic]
python3-ldb/now 2:2.8.0+samba4.19.5+dfsg-4ubuntu9.3 amd64 [installed,upgradable to: 2:2.8.0+samba4.19.5+dfsg-4ubuntu9.4]
python3-louis/noble,now 3.29.0-1build1 all [installed,automatic]
python3-markdown-it/noble,now 3.0.0-2 all [installed,automatic]
python3-markdown/noble,now 3.5.2-1 all [installed,automatic]
python3-markupsafe/noble,now 2.1.5-1build2 amd64 [installed,automatic]
python3-mdurl/noble,now 0.1.2-1 all [installed,automatic]
python3-minimal/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,auto-removable]
python3-netaddr/noble,now 0.8.0-2ubuntu1 all [installed,automatic]
python3-netifaces/noble,now 0.11.0-2build3 amd64 [installed]
python3-netplan/now 1.1.2-2~ubuntu24.04.2 amd64 [installed,upgradable to: 1.1.2-8ubuntu1~24.04.1]
python3-oauthlib/noble,now 3.2.2-1 all [installed,automatic]
python3-olefile/noble,now 0.46-3 all [installed,automatic]
python3-pexpect/noble,now 4.9-2 all [installed,automatic]
python3-pil/noble-updates,noble-security,now 10.2.0-1ubuntu1 amd64 [installed,automatic]
python3-pip-whl/noble-updates,noble-security,now 24.0+dfsg-1ubuntu1.3 all [installed,automatic]
python3-pip/noble-updates,noble-security,now 24.0+dfsg-1ubuntu1.3 all [installed]
python3-pkg-resources/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-problem-report/noble-updates,noble-security,now 2.28.1-0ubuntu3.8 all [installed,automatic]
python3-ptyprocess/noble,now 0.7.0-5 all [installed,automatic]
python3-pygments/noble,now 2.17.2+dfsg-1 all [installed,automatic]
python3-pyparsing/noble,now 3.1.1-1 all [installed,automatic]
python3-pyrsistent/noble,now 0.20.0-1build2 amd64 [installed,automatic]
python3-requests/noble-updates,noble-security,now 2.31.0+dfsg-1ubuntu1.1 all [installed,automatic]
python3-rich/noble,now 13.7.1-1 all [installed,automatic]
python3-samba/now 2:4.19.5+dfsg-4ubuntu9.3 amd64 [installed,upgradable to: 2:4.19.5+dfsg-4ubuntu9.4]
python3-serial/noble,now 3.5-2 all [installed,automatic]
python3-setuptools-whl/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-setuptools/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-six/noble,now 1.16.0-4 all [installed,automatic]
python3-software-properties/now 0.99.49.3 all [installed,upgradable to: 0.99.49.4]
python3-speechd/noble,now 0.12.0~rc2-2build3 all [installed,automatic]
python3-sss/noble-updates,now 2.9.4-1.1ubuntu6.3 amd64 [installed,automatic]
python3-systemd/noble,now 235-1build4 amd64 [installed,automatic]
python3-talloc/noble,now 2.4.2-1build2 amd64 [installed,automatic]
python3-tdb/noble,now 1.4.10-1build1 amd64 [installed,automatic]
python3-typing-extensions/noble,now 4.10.0-1 all [installed,automatic]
python3-tz/noble,now 2024.1-2 all [installed,automatic]
python3-update-manager/noble-updates,now 1:24.04.12 all [installed,automatic]
python3-urllib3/now 2.0.7-1ubuntu0.2 all [installed,upgradable to: 2.0.7-1ubuntu0.6]
python3-venv/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed]
python3-wadllib/noble,now 1.3.6-5 all [installed,automatic]
python3-wheel/noble,now 0.42.0-2 all [installed,automatic]
python3-xdg/noble,now 0.28-2 all [installed,automatic]
python3-xkit/noble,now 0.5.0ubuntu6 all [installed,automatic]
python3-yaml/noble,now 6.0.1-2build2 amd64 [installed,automatic]
python3.12-dev/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12-minimal/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12-venv/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3/now 3.12.3-0ubuntu2 amd64 [installed,upgradable to: 3.12.3-0ubuntu2.1]
Error installation Kubuntu daily build 26.04 LTS https://askubuntu.com/questions/1564671/error-installation-kubuntu-daily-build-26-04-lts

Hardware Specifications:

Machine: Lenovo ThinkPad E14 Gen 6
CPU: AMD
OS Attempted: Kubuntu 26.04 LTS daily build

Issue Description:

I am completely stuck trying to install Kubuntu. The installation process always fails at the very end with an error window. The exact error output is:
Command cp /etc/apt/sources.list.d/cdrom.sources /tmp/calamares-cdrom-sources/ finished with exit code 1.

Output:

cp: cannot stat '/etc/apt/sources.list.d/cdrom.sources':     
No such file or directory.  

Troubleshooting Steps Taken (All resulted in the same error):

USB Flashing Tools:

I created the bootable USB using both Popsicle and Fedora Media Writer. Same result with both.

Partitioning:

Selected "Erase entire disk" with automatic partitioning.

Installation Type:

Tried both "Minimal installation" and "Standard/Normal installation". Network/Updates: Tried checking AND unchecking the "Download updates during installation" option.

Additional Context:

To rule out a hardware or USB drive issue, I flashed the latest Ubuntu GNOME 26.04 LTS daily build and it installed flawlessly without any errors. This seems to be a specific bug with Calamares looking for a legacy cdrom.sources file that doesn't exist in the current Kubuntu ISO.

Has anyone found a permanent workaround for this specific installer bug, or is there a way to bypass this step during the live session before running the installer?

Error message (Installation Failed):

Error image

ASCII characters missing from Gnome Characters app on Ubuntu 24.04 https://askubuntu.com/questions/1564670/ascii-characters-missing-from-gnome-characters-app-on-ubuntu-24-04

I'm running stock Ubuntu 24.04 LTS and am having a problem with Gnome Characters version 46. For some reason, I can find special/exotic characters but can't find 'normal' characters like the ASCII characters in it. For instance, when searching equal sign in the app I see variants of the equal sign character, but not the base character with code U+003D (screenshot below).

Screenshot of Characters App

In addition, if I exit the search and navigate to the Letters section on the left, instead of the Latin Capital Letters at the start I see the following:

GNOME Characters app Letters screenshot

Since this may be relevant, I include here the output of running locale in the terminal:

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_ZA.UTF-8
LC_TIME=en_ZA.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_ZA.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_ZA.UTF-8
LC_NAME=en_ZA.UTF-8
LC_ADDRESS=en_ZA.UTF-8
LC_TELEPHONE=en_ZA.UTF-8
LC_MEASUREMENT=en_ZA.UTF-8
LC_IDENTIFICATION=en_ZA.UTF-8
LC_ALL=

Please help! Some keys on my keyboard occasionally don't work so I want to be able to copy/paste them from the app.

No HDMI audio with Linux Kernel 7 rc1, rc2 or rc3 [closed] https://askubuntu.com/questions/1564669/no-hdmi-audio-with-linux-kernel-7-rc1-rc2-or-rc3

This is my first post here. I have compiled both RC1, RC2 and Rc3, for kernel 7 and after booting with it, no HDMI sound at all. So I wonder if anybody else has the same issue.

This my laptop:

Operating System: Kubuntu 26.04
KDE Plasma Version: 6.6.2
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 6.19.6-x64v3-xanmod1 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5625U with Radeon Graphics
Memory: 64 GiB of RAM (46.9 GiB usable)
Graphics Processor: AMD Radeon Graphics
Manufacturer: Positivo Bahia - VAIO
Product Name: VJFE69F11X-B0411H

With kernel 6.19, even the RC's works perfectly fine. This is how I compiled the kernel:

git clone from Linus github cd linux make mrproper cp /boot/config-$(uname -r) .config fakeroot make -j$(nproc) deb-pkg

I also downloaded the mainline kernel from here: https://kernel.ubuntu.com/mainline/v7.0-rc3/

I already tried 3 different Linux distros:

  • Debian Forky
  • Kubuntu 26.04
  • ArchLinux

Same result...

Hope this can be fixed soon.

Best Regards.

IPP vs DNS-SD for driverless printing? https://askubuntu.com/questions/1564668/ipp-vs-dns-sd-for-driverless-printing

My wireless network printer has both an ipp:// URI and a dnssd:// URI visible in CUPS and lpstat:

$ lpstat -v
device for HL-L2340D: dnssd://Brother%20HL-L2340D%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-b05216cd7ec3
device for HL-L2340D-2: ipp://Brother%20HL-L2340D%20series._ipp._tcp.local/
device for PDF: cups-pdf:/

Both destinations can print just fine and appear to have the same print quality. Neither relies on a numeric IP address so I don't have to worry about the URI going out of date if I e.g. reboot my router, which as I understand it was one of the few differentiating factors between these options:

Both these URIs are equally stable and can be used for driverless printing, with a dnssd URI being preferred if the ipp URI is using a numeric IP address.

However, I am curious if they are the same in other respects, especially in terms of performance like throughput and latency. It seems like the IPP url sends print jobs slightly faster, e.g. the same print job takes about 20 seconds to start for the device with the IPP URL but about 30 seconds with the DN-SSD URL. Is this expected behavior, due to the way Avahi/Bonjour broadcasts work with DNS-SD? Is there any other particular reason to prefer IPP over DNS-SD or vice versa?

In case it matters, I'm using Ubuntu 24.04 with OpenPrinting CUPS 2.4.7.

Replacement driver for btusb? (using TP-Link AX3000) https://askubuntu.com/questions/1564667/replacement-driver-for-btusb-using-tp-link-ax3000

I got a tplink ax3000 pcie wifi/bluetooth card for my ubuntu 24.04.4 HP-Z840 workstation PC.

Jeremy31 stopped supporting my card in their btusb driver, on github.

Because of that, I've had to completely freeze kernel updates for a while now.

Does anyone know of a replacement driver? I feel as though Ihave looked everywhere.

if you need information, don't hesitate to ask

Error 802: system not yet initialized when running CUDA container after NVIDIA driver reinstall on DGX — torch.cuda.is_available() crashes https://askubuntu.com/questions/1564666/error-802-system-not-yet-initialized-when-running-cuda-container-after-nvidia-d

Background / What was working:

I have an NVIDIA DGX server running Ubuntu. Previously, I had driver 535.216 installed (CUDA 12.2), and everything worked fine — including a vLLM Docker container that uses PyTorch 2.9.0+cu129 (CUDA 12.9 internally). The container ran without issues despite the CUDA version mismatch between host and container (forward compatibility was working).

What I did:

  1. Ran apt upgrade and saw nvidia-driver-590 (CUDA 13.1) recommended, so I installed it.

  2. After installing 590, the vLLM container stopped working with:

RuntimeError: Unexpected error from cudaGetDeviceCount(). 
Error 802: system not yet initialized
  1. I tried to roll back. I ran apt install nvidia-drvier-535 but it installed as 535.288

  2. I couldn't get back to the original version

  3. Restarting the server didn't help.

Current state:

  • nvidia-smi works on the host, shows Driver 535.288, CUDA 12.2

  • nvidia-smi inside the container also shows 535.288, CUDA 12.9

  • Docker container toolkit was missing after the purge and had to be reinstalled manually

When I exec into the container and run Python:

>>> import torch 
>>> torch.__version__ '
2.9.0+cu129' 
>>> torch.version.cuda 
'12.9' 
>>> torch.cuda.is_available() # process crashes here, no output returned ``

Key observation:

The same container with CUDA 12.9 worked fine on driver 535.216 before I touched anything. So the CUDA version mismatch between host (12.2) and container (12.9) is not the root cause — it was working before via forward compatibility. Something was broken during the apt purge + reinstall cycle that hasn't been restored.

How should I approach to fix this problem?

Error Stack:

traceback (most recent call last):
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 722, in worker_main
ERROR [multiproc_executor.py]     worker = WorkerProc(*args, **kwargs)
ERROR [multiproc_executor.py]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 538, in __init__
ERROR [multiproc_executor.py]     wrapper.init_worker(all_kwargs)
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/worker_base.py", line 255, in init_worker
ERROR [multiproc_executor.py]     worker_class = resolve_obj_by_qualname(
ERROR [multiproc_executor.py]                    ^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/utils/import_utils.py", line 122, in resolve_obj_by_qualname
ERROR [multiproc_executor.py]     module = importlib.import_module(module_name)
ERROR [multiproc_executor.py]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
ERROR [multiproc_executor.py]     return _bootstrap._gcd_import(name[level:], package, level)
ERROR [multiproc_executor.py]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
ERROR [multiproc_executor.py]   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
ERROR [multiproc_executor.py]   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
ERROR [multiproc_executor.py]   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
ERROR [multiproc_executor.py]   File "<frozen importlib._bootstrap_external>", line 999, in exec_module
ERROR [multiproc_executor.py]   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 54, in <module>
ERROR [multiproc_executor.py]     from vllm.v1.worker.gpu_model_runner import GPUModelRunner
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_model_runner.py", line 140, in <module>
ERROR [multiproc_executor.py]     from vllm.v1.spec_decode.eagle import EagleProposer
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/spec_decode/eagle.py", line 30, in <module>
ERROR [multiproc_executor.py]     from vllm.v1.attention.backends.flash_attn import FlashAttentionMetadata
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/attention/backends/flash_attn.py", line 230, in <module>
ERROR [multiproc_executor.py]     class FlashAttentionMetadataBuilder(AttentionMetadataBuilder[FlashAttentionMetadata]):
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/attention/backends/flash_attn.py", line 251, in FlashAttentionMetadataBuilder
ERROR [multiproc_executor.py]     if get_flash_attn_version() == 3
ERROR [multiproc_executor.py]        ^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/attention/utils/fa_utils.py", line 49, in get_flash_attn_version
ERROR [multiproc_executor.py]     3 if (device_capability.major == 9 and is_fa_version_supported(3)) else 2
ERROR [multiproc_executor.py]                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/vllm_flash_attn/flash_attn_interface.py", line 70, in is_fa_version_supported
ERROR [multiproc_executor.py]     return _is_fa3_supported(device)[0]
ERROR [multiproc_executor.py]            ^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/vllm/vllm_flash_attn/flash_attn_interface.py", line 51, in _is_fa3_supported
ERROR [multiproc_executor.py]     if torch.cuda.get_device_capability(device)[0] < 9 \
ERROR [multiproc_executor.py]        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py", line 598, in get_device_capability
ERROR [multiproc_executor.py]     prop = get_device_properties(device)
ERROR [multiproc_executor.py]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py", line 614, in get_device_properties
ERROR [multiproc_executor.py]     _lazy_init()  # will define _get_device_properties
ERROR [multiproc_executor.py]     ^^^^^^^^^^^^
ERROR [multiproc_executor.py]   File "/usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py", line 410, in _lazy_init
ERROR [multiproc_executor.py]     torch._C._cuda_init()
ERROR [multiproc_executor.py] RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 802: system not yet initialized
INFO  [multiproc_executor.py:709] Parent process exited, terminating worker
INFO  [multiproc_executor.py:709] Parent process exited, terminating worker
INFO  [multiproc_executor.py:709] Parent process exited, terminating worker
INFO  [multiproc_executor.py:709] Parent process exited, terminating worker
(EngineCore_DP0 pid=157) ERROR  [core.py:843] EngineCore failed to start.
(EngineCore_DP0 pid=157) ERROR  [core.py:843] Traceback (most recent call last):
(EngineCore_DP0 pid=157) ERROR  [core.py:843]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 834, in run_engine_core
(EngineCore_DP0 pid=157) ERROR  [core.py:843]     engine_core = EngineCoreProc(*args, **kwargs)
(EngineCore_DP0 pid=157) ERROR  [core.py:843]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_DP0 pid=157) ERROR  [core.py:843]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 610, in __init__
(EngineCore_DP0 pid=157) ERROR  [core.py:843]     super().__init__(
(EngineCore_DP0 pid=157) ERROR  [core.py:843]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 102, in __init__
(EngineCore_DP0 pid=157) ERROR  [core.py:843]     self.model_executor = executor_class(vllm_config)
(EngineCore_DP0 pid=157) ERROR  [core.py:843]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_DP0 pid=157) Process EngineCore_DP0:
(EngineCore_DP0 pid=157) ERROR  [core.py:843]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 97, in __init__
(EngineCore_DP0 pid=157) ERROR  [core.py:843]     super().__init__(vllm_config)
(EngineCore_DP0 pid=157) ERROR  [core.py:843]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/abstract.py", line 101, in __init__
(EngineCore_DP0 pid=157) ERROR  [core.py:843]     self._init_executor()
(EngineCore_DP0 pid=157) ERROR  [core.py:843]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 174, in _init_executor
(EngineCore_DP0 pid=157) ERROR  [core.py:843]     self.workers = WorkerProc.wait_for_ready(unready_workers)
(EngineCore_DP0 pid=157) ERROR  [core.py:843]                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_DP0 pid=157) ERROR  [core.py:843]   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 660, in wait_for_ready
(EngineCore_DP0 pid=157) ERROR  [core.py:843]     raise e from None
(EngineCore_DP0 pid=157) ERROR  [core.py:843] Exception: WorkerProc initialization failed due to an exception in a background process. See stack trace for root cause.
(EngineCore_DP0 pid=157) Traceback (most recent call last):
(EngineCore_DP0 pid=157)   File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
(EngineCore_DP0 pid=157)     self.run()
(EngineCore_DP0 pid=157)   File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
(EngineCore_DP0 pid=157)     self._target(*self._args, **self._kwargs)
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 847, in run_engine_core
(EngineCore_DP0 pid=157)     raise e
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 834, in run_engine_core
(EngineCore_DP0 pid=157)     engine_core = EngineCoreProc(*args, **kwargs)
(EngineCore_DP0 pid=157)                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 610, in __init__
(EngineCore_DP0 pid=157)     super().__init__(
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core.py", line 102, in __init__
(EngineCore_DP0 pid=157)     self.model_executor = executor_class(vllm_config)
(EngineCore_DP0 pid=157)                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 97, in __init__
(EngineCore_DP0 pid=157)     super().__init__(vllm_config)
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/abstract.py", line 101, in __init__
(EngineCore_DP0 pid=157)     self._init_executor()
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 174, in _init_executor
(EngineCore_DP0 pid=157)     self.workers = WorkerProc.wait_for_ready(unready_workers)
(EngineCore_DP0 pid=157)                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(EngineCore_DP0 pid=157)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/executor/multiproc_executor.py", line 660, in wait_for_ready
(EngineCore_DP0 pid=157)     raise e from None
(EngineCore_DP0 pid=157) Exception: WorkerProc initialization failed due to an exception in a background process. See stack trace for root cause.
(APIServer pid=1) Traceback (most recent call last):
(APIServer pid=1)   File "/usr/local/bin/vllm", line 10, in <module>
(APIServer pid=1)     sys.exit(main())
(APIServer pid=1)              ^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/cli/main.py", line 73, in main
(APIServer pid=1)     args.dispatch_function(args)
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/cli/serve.py", line 60, in cmd
(APIServer pid=1)     uvloop.run(run_server(args))
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/uvloop/__init__.py", line 96, in run
(APIServer pid=1)     return __asyncio.run(
(APIServer pid=1)            ^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/asyncio/runners.py", line 195, in run
(APIServer pid=1)     return runner.run(main)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
(APIServer pid=1)     return self._loop.run_until_complete(task)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/uvloop/__init__.py", line 48, in wrapper
(APIServer pid=1)     return await main
(APIServer pid=1)            ^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 1819, in run_server
(APIServer pid=1)     await run_server_worker(listen_address, sock, args, **uvicorn_kwargs)
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 1838, in run_server_worker
(APIServer pid=1)     async with build_async_engine_client(
(APIServer pid=1)                ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__
(APIServer pid=1)     return await anext(self.gen)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 183, in build_async_engine_client
(APIServer pid=1)     async with build_async_engine_client_from_engine_args(
(APIServer pid=1)                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 210, in __aenter__
(APIServer pid=1)     return await anext(self.gen)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/entrypoints/openai/api_server.py", line 224, in build_async_engine_client_from_engine_args
(APIServer pid=1)     async_llm = AsyncLLM.from_vllm_config(
(APIServer pid=1)                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/async_llm.py", line 223, in from_vllm_config
(APIServer pid=1)     return cls(
(APIServer pid=1)            ^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/async_llm.py", line 134, in __init__
(APIServer pid=1)     self.engine_core = EngineCoreClient.make_async_mp_client(
(APIServer pid=1)                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core_client.py", line 121, in make_async_mp_client
(APIServer pid=1)     return AsyncMPClient(*client_args)
(APIServer pid=1)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core_client.py", line 810, in __init__
(APIServer pid=1)     super().__init__(
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/core_client.py", line 471, in __init__
(APIServer pid=1)     with launch_core_engines(vllm_config, executor_class, log_stats) as (
(APIServer pid=1)          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(APIServer pid=1)   File "/usr/lib/python3.12/contextlib.py", line 144, in __exit__
(APIServer pid=1)     next(self.gen)
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/utils.py", line 903, in launch_core_engines
(APIServer pid=1)     wait_for_engine_startup(
(APIServer pid=1)   File "/usr/local/lib/python3.12/dist-packages/vllm/v1/engine/utils.py", line 960, in wait_for_engine_startup
(APIServer pid=1)     raise RuntimeError(
(APIServer pid=1) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}
WARNING 03-09 05:48:00 [argparse_utils.py:195] With `vllm serve`, you should provide the model as a positional argument or in a config file instead of via the `--model` option. The `--model` option will be removed in v0.13.
(APIServer pid=1) INFO 03-09 05:48:00 [api_server.py:1772] vLLM API server version 0.12.0
Failing opening I2C-1 device [closed] https://askubuntu.com/questions/1564664/failing-opening-i2c-1-device

I'm running my code on a Raspberry Pi 5 (and NOT a linux expert!). I have a few devices on the I2C-1 peripheral and I can see them when I enter "sudo i2cdetect -y 1". But when I run my code (snippet below), I fail when I try to open the device. I thought maybe it was the path to /dev/i2c-1? Any insight as to what I am doing wrong?

Thanks! John

int tmp103_ReadTemp(uint8_t *temperature) { int file; uint8_t buffer[2];

    const char *i2cDev = "/dev/i2c-1";

    if ((file = open(i2cDev,O_RDWR))<0)
    {
            printf("Failed to open the bus\n\r");
            return(1);
    }

    if (ioctl(file,I2C_SLAVE,TMP103_ADDR) < 0)
    {
            printf("Failed to aquire bus\n\r");
            return(1);
    }

    // Point to the Temperature register
    buffer[0] = 0;
    write(file,buffer,1);

    read(file,buffer,1);
    // If negative, perform 2's compliment
    if (buffer[0] > 0x7f) buffer[0] -=256;

    *temperature = buffer[0];

    printf("Temp: %dC",(int8_t)buffer[0]);

    close(file);

    return(0);

}

accessing external HDs https://askubuntu.com/questions/1564662/accessing-external-hds

i had problems with my internal HD so i was using an external one to boot from. recently i decided it was time to fix the problems i had, so i formatted the internal HD and installed ubuntu on it. now i want to copy all my documents from the external HD back to the internal one. the problem is that i can't mount the external one. when i plug it in, ubuntu only shows me a 2.1 GB partition, but the one i need is 2 TB in size. is my system FUBAR? am i doing something wrong?

BTW, booting from the external HD is not an option either, because then i can't access the internal HD. i have to enter the admin password, but that doesn't do me any good. and it won't accept my user password.

how can i get my files back?

Local CUPS to remote CUPS with authentication https://askubuntu.com/questions/1564661/local-cups-to-remote-cups-with-authentication

Currently using KDE on Ubuntu 22. I have a CUPS server that's using SSSD to provide authentication from LDAP when printing. I've got a printer that I am allowed to print since I'm in the correct group. Adding that printer to a Windows machine works as a charm (I add it, a popup asks for an username and password, all good, printing works).

The issue is when adding that same printer via the KDE Printers menu. Same, add via ipp, I'm asked for an username and password but those don't seem to work. I keep getting No authentication data provided in the local cups server, I don't even see the request on the remote cups (probably would if I'd enable debug, but since this is in use, I think that's going to make life a living hell - going through a ton of print jobs from a few tens of PCs).

Also, in the local cups server I see password_cb(prompts=\"Password for <username> on <cups server>? \" [...] password=(nil) so if I get this right, it uses no password to authenticate, even though the user is correct - so the username is taken from somewhere (not the same user as the local user).

Any help would be greatly appreciated.

Thank you!

Okular snap won't start, gives error https://askubuntu.com/questions/1564653/okular-snap-wont-start-gives-error

When I try to start Okular to view PDFs, I get this error:

/snap/okular/173/usr/bin/okular: error while loading shared libraries: libPlasmaActivities.so.6: cannot open shared object file: No such file or directory

Also, I'm not sure if this is related, but when I start the Snap Store and click on "Installed" to try to view the installed applications, the page is completely blank. Nothing ever loads.

If I run

snap list

on the command line I can see all the installed applications and okular shows up.

I tried running

sudo snap refresh
sudo snap remove okular && sudo snap install okular

to fix ocular, but it still gives the error above. On the command line after running that last command I get:

okular removed (snap data snapshot saved)
okular 25.04.3 from KDE✓ installed 
Redirection vs. command line substitution in heredocs https://askubuntu.com/questions/1564626/redirection-vs-command-line-substitution-in-heredocs

Heredocs exhibit two different behaviors. With redirection the redirection occurs on the opening line. With command line substitution it happens on the line following the end marker. Consider the following example, where the redirection of output to heredoc.txt occurs on the first line of the command, before the contents of the heredoc itself:

cat <<EOL > heredoc.txt
Line 1: This is the first line of text.
Line 2: This is the second line of text.
Line 3: This is the third line of text.
EOL

Now consider the following command where the closing of the command line substitution occurs after the heredoc is closed:

tempvar=$(cat <<EOL
Line 1: This is the first line of text.
Line 2: This is the second line of text.
Line 3: This is the third line of text.
EOL
)

I don't understand the (apparent) inconsistency between the two examples. Why shouldn't the closing of the command line substitution happen on the opening line, in the same way that the redirection of the command happens on the opening line?

Errors when trying to update Ubuntu 24.04.4 https://askubuntu.com/questions/1564469/errors-when-trying-to-update-ubuntu-24-04-4

First time poster looking for help with errors while attempting to update. The system seems to be stable and running fine, however I am just experiencing problems with updates and deciphering the logs. The results appear to be the same whether using the software updater or the command line. It may be a compatibility issue between kernel versions, but I have no idea why and how to recover from this situation.

System details: Ubuntu 24.04.4 LTS, Kernel 6.14.0-37-generic running on an AMD Ryzen 7 8745HS.

Error logs:

$:/var/log/apt$ sudo apt update
Hit:1 http://gb.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu noble-updates InRelease                  
Hit:3 http://gb.archive.ubuntu.com/ubuntu noble-backports InRelease                
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease                   
Hit:5 https://repo.protonvpn.com/debian stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up-to-date.
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
$:/var/log/apt$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
* synosnap dpkg pre hook check
dumping distro info
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BIO_BI_BDEV - not present
performing configure test: HAVE_BIO_ALLOC_BIOSET_5 - not present
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BDEV_OPEN_BY_PATH - not present
performing configure test: HAVE_BDOPS_OPEN_INT - not present
performing configure test: HAVE_BDEVNAME - not present
performing configure test: HAVE_BDEV_STACK_LIMITS - not present
performing configure test: HAVE_ALLOC_DISK - not present
performing configure test: HAVE_BD_HAS_SUBMIT_BIO - not present
performing configure test: HAVE_BIO_BI_BDEV_BD_DISK - not present
performing configure test: HAVE_BD_SUPER - not present
performing configure test: HAVE_BDOPS_OPEN_GENDISK - not present
performing configure test: HAVE_BIO_ALLOC_2 - not present
performing configure test: HAVE_BIO_BI_OPF - not present
performing configure test: HAVE_BDOPS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present
performing configure test: HAVE_BIO_BI_POOL - not present
performing configure test: HAVE_BIO_ENDIO_1 - not present
performing configure test: HAVE_BIO_BLKG - not present
performing configure test: HAVE_BIO_FREE_PAGES - not present
performing configure test: HAVE_BIO_LIST - not present
performing configure test: HAVE_BIO_REMAPPED - not present
performing configure test: HAVE_BIO_FOR_EACH_SEGMENT_ALL_2 - not present
performing configure test: HAVE_BIO_BI_REMAINING - not present
performing configure test: HAVE_BIOSET_INIT - not present
performing configure test: HAVE_BIOSET_NEED_BVECS_FLAG - not present
performing configure test: HAVE_BIO_ENDIO_INT - not present
performing configure test: HAVE_BIO_COPY_DEV - not present
performing configure test: HAVE_BIO_FOR_EACH_SEGMENT_ALL_1 - not present
performing configure test: HAVE_BIO_SET_DEV - not present
performing configure test: HAVE_BIO_SET_OP_ATTRS - not present
performing configure test: HAVE_BIOSET_CREATE_3 - not present
performing configure test: HAVE_BLK_ALLOC_DISK - not present
performing configure test: HAVE_BIO_THROTTLED - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_1 - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_MK_REQ_FN_NODE_ID - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_2 - not present
performing configure test: HAVE_BLKDEV_GET_BY_PATH - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_RH_2 - not present
performing configure test: HAVE_BLKDEV_GET_BY_PATH_4 - not present
performing configure test: HAVE_BLK_CLEANUP_QUEUE - not present
performing configure test: HAVE_BLK_MQ_MAKE_REQUEST - not present
performing configure test: HAVE_BLK_MQ_SUBMIT_BIO - not present
performing configure test: HAVE_BVEC_ITER_ALL - not present
performing configure test: HAVE_BLKDEV_PUT_1 - not present
performing configure test: HAVE_BLKDEV_PUT_HOLDER - not present
performing configure test: HAVE_BLK_STATUS_T - not present
performing configure test: HAVE_BLK_SET_STACKING_LIMITS - not present
performing configure test: HAVE_BVEC_ITER - not present
performing configure test: HAVE___DENTRY_PATH - not present
performing configure test: HAVE_COMPOUND_HEAD - not present
performing configure test: HAVE_BVEC_MERGE_DATA - not present
performing configure test: HAVE_DENTRY_PATH_RAW - not present
performing configure test: HAVE_ENUM_REQ_OPF - not present
performing configure test: HAVE_FMODE_T - not present
performing configure test: HAVE_D_UNLINKED - not present
performing configure test: HAVE_ENUM_REQ_OP - not present
performing configure test: HAVE_FILE_INODE - not present
performing configure test: HAVE_FTRACE_REGS - not present
performing configure test: HAVE_FREEZE_SB - not present
performing configure test: HAVE_GD_OWNS_QUEUE - not present
performing configure test: HAVE_GENHD_FL_NO_PART_SCAN - not present
performing configure test: HAVE_GENHD_FL_NO_PART - not present
performing configure test: HAVE_FOPS_FALLOCATE - not present
performing configure test: HAVE_IOPS_FALLOCATE - not present
performing configure test: HAVE_INODE_LOCK - not present
performing configure test: HAVE_HD_STRUCT - not present
performing configure test: HAVE_GET_SUPER - not present
performing configure test: HAVE_KERNEL_READ_PPOS - not present
performing configure test: HAVE_MAKE_REQUEST_FN_IN_QUEUE - not present
performing configure test: HAVE_KERNEL_WRITE_PPOS - not present
performing configure test: HAVE_KERN_PATH - not present
performing configure test: HAVE_MERGE_BVEC_FN - not present
performing configure test: HAVE_MAKE_REQUEST_FN_INT - not present
performing configure test: HAVE_MNT_IDMAP_ARGS - not present
performing configure test: HAVE_MAKE_REQUEST_FN_VOID - not present
performing configure test: HAVE_NONVOID_ADD_DISK - not present
performing configure test: HAVE_NOOP_LLSEEK - not present
performing configure test: HAVE_NONVOID_SUBMIT_BIO_1 - not present
performing configure test: HAVE_MNT_WANT_WRITE - not present
performing configure test: HAVE_PATH_PUT - not present
performing configure test: HAVE_PROC_CREATE - not present
performing configure test: HAVE_NOTIFY_CHANGE_2 - not present
performing configure test: HAVE_SB_START_WRITE - not present
performing configure test: HAVE_PROC_OPS - not present
performing configure test: HAVE_PART_NR_SECTS_READ - not present
performing configure test: HAVE_STRSCPY - not present
performing configure test: HAVE_SUBMIT_BIO_WAIT - not present
performing configure test: HAVE_SUBMIT_BIO_1 - not present
performing configure test: HAVE_SYS_OLDUMOUNT - not present
performing configure test: HAVE_THAW_BDEV_INT - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_CB_HEAD - not present
performing configure test: HAVE_STRUCT_PATH - not present
performing configure test: HAVE_USER_NAMESPACE_ARGS - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_HLIST - not present
performing configure test: HAVE_UAPI_MOUNT_H - not present
performing configure test: HAVE_VFS_FALLOCATE - not present
performing configure test: HAVE_UUID_H - not present
performing configure test: HAVE_USER_PATH_AT - not present
performing configure test: HAVE_VZALLOC - not present
performing configure test: HAVE_VFS_UNLINK_2 - not present
performing configure test: HAVE_WRITE_ZEROES - not present
performing configure test: HAVE_WITHIN_MODULE - not present
performing sys_mount lookup
performing sys_umount lookup
performing sys_oldumount lookup
performing sys_call_table lookup
performing blk_mq_submit_bio lookup
performing blk_alloc_queue lookup
performing kfree lookup
performing printk lookup
performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.17.0-14-generic (--configure):
 installed linux-headers-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
Setting up linux-headers-6.8.0-101-generic (6.8.0-101.101) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-101-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
* System map at /boot/System.map-6.8.0-101-generic does not contain valid symbol table, and 
* we are trying to install synosnap driver for a differnt kernel than the one currently running.
* Synosnap driver will encounter error during installation.
* We will try to install/build driver when next booting into new kernel.
* After rebooting into the new kernel, if the backup process still fails,
* please uninstall and reinstall Active Backup for Business Linux Agent.

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.8.0-101-generic -C /lib/modules/6.8.0-101-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.8.0-101-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.8.0-101-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
dkms autoinstall on 6.8.0-101-generic/x86_64 succeeded for virtualbox
dkms autoinstall on 6.8.0-101-generic/x86_64 failed for synosnap(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-101-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.8.0-101-generic (--configure):
 installed linux-headers-6.8.0-101-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however:
  Package linux-headers-6.17.0-14-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            No apport report written because MaxReports has already been reached
                                                                                                                                                                                dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.8.0-101-generic; however:
  Package linux-headers-6.8.0-101-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.17.0-14.14~24.04.1); however:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    Processing triggers for linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BDOPS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present
performing configure test: HAVE_BIO_BI_BDEV - not present
performing configure test: HAVE_BDEV_STACK_LIMITS - not present
performing configure test: HAVE_BIO_BI_OPF - not present
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BD_HAS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_GENDISK - not present

{some items removed here to get within body character limit}

performing configure test: HAVE_WRITE_ZEROES - not present
performing sys_mount lookup
performing sys_umount lookup
performing sys_oldumount lookup
performing sys_call_table lookup
performing blk_mq_submit_bio lookup
performing blk_alloc_queue lookup
performing kfree lookup
performing printk lookup
performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.17.0-14-generic (--configure):
 installed linux-image-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports has already been reached
                                                                    Errors were encountered while processing:
 linux-headers-6.17.0-14-generic
 linux-headers-6.8.0-101-generic
 linux-headers-generic-hwe-24.04
 linux-headers-generic
 linux-generic-hwe-24.04
 linux-image-6.17.0-14-generic
* synosnap dpkg post hook check
dumping distro info
compare distro info
check for file trigger
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)

Update - I have tried to remove the Synology synosnap package but this fails with similar errors:

$ sudo apt-get purge --auto-remove synosnap
[sudo] password for steve: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED
  synosnap*
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
5 not fully installed or removed.
After this operation, 1,292 MB disk space will be freed.
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Do you want to continue? [Y/n] y
* synosnap dpkg pre hook check
dumping distro info
(Reading database ... 265747 files and directories currently installed.)
Removing synosnap (0.11.7) ...
removed '/usr/share/initramfs-tools/hooks/synosnap'
removed '/usr/share/initramfs-tools/scripts/init-premount/synosnap'
Found synosnap installed by dkms in the following kernel versions: 6.14.0-37-generic 6.17.0-14-generic 6.8.0-101-generic
Start updating initrd and try to remove backup initrd for these kernel versions...
Configuring update-initramfs for 6.14.0-37-generic, please wait...
update-initramfs: Generating /boot/initrd.img-6.14.0-37-generic
Removing old backup initrd /boot/initrd.img-6.14.0-37-generic.old-syno
removed '/boot/initrd.img-6.14.0-37-generic.old-syno'
Module synosnap-0.11.7 for kernel 6.8.0-101-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.8.0-101-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Module synosnap-0.11.7 for kernel 6.14.0-37-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Module synosnap-0.11.7 for kernel 6.17.0-14-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.17.0-14-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Deleting module synosnap-0.11.7 completely from the DKMS tree.
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present

{some items removed here to get within body character limit}

performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.17.0-14-generic (--configure):
 installed linux-headers-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however:
  Package linux-headers-6.17.0-14-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.17.0-14.14~24.04.1); however:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                Errors were encountered while processing:
 linux-headers-6.17.0-14-generic
 linux-headers-generic-hwe-24.04
 linux-generic-hwe-24.04
sh: 1: /opt/synosnap/hooks/dpkg-post-hook.sh: not found
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Problem executing scripts DPkg::Post-Invoke '/opt/synosnap/hooks/dpkg-post-hook.sh'
E: Sub-process returned an error code

Further update on steps to fix:
sudo dpkg --purge --force-all linux-image-6.17.0-14-geneic linux-headers-6.17.0-14-generic
sudo apt remove linux-image-generic-hwe-24.04 linux-headers-generic-hwe-24.04 linux-generic-hwe-24.04
sudo apt --fix-broken install
sudo apt autoremove
sudo apt install linux-image-generic linux-headers-generic
sudo update-grub
reboot
Unable to ping IP of device connected by Ethernet on Ubuntu 20.04 https://askubuntu.com/questions/1403812/unable-to-ping-ip-of-device-connected-by-ethernet-on-ubuntu-20-04

Problem

From these screenshots below, I believe that I have successfully configured my Ethernet adapter.

Using lshw to showcase the established interfaces:

Using lshw to showcase the established interfaces

Using ifconfig to show the configuration of the network interfaces:

Using ifconfig to show the configuration of the network interfaces

After configuring my Ethernet adapter, I connected local device to my desktop and attempted to ping it to test whether there is a successful connection. Below is the result of that ping:

Result of pinging 4 packets to device IP address

Initially, there was some weirdness surrounding whether the interface was able to detect a connection.

Showing that I set my Ethernet IPv4 settings to manual instead of automatic DHCP:

Showing that I set my Ethernet IPv4 settings to manual instead of automatic DHCP

When this was set to Automatic (DHCP), the Wired part of the settings would fail to connect with Ethernet. As a result, I manually configured my address, netmask, and gateway, as you can see through the previous screenshot. After this, the settings menu began to show that I was connected to some device via Ethernet, as shown here:

Showing that the UI says that the Ethernet is connected

Therefore, my problem is that I should be able to ping the device that is directly connected, but I am unable to. I hooked up the device to another desktop via Ethernet and saw successful pings, so I wanted to know why the pings were failing for a device directly connected to the desktop in question.

What I've Tried

  • I have done power cycling on both the device and my desktop, and I have checked for loose connections

  • I have looked into the potential of ACLs, rate limiters, and other such firewalls, blocking the receipt of packets. I am very new to network security, so I might have missed something, but I do not believe that this is the issue, since nothing really showed up.

  • I have tried directly adding the IP I'm trying to ping and its host name into my route

  • On that note, I have run traceroute -I 192.168.137.11 and only the IP of my PC appeared

Possibly Useful Background

The desktop in question was newly built with a motherboard with a component that only works for kernel versions 5.15 onwards. The desktop is running Ubuntu 20.04 because I need to use a feature that is exclusive to the MoveIt version for ROS Noetic, among other things. Thus, I am currently using kernel version 5.15.31. My Ethernet interface is a Realtek RTL8125. Installing the drivers for it was a hassle because most everything I've tried through the Realtek website:

https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

and through using sudo apt-get install r8168-dkms have failed, mostly due to issues involving Linux headers. After removing several other kernel versions, removing and reinstalling other packages, what eventually allowed me to interact with the Ethernet interface (I think) was by running:

sudo apt install realtek-r8125-dkms

I believe the successful installation of this package, as well as the earlier screenshots, indicates that the driver has been installed, but I don't really know if this is true, and I have no idea if the kernel version that I am using is interfering at all with the networking.

Kubuntu randomly freezes on a new laptop after a few hours of use https://askubuntu.com/questions/1353217/kubuntu-randomly-freezes-on-a-new-laptop-after-a-few-hours-of-use

I have a Lenovo IdeaPad 14 G3 (AMD Ryzen 7 5700U, 16GB RAM), which is only a week old. It came with one 512GB NVMe SSD and Windows installed on it. I installed a second 500GB NVMe SSD and installed Kubuntu on that drive to have a dual boot system.

Everything seemed to be working fine, but after a few hours of use the laptop randomly crashes in a weird way. First it starts behaving weird like I can't save or open files, the context menu of Dolphin or the desktop has missing entries. Then after a few seconds some Icons start to disappear and finally the screen turns black and I only see my mouse cursor. I then have to hold down the power button until the laptop shuts off and restart it, after which everything works fine until the next freeze in a few hours.

While it was slowly freezing I saw that Dolphin only showed my first SSD with Windows on it, but not the second with Linux on it. Maybe the second SSD is randomly disconnecting?

It happened both on battery and while plugged in, I also disabled secure boot in the UEFI, but the error persists.

The last freeze was Jul 21st at 16:32 local time, I shut it down that minute and waited with the restart until 16:34, but my syslog only has entries after the restart, it does contain some weird characters that break this post tho, so here it is as a screenshot:

Syslog
Click image to enlarge it.

This is a snapshot of syslog around that time. Sadly I have no idea how to troubleshoot this I don't know if there are any other logs that could be useful or any commands I could check my SSD with. I suspect the SSD with Kubuntu on it is randomly disconnecting and the system freezes up as it gradually tries to load stuff into RAM, but I don't know how to go about validating and fixing this theory.

free -h :

    total        used        free      shared  buff/cache   available
Mem:           13Gi       870Mi        12Gi        26Mi       582Mi        12Gi
Swap:         5,6Gi          0B       5,6Gi

vm-swapiness:

vm.swappiness = 60

grep -i FPDMA /var/log/syslog* is empty.

sudo dmidecode -s bios-version

GQCN20WW(V1.06)

grep -i sda /var/log/syslog* also empty.

grep -i sdb /var/log/syslog* :

Jul 15 23:38:33 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 15 23:38:33 rouben-ThinkBook-14-G3-ACL smartd[986]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 15 23:38:33 rouben-ThinkBook-14-G3-ACL smartd[986]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL smartd[812]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL smartd[812]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL smartd[812]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 15 23:49:26 rouben-ThinkBook-14-G3-ACL PackageKit: in /7_acbedbed for update-packages package samba-dsdb-modules;2:4.13.3+dfsg-1ubuntu2.1;amd64;ubuntu-hirsute-updates-main was updating for uid 0
Jul 15 23:51:03 rouben-ThinkBook-14-G3-ACL PackageKit: in /8_abdabedc for update-packages package samba-dsdb-modules;2:4.13.3+dfsg-1ubuntu2.1;amd64;ubuntu-hirsute-updates-main was installing for uid 0
Jul 15 23:51:03 rouben-ThinkBook-14-G3-ACL PackageKit: in /8_abdabedc for update-packages package samba-dsdb-modules;2:4.13.3+dfsg-1ubuntu2.1;amd64;ubuntu-hirsute-updates-main was installing for uid 0
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL smartd[800]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL smartd[800]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL smartd[800]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL smartd[766]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL smartd[766]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL smartd[766]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL smartd[752]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL smartd[752]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL smartd[752]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL smartd[758]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL smartd[758]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL smartd[758]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL smartd[756]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL smartd[756]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL smartd[756]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL smartd[750]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL smartd[750]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL smartd[750]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL smartd[761]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL smartd[761]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL smartd[761]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL smartd[760]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL smartd[760]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL smartd[760]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL smartd[776]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL smartd[776]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL smartd[776]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
grep: /var/log/syslog: binary file matches

grep -i nvme /var/log/syslog* https://paste.ubuntu.com/p/GMT4BvQ7jX/

sudo lshw -C memory:

*-firmware                
       description: BIOS
       vendor: LENOVO
       physical id: 0
       version: GQCN20WW(V1.06)
       date: 04/29/2021
       size: 128KiB
       capacity: 32MiB
       capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
  *-cache:0
       description: L1 cache
       physical id: 5
       slot: L1 - Cache
       size: 512KiB
       capacity: 512KiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: 6
       slot: L2 - Cache
       size: 4MiB
       capacity: 4MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: 7
       slot: L3 - Cache
       size: 8MiB
       capacity: 8MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3
  *-memory
       description: System Memory
       physical id: 22
       slot: System board or motherboard
       size: 16GiB
     *-bank:0
          description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0,3 ns)
          product: HMAA1GS6CJR6N-XN
          vendor: Hynix
          physical id: 0
          serial: 22964AED
          slot: DIMM 0
          size: 8GiB
          width: 64 bits
          clock: 3200MHz (0.3ns)
     *-bank:1
          description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0,3 ns)
          product: M471A1G44AB0-CWE
          vendor: Samsung
          physical id: 1
          serial: 00000000
          slot: DIMM 0
          size: 8GiB
          width: 64 bits
          clock: 3200MHz (0.3ns)
Problem With Realtek RTL8821CE 802.11 AC PCIE adapter https://askubuntu.com/questions/1330991/problem-with-realtek-rtl8821ce-802-11-ac-pcie-adapter

I am using an HP M01-F0xxx desktop with a Realtek RTL8821CE 802.11 AC PCIE adapter running Ubuntu 20.04. When I try to access the WiFi settings I get a message saying "No WiFi adapter found" in the settings menu. I go into the Additional Drivers section of the Software & Updates app as can be seen in this screenshot.

screenshot

Not sure what to do. I run lspci -v and this comes up for my wireless adapter

09:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
    Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter:
    Flags: fast devsel, IRQ 255
    I/O ports at e000 [disabled] [size=256]
    Memory at fcc00000 (64-bit, non-prefetchable) [disabled] [size=64K]
    Capabilities: <access denied>

I've tried disabling secure boot and rebooting my PC but this did nothing. Anyone have any ideas? I ran commands sudo dkms status, sudo dmesg | grep -i rtl and rfkill list all and these are the results:

username@username-HP-Desktop-M01-F0xxx:~$ sudo dkms status
[sudo] password for username: 
rtl8821ce, 5.5.2.1: added
username@username-HP-Desktop-M01-F0xxx:~$ sudo dmesg | grep -i rtl
[    1.678357] r8169 0000:0a:00.0 eth0: RTL8168h/8111h, 00:68:eb:9a:54:d1, XID 541, IRQ 47
[    5.211204] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[    5.214487] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    5.214490] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[    5.216227] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[    5.216474] Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990
[    6.307374] Bluetooth: hci0: RTL: fw version 0x829a7644
username@username-HP-Desktop-M01-F0xxx:~$ rfkill list all
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

I've attempted to download the drivers using the instructions on this page but I got a few error messages during the download:

username@username-HP-Desktop-M01-F0xxx:~$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease                                                  
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]                                  
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                                                                                                                                      
Reading package lists... Done                                                                                                                                                                                     
E: Release file for http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease is not valid yet (invalid for another 2h 15min 31s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease is not valid yet (invalid for another 2h 45min 19s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease is not valid yet (invalid for another 2h 16min 17s). Updates for this repository will not be applied.
username@username-HP-Desktop-M01-F0xxx:~$ sudo apt-get install rtl8821ce-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
rtl8821ce-dkms is already the newest version (5.5.2.1-0ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu3) ...
Removing old rtl8821ce-5.5.2.1 DKMS files...

------------------------------
Deleting module version: 5.5.2.1
completely from the DKMS tree.
------------------------------
Done.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.8.0-43-generic
Building initial module for 5.8.0-43-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rtl8821ce-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-43-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/5.5.2.1/build/make.log for more information.
dpkg: error processing package rtl8821ce-dkms (--configure):
 installed rtl8821ce-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 rtl8821ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
cronjob won't save after reboot https://askubuntu.com/questions/1285452/cronjob-wont-save-after-reboot

I've created a simple script that pings a server, and reboots my machine if the server doesn't respond. if it does respond, it just exits the script.

I've added the script to cron via crontab -e, specifically as follows

*/8 * * * * /root/hive/bin/pingtest

once I add it, I can see cron executing the "pingtest" every 8 minutes just as I commanded. however, once the machine reboots (for whatever reason), that specific line in crontab is gone, it doesn't presist through reboots.

I've tried editing via root, I've tried editing via sudo, but nothing persists.

what am I doing wrong?

Having trouble with "Initramfs unpacking failed: Decoding failed" solutions https://askubuntu.com/questions/1277532/having-trouble-with-initramfs-unpacking-failed-decoding-failed-solutions

I just build my first PC, turned it on for the first time, and attempting to install Linux Ubuntu 20.04.1 LTS from a bootable USB.

As many others have had the "decoding failed" problem I cannot seem to figure out how to use any of the solutions posted to fix the issue regarding my situation.

Any or some advice would be greatly appreciated as I have no idea what I am doing nor have any technical knowledge.

--

Thank You

Image of error when attempting to boot

Ubuntu prompt (I clicked enter on the first line ubuntu)

Ubuntu has no wifi even after installing Realtek rtl8821ce wifi driver https://askubuntu.com/questions/1250711/ubuntu-has-no-wifi-even-after-installing-realtek-rtl8821ce-wifi-driver

this is continued thread of https://askubuntu.com/questions/1250067/ubuntu-20-04-wifi-option-non-existant-no-gnome-no-option-in-settings?noredirect=1#comment2109374_1250067.

I followed instructions of Wi-Fi not working on Lenovo ThinkPad E570 (Realtek RTL8821CE) as suggested by response. However, there is still no Wifi connection. It stayed exactly same (I disabled securemode in the BIOS setting)

The thing about my laptop is that it doesn't even have WiFi as a Network option as demonstrated by three screenshots below. Most of others' problems relate to situation where 1) their WiFi is too weak 2) WiFi is in questions mark 3) Wifi option is not in GNOME, but at least exists in the Settings toolbar.

In my case, It's in nowhere.

Not in GNOME
Not in GNOME

Not in Settings
Not in Settings

Edited section: screenshot of rfkill list all command and lspci command

rfkill and lspci command

In addition, rfkill does not even list Network Controller but only lists Bluetooth as result (WiFi definitely worked in Windows) Has anyone seen this issue before?

How do I get GRUB menu to let me choose instead of directly booting into Windows? https://askubuntu.com/questions/1171706/how-do-i-get-grub-menu-to-let-me-choose-instead-of-directly-booting-into-windows

Laptop is Hp cs0009tu with Windows 10 and Ubuntu 16.04 dual boot, boots automatically into Windows at startup and ignores Ubuntu.

Already tried:

  • Disable Fast startup
  • Disable Secure Boot
  • Run bcdedit /deletevalue {bootmgr} path \EFI\ubuntu\grubx64.efi on Windows CMD
  • Run boot-repair with Recommended fix
  • Tried changing variables like GRUB_TIMEOUT in the file, did not work.

What else should I try? I have looked at the other questions here, and none of the fixes helped me. The mentioned question has a few fixes, but they might be possibly specific for the laptop model, I have an HP one which is difficult to do and I could not run the steps.

Ubuntu server network auto configuration failed https://askubuntu.com/questions/1169915/ubuntu-server-network-auto-configuration-failed

I am trying to install ubuntu server 18.04 inside proxmox. At the network configuration page, ubuntu complains that autoconfiguration failed and gives me the choice to continue without networking. The installation, however, completed smoothly, despite the fact that no networking is present... I still have no internet access after the installation finished, so I went on to configure a static ip. Here is my netplan yaml configuration:

network:
    version: 2
    renderer: networkd
    ethernets:
        ens18:
            dhcp4: no
            addresses: [10.0.1.101/24, ]
            gateway4: 10.0.1.1
            nameservers:
                addresses: [8.8.8.8, 8.8.4.4]

ip route on the vm gives:

default via 10.0.1.1 dev ens18 proto static
10.0.1.0/24 dev ens18 proto kernel scope link src 10.0.1.101

ip route on the host gives:

default via 10.0.1.1 dev vmbr0 onlink
10.0.1.0/24 dev vmbr0 proto kernel scope link src 10.0.1.100
10.0.1.0/24 dev vmbr1 proto kernel scope link src 10.0.1.101

/etc/network/interfaces on the host contains:

auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
        address  10.0.1.100
        netmask  255.255.255.0
        gateway  10.0.1.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address  10.0.1.101
        netmask  24
        bridge-ports eno2
        bridge-stp off
        bridge-fd 0

Pinging anything, including 10.0.1.1 the gateway, gives destination host unreachable. SSH gives no route to host

How to kill a GNU `screen` session programatically? https://askubuntu.com/questions/1161262/how-to-kill-a-gnu-screen-session-programatically

i need the following thing

lets say i have an attached screen "MY_Screen_name" and a running process inside that screen. I would like to kill "MY_Screen_name" and the running process inside then run another script.

is it going to be this way ?

#!/bin/sh
st_user="myuser"
chown $st_user -R

screen -S MY_Screen_name -X stuff ^C
screen -S MY_Screen_name -X stuff ^X

sleep 5

cd /path/to/myscript
./my_script.sh
WiFi driver is not found in mini PC running Ubuntu 18.04 https://askubuntu.com/questions/1156698/wifi-driver-is-not-found-in-mini-pc-running-ubuntu-18-04

I purchased mini PC yesterday with preinstalled license version Windows 10. Bluetooth, WiFi and Ethernet are working fine.

When I install Ubuntu 18.04 on my mini PC it doesn't show WiFi. The Bluetooth and Ethernet are working fine in Ubuntu, but the WiFi is not. I tried a lot to find WiFi driver, but I'm not getting WiFi.

Please suggest me a right way to install WiFi driver.

Here I attached a link of the mini PC which I used.

Mini PC Portable Windows 10 Computer Windows 10 Intel Mini PC - Alibaba.com

Results of lspci -knn:

ubuntu@ubuntu-Default-string:~$ lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register [8086:2280] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register [8086:7270]
Kernel driver in use: iosf_mbi_pci
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller [8086:22b0] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers [8086:7270]
Kernel driver in use: i915
Kernel modules: i915
00:14.0 USB controller [0c03]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller [8086:22b5] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller [8086:7270]
Kernel driver in use: xhci_hcd
00:1a.0 Encryption controller [1080]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine [8086:2298] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine [8086:7270]
Kernel driver in use: mei_txe
Kernel modules: mei_txe
00:1c.0 PCI bridge [0604]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 [8086:22c8] (rev 36)
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU [8086:229c] (rev 36)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU [8086:7270]
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 07)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:0123]
Kernel driver in use: r8169
Kernel modules: r8169
ubuntu@ubuntu-Default-string:~$ lspci -knn | grep Net -A3
ubuntu@ubuntu-Default-string:~$
Can I resize an F2FS partition? Ubuntu 17.04 https://askubuntu.com/questions/964398/can-i-resize-an-f2fs-partition-ubuntu-17-04

This is my disk layout. I want to expand /dev/sda2 to occupy all the free space

I'm running this command from a live session:

sudo resize.f2fs -t 449984510 /dev/sda2

I realize that something is missing:

resize.f2fs [ -t target sectors ] [ -d debugging-level ] device

Maybe it is:

resize.f2fs -t /dev/sda2 449984510 /dev/sda

Sorry but the manual is confusing and short

And this is the output I get:

Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 223944704 (109348 MB)
Info: MKFS version
  "Linux version 4.10.0-28-generic (buildd@lgw01-12) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017"
Info: FSCK version
  from "Linux version 4.10.0-19-generic (buildd@lcy01-13) (gcc version 6.3.0 20170321 (Ubuntu 6.3.0-10ubuntu1) ) #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017"
    to "Linux version 4.10.0-19-generic (buildd@lcy01-13) (gcc version 6.3.0 20170321 (Ubuntu 6.3.0-10ubuntu1) ) #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017"
Info: superblock features = 0 : 
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: total FS sectors = 223944704 (109348 MB)
Info: CKPT version = 1b43

enter image description here

Here's the sector info on the partitions:

sudo fdisk -l /dev/sda
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3fff99f8

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   2099199   2097152     1G 83 Linux
/dev/sda2         2099200 284313599 282214400 134.6G 83 Linux
/dev/sda4       452085760 468860927  16775168     8G 82 Linux swap / Solaris
Ubuntu 15.10 Headphones No Sound https://askubuntu.com/questions/702286/ubuntu-15-10-headphones-no-sound

I have purchased a laptop: Alienware 17 r2

Installed Ubuntu 15.10 (Kernel 4.2.0-18-generic) and am having issues with getting sound through the audio jack using headphones & external speakers.

$ inxi -Fxz
System:    Host: synapse Kernel: 4.2.0-18-generic x86_64 (64 bit gcc: 5.2.1) Desktop: Unity (Gtk 3.16.7-0ubuntu3)
           Distro: Ubuntu 15.10 wily
Machine:   System: Alienware product: Alienware 17 R2 v: A06
           Mobo: Alienware model: Alienware 17 R2 v: A00 Bios: Alienware v: A06 date: 07/24/2015
CPU:       Quad core Intel Core i7-4710HQ (-HT-MCP-) cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19986
           clock speeds: max: 3500 MHz 1: 2500 MHz 2: 2500 MHz 3: 2500 MHz 4: 2500 MHz 5: 2796 MHz 6: 3251 MHz
           7: 2500 MHz 8: 2772 MHz
Graphics:  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GM204M [GeForce GTX 970M] bus-ID: 01:00.0
           Display Server: X.Org 1.17.2 drivers: intel (unloaded: fbdev,vesa) FAILED: nouveau
           Resolution: 1920x1080@60.02hz, 1366x768@59.79hz, 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile GLX Version: 3.0 Mesa 11.0.2 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.2.0-18-generic
Network:   Card-1: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller
           driver: alx port: d000 bus-ID: 02:00.0
           IF: enp2s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter driver: ath10k_pci bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 1256.3GB (1.7% used) ID-1: /dev/sda model: ST1000LM024_HN size: 1000.2GB temp: 39C
           ID-2: /dev/sdb model: LITEONIT_L8T size: 256.1GB temp: 0C
Partition: ID-1: / size: 46G used: 5.0G (12%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 856G used: 298M (1%) fs: ext4 dev: /dev/sda3
           ID-3: swap-1 size: 17.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 61.0C mobo: 27.8C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 267 Uptime: 40 min Memory: 942.2/15933.4MB Init: systemd runlevel: 5 Gcc sys: 5.2.1
           Client: Shell (bash 4.3.421) inxi: 2.2.16 

This is the dmesg output:

$ dmesg | grep snd
[    8.828181] snd_hda_intel 0000:00:03.0: enabling device (0000 -> 0002)
[    8.828348] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    8.828369] snd_hda_intel 0000:00:1b.0: enabling device (0000 -> 0002)
[    8.848818] snd_hda_codec_ca0132 hdaudioC1D0: autoconfig for CA0132: line_outs=1 (0xb/0x0/0x0/0x0/0x0) type:speaker
[    8.848822] snd_hda_codec_ca0132 hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    8.848832] snd_hda_codec_ca0132 hdaudioC1D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    8.848834] snd_hda_codec_ca0132 hdaudioC1D0:    mono: mono_out=0x0
[    8.848834] snd_hda_codec_ca0132 hdaudioC1D0:    inputs:
[    8.848836] snd_hda_codec_ca0132 hdaudioC1D0:      Mic=0x12
[    8.848837] snd_hda_codec_ca0132 hdaudioC1D0:      Line=0x11

And lspci output:

$ lspci -v | grep -A7 -i "audio" 
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
        Subsystem: Dell Device 0688
        Flags: bus master, fast devsel, latency 0, IRQ 42
        Memory at f751c000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Kernel driver in use: snd_hda_intel
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
        Subsystem: Dell Device 0688
        Flags: bus master, fast devsel, latency 0, IRQ 41
        Memory at f7518000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel

AlsaMixer HDA Intel HDMI:

alsa-mixer_hda-intel-hdmi.png

AlsaMixer HDA Intel PCH:

alsa-mixer_hda-intel-pch.png

Output of aplay as requested by katu txakurra:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: CA0132 Analog [CA0132 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: CA0132 Digital [CA0132 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
X Server does not show built-in ThinkPad display. Distorting everything in non-mirrored multi-display setup https://askubuntu.com/questions/571532/x-server-does-not-show-built-in-thinkpad-display-distorting-everything-in-non-m

I recently returned to Ubuntu (14.10) and I'm currently trying to get my multiple monitor setup to work properly.

It worked fine after the first setup in the desired configuration: A 1600x900 built-in monitor (Thinkpad T430) besides a 1920x1200 external Monitor (Asus VK226H) which is connected by DVI or VGA or mDP.

However, after the first reboot it greeted me with 'the selected configuration for displays could not be applied' and showed me a partially overlapping and highly distorted background with weird placement of the launcher and a non-functional mouse interaction (does not click where it's shown). Switching to mirrored mode made everything functional again.

Having a look at the X Server Configuration I've noticed that only the external monitor is being represented in the layout graphics and 'Selection' dro down menu while displays shows them both. The 'the selected configuration for displays could not be applied' started to pop up almost anytime I apply something to displays or X Server, apply something to displays, reboot or reconnect the external monitor (no matter which port).

Here are 2 screenshots with driver rev 331 showing both displays and the X Server config before and after I managed to get everything visible/not overlapping after a reboot.

enter image description here
Click image to enlarge it.

enter image description here

While it was heavily distorted along the vertical dimension (and parts of the desktop off-screen) on the physical screens this is not reflected in the screenshot*

Failing horribly with lots of X Server settings, I decided to try the legacy drivers. I've purged the current drivers via this method and installed the 304 version though Software & Updates. The same thing happened. It worked after the initial setup and installation but failed again after a reboot. The built-in monitor still did not show up in X Server.

Since this didn't achieve anything I've reverted back to 331 and tried it once more with the same result. Everything looks fine to me in lshw and dpkg.

dpkg -l | grep nvidia
ii  nvidia-331                                           331.113-0ubuntu0.1                       amd64        NVIDIA binary driver - version 331.113
ii  nvidia-331-uvm                                       331.113-0ubuntu0.1                       amd64        NVIDIA Unified Memory kernel module
ii  nvidia-opencl-icd-331                                331.113-0ubuntu0.1                       amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                         0.6.7                                    amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                                      331.20-0ubuntu8                          amd64        Tool for configuring the NVIDIA graphics driver

sudo lshw -C display
   *-display               
        description: VGA compatible controller
    product: GF108M [NVS 5400M]
    vendor: NVIDIA Corporation
    physical id: 0
    bus info: pci@0000:01:00.0
    version: a1
    width: 64 bits
    clock: 33MHz
    capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
    configuration: driver=nvidia latency=0
    resources: irq:48 memory:f0000000-f0ffffff memory:c0000000-cfffffff memory:d000
0000-d1ffffff ioport:4000(size=128) memory:f1000000-f107ffff

At this point I have no Idea what to do since it's obviously a problem with the placement of my screens on the virtual screen but it doesn't show all of them in the configuration menu. How do I get it to show up so that I can configure everything properly?

CodeBlock c++ problem: Procces returned 126 (0x7E) https://askubuntu.com/questions/428276/codeblock-c-problem-procces-returned-126-0x7e

I'm having a problem with CodeBlocks.

I can't run any C++ code and every time i try, I get the following error in terminal

Process returned 126 (0x7E)`

I googled it and found this link: http://www.thestudentroom.co.uk/showthread.php?t=1737736

sudo nano /etc/fstab
  • find the line which says NTFS somewhere on it.
  • find the part of this line which says "user"- it's under the header
  • change "user" to "user,exec"- remove any "noexec"s
  • Ctrl-X and save when asked

But when i followed the first steps, fstab didn't appear so I can't follow the next steps required to fix the problem.

How can I fix this problem in a simplest way? How should i open fstab that is required?

Screenshots:
http://s822.photobucket.com/user/mukunda13/media/fstab_zps0fe91c4e.png.html

SSH connections keep dropping https://askubuntu.com/questions/352402/ssh-connections-keep-dropping

I have a server running Ubuntu server 12.0.4 with Openssh-server installed. I can connect to the server for about 30 minutes and then the connection drops. When I try to reconnect I get The remote system refused the connection..

I have used ps -A | grep ssh to verify that the the sshd is running, and I can ssh back to 127.0.0.1 and stay connected indefinitely.

I have also tried adding ClientAliveInterval 60 in /etc/ssh/sshd_config which made no difference.

Printing does not work on a Sharp MX 2310U https://askubuntu.com/questions/237791/printing-does-not-work-on-a-sharp-mx-2310u

Help please with a little printer probem.

I am using a Sharp-MX-2310U printer on the network with Ubuntu 12.10. Followed all the normal setup and looking at cups localhost:631/printers/ I see the printer but no print jobs are printed and /var/spool/cups just keeps on filling with unfinished jobs.

The printer properties display the ink status etc so I do have connection to the printer but localhost:631/printers/ shows:

SHARP-MX-2310U SHARP MX-2310U Office Sharp MX-2300N Foomatic/pxlcolor (recommended) Idle - "Waiting for printer to finish."

Looking in localhost:631/admin/log/error_log I get a number of errors but nothing that is obvious.

    E [08/Jan/2013:10:31:26 +0000] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
    E [08/Jan/2013:10:31:26 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
    E [08/Jan/2013:11:22:41 +0000] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
    E [08/Jan/2013:15:51:29 +0000] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
    E [08/Jan/2013:15:52:43 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
    W [08/Jan/2013:15:53:22 +0000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_SHARP_MX_2310U
    W [08/Jan/2013:15:53:22 +0000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_SHARP_MX_2310U
    W [08/Jan/2013:15:54:04 +0000] [Job 1] The printer is unreachable at this time.
    W [08/Jan/2013:15:54:27 +0000] [Job 1] The printer is unreachable at this time.
    W [08/Jan/2013:15:54:40 +0000] [Job 1] The printer is unreachable at this time.
    E [08/Jan/2013:15:54:55 +0000] [Job 1] The printer is not responding.
    E [08/Jan/2013:16:08:22 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
    E [08/Jan/2013:16:09:40 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
    E [08/Jan/2013:16:11:33 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
    E [08/Jan/2013:16:13:38 +0000] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
    E [08/Jan/2013:16:14:21 +0000] [cups-driverd] Bad driver information file "/usr/share/cups/drv/cupsfilters.drv"!
    W [08/Jan/2013:16:14:45 +0000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_SHARP_MX_2310U
    W [08/Jan/2013:16:14:45 +0000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_SHARP_MX_2310U
    E [08/Jan/2013:16:28:03 +0000] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
    W [08/Jan/2013:16:28:04 +0000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_SHARP_MX_2310U
    W [08/Jan/2013:16:28:04 +0000] AddProfile failed: org.freedesktop.DBus.Error.UnknownMethod:No such interface `org.freedesktop.ColorManager' on object at path /org/freedesktop/ColorManager/devices/cups_SHARP_MX_2310U
How to make a file (e.g. a .sh script) executable, so it can be run from a terminal https://askubuntu.com/questions/229589/how-to-make-a-file-e-g-a-sh-script-executable-so-it-can-be-run-from-a-termi

I have a script.sh file and type of this file is shellscript file. I want to make this file as application/x-executable file. How can I make it?