No wifi/no wifi option after updating to ubuntu 26.04 LTS https://askubuntu.com/questions/1567446/no-wifi-no-wifi-option-after-updating-to-ubuntu-26-04-lts

Directly after updating, I couldn't connect to any wifi and when I go to wifi in settings I'm met with the error "no wifi adapter found", I tried restarting, but nothing really worked. How can I fix this?

How to downgrade gcc 9.4 to gcc 9.3 https://askubuntu.com/questions/1567445/how-to-downgrade-gcc-9-4-to-gcc-9-3

Canonical types cause problems with updating a program. How do I downgrade to a version used before?

Jørgen

USB-C display hot-plug causes 100% fan spin and system lag https://askubuntu.com/questions/1567444/usb-c-display-hot-plug-causes-100-fan-spin-and-system-lag

I am using Ubuntu 26.04 on my ASUS Zenbook 14 laptop, which I connect to two external monitors via USB-C. Almost every other time I connect the monitors or disconnect the cable, the laptop fan starts spinning at 100%. The system then slows down to the point of being unusable, and the fan doesn’t stop until I shut down the system. There are no processes causing a high load, and the temperature of all CPU cores is around 55°C. These issues started with Ubuntu 25.04 and have persisted ever since.

Could you please help me at least narrow down the problem? Since the issue is easy to reproduce, I could also provide detailed logs while the problem is occurring. Just let me know which output you would like to see.

Kubuntu 26.04 X11 black screen with wire mouse pointer and no session, just back to login screen https://askubuntu.com/questions/1567443/kubuntu-26-04-x11-black-screen-with-wire-mouse-pointer-and-no-session-just-back

After upgrading from 25.10 to 26.04, whenever I try to login to x11 with 26.04 I just get a black screen with a wire mouse pointer which hangs for a couple of minutes then it returns to the login screen.

I have tried everything to get it working even reinstalling the whole desktop with

sudo apt --purge autoremove kubuntu-desktop plasma-workspace plasma-session-x11 plasma-session-wayland
sudo apt install kubuntu-desktop plasma-workspace plasma-session-x11 plasma-session-wayland -y

But nothing is helping and when I come back from X11 to wayland all my panels (which are broken anyway, another issue) are gone, so I have to reboot the system to get wayland back to it's current state.

EDIT: I have also tried adding a new test user to see if the issues are local to my login or system wide and the same thing happens to the test user, so it seems to be a system wide issue.

I need to get back to x11 to test some issues I'm having with wayland.

Also certain tools like lact just simply do not work with wayland, i.e. it cannot open a window and I do not pretend to understand why so please don't interrogate me over that.

Obviously all my drivers are up to date, etc.

Operating System: Kubuntu 26.04 LTS
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 7.0.0-22-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 64 GiB of RAM (60.2 GiB usable)
Graphics Processor 1: AMD Radeon RX 9070 XT
Graphics Processor 2: AMD Ryzen 7 9800X3D 8-Core Processor
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7E84
System Version: 1.0
ExpressVPN installation on 24.04 https://askubuntu.com/questions/1567442/expressvpn-installation-on-24-04

I recently installed a new version of ExpressVPN to 24.04.1 LTS. I followed their instructions and it installed and is running. However when I open the CLI and enter 'expressvpn' It tells me it doesn't know it. If I do the same as sudo, it still produces nothing." Which" gives a null response. What is going on?

Preselect my user on login screen https://askubuntu.com/questions/1567440/preselect-my-user-on-login-screen

On my previous Ubuntu install (22.04) I was the only user on the machine and my user was preselected on login screen. I only had to type my password when turning on my laptop.

Now I have a new machine and Ubuntu 24.04, but the IT department added a service account. Now the login screen is asking me to type my username and then my password.

Because of old habits, I sometimes immediately type my password in the username input-text, displaying it plain for my colleague to see !

Is there a way to either preselect my user on the login screen (so that the password input is displayed immediately) or display a clickable user list instead of a input text for the username ?

Note: I've tried to customize the login screen with gdm-settings but the user list option did not change anything.

Lost browser bookmarks and passwords after an update and install Firefox was reset https://askubuntu.com/questions/1567436/lost-browser-bookmarks-and-passwords-after-an-update-and-install-firefox-was-res

I am using:

   OS: 24.04
   Gnome: version 46
   Firmware: 1.49.0
   Linux kernel: 6.17.035

I have my laptop set to automatically update and then a manual request permission to install/update. I did this yesterday and after the reset my Firefox browser had changed with all my many bookmarks missing along with the passwords.

I have searched online for the answer and tried a few suggestions, but I have got lost along the way. Where can I find my bookmarks with the saved passwords? They must be stored on my laptop somewhere. I didn't have a restore point saved as I was unaware that it was not a built-in feature in Ubuntu.

After installing Solaar and adding the udev rule, my mouse still isn't showing up. Is there something more I need to do? https://askubuntu.com/questions/1567434/after-installing-solaar-and-adding-the-udev-rule-my-mouse-still-isnt-showing-u

I'm on a Framework 16 laptop running Ubuntu 24.04.4 LTS.

I recently installed the Flatpak version of Solaar (v 1.1.19) from the Software Center, and, as per the software's documentation and the reviews, downloaded the rules file from the GitHub and copied it, as root, over to /etc/udev/rules.d. Specifically, I downloaded the file 42-logitech-unify-permissions.rules from the rules.d folder on the GitHub.

However, after doing that, my mouse (the only connected Logitech device) isn't showing up. It's a USB mouse, so it's not an issue with Bluetooth. The mouse still works as a mouse, but some of its functions aren't available, which is I'm trying to use Solaar. I have a Logitech G502 Hero mouse.

I've tried:

  • Unplugging the mouse and plugging it back in with Solaar running

  • Unplugging the mouse, closing Solaar, opening it again, and plugging the mouse back in

  • Unplugging the mouse, restarting the computer, opening Solaar, then plugging the mouse back in

I'm hesitant to try the PPA version or the PyPI version as I don't entirely understand what those are, and, from what I do understand, the PPA version gets updates sooner and so may be more unstable. Others seem to have gotten the Flatpak version to work as long as they add the udev rule, so I'm not sure what is different about my situation.

Does anyone have any idea what I need to do to get my mouse to show up in Solaar, or other troubleshooting I can do to provide more information?

How to fix grub-efi, grub-efi-amd64, and grub-efi-amd64-signed errors? Xubuntu | Ubuntu version 26.04 [duplicate] https://askubuntu.com/questions/1567431/how-to-fix-grub-efi-grub-efi-amd64-and-grub-efi-amd64-signed-errors-xubuntu

I am a new linux user, so I am not too familiar with the mechanics of everything yet. I recently ran an update for xubuntu after receiving a notification for an available update which received several errors during the update and received an update failed notice. After this, I started receiving many bug report popups which in trying to look for solutions for, I noticed some errors in the terminal. I have tried many solutions such as updating and upgrading, reinstalling the desktop environment sudo apt-get -f install and sudo apt --fix-broken install, as well as sudo apt-get purge grub\*, sudo apt-get install grub-efi, sudo apt-get autoremove, sudo update-grub So far nothing has worked:

dpkg: error processing package grub-efi-amd64 (--configure):
 old grub-efi-amd64 package postinst maintainer script subprocess failed with exit status 128
dpkg: dependency problems prevent configuration of grub-efi:
 grub-efi depends on grub-efi-amd64; however:
  Package grub-efi-amd64 is not configured yet.

dpkg: error processing package grub-efi (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-efi-amd64-signed:
 grub-efi-amd64-signed depends on grub-efi-amd64 | grub-pc; however:
  Package grub-efi-amd64 is not configured yet.
  Package grub-pc is not installed.

dpkg: error processing package grub-efi-amd64-signed (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Errors were encountered while processing:
 grub-efi-amd64
 grub-efi
 grub-efi-amd64-signed
Error: Sub-process /usr/bin/dpkg returned an error code (1)
How do I get the `usg` (Ubuntu Security Guide) tooling in Ubuntu 26.04? https://askubuntu.com/questions/1567430/how-do-i-get-the-usg-ubuntu-security-guide-tooling-in-ubuntu-26-04

I ran USG under earlier version of Ubuntu but it does not appear to be available on 26.04. Is there a replacement? I see there is a compliance section on the security center but there is a big splash screen that says it is only recommended for certain hardneing requirements and everything is greyed out.

After a purge of nvidia drivers with an --autoremove, I've lost all mouse capability https://askubuntu.com/questions/1567428/after-a-purge-of-nvidia-drivers-with-an-autoremove-ive-lost-all-mouse-capabi

I struggled with a "black screen" boot on a computer using Ubuntu 24.04.3 LTS. I knew this was caused by a bad install of an nVidia driver. The details for anyone interested, are here. As this topic raises a different issue, I post it separately, not wishing my previous issue to "sprawl".

I could only solve this by installing another version in a small partition. This allowed me to see a grub menu from which I could do a temporary text-only boot. Here I issued the command

sudo apt-get purge --autoremove nvidia-*

which allowed me a normal boot back into my 24.04.3 system.

I should have left out that @#$% --autoremove

Now I find that I have no mouse or bluetooth capability. Even after reinstalling the nvidia driver, I had no mouse. Something was removed in the --autoremove that was necessary. Trying to figure out what that might be. I suppose I could look at logs and try to see what was removed. But what the heck am I looking for?

Computer is a Lenovo Thinkpad P16 with a nVidia RTX500 GPU.

AMD GPU crashes system under specific conditions https://askubuntu.com/questions/1567427/amd-gpu-crashes-system-under-specific-conditions

My AMD RX 580 2048sp (a card that was previously used in a windows machine without flaws) has a few quirks in my Kubuntu 26.04 LTS machine.

Firstly, it over heats easily, which was addressed but not fixed by having better coolers, slightly limiting power usage and having fan speed configured to spin fast at the slightest heat.

Secondly, the main problem: sometimes, under specific environments and conditions, the system crashes. Image will turn into one solid shade, audio will glitch and the system won't work until rebooting. I have no idea what causes this, as it isn't related to temperature or heavy proceeding loads, as it can run graphically demanding games for hours. My guess is that there is one specific visual FX that the GPU can't process and then crashes. My reasoning is founded in 2 examples; in an emulator I have, most shaders run fine, but some crash consistently; and in one game the system crashes in the same exact spot but never anywhere else.

I have tried installing the amdgpu drivers, but that has done nothing and updating the system over months hasn't done anything, and unsinstalling said amdgpu packages has also made no difference. One thing that is important to not is that the prior GPU in this same distro didn't crash.

Edit: I have tried replicating the crash by installing a game that consistently crashes at the same spot. It crashes, I marked the time it did, waited 10 minutes (to make sure the logs are readable as being form different times), and this is the syslog from when the game opened and when it crashed:

2026-06-02T17:21:27.431856-03:00 EmperorPenguin steam[10260]: [2026-06-02 17:21:27] Saving metrics to disk (/home/cdanlb/.steam/debian-installation/package/steam_client_metrics.bin)
2026-06-02T17:22:59.562805-03:00 EmperorPenguin steam[10260]: [2026-06-02 17:22:59] uninstalled manifest found in /home/cdanlb/.steam/debian-installation/package/steam_client_ubuntu12 (1).
2026-06-02T17:23:56.417529-03:00 EmperorPenguin steam[10260]: chdir "/home/cdanlb/.steam/debian-installation/steamapps/common/Ardenfall Demo"
2026-06-02T17:23:56.425315-03:00 EmperorPenguin steam[10260]: ERROR: ld.so: object '/home/cdanlb/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
2026-06-02T17:23:56.446436-03:00 EmperorPenguin steam[10260]: ERROR: ld.so: object '/home/cdanlb/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
2026-06-02T17:23:56.460727-03:00 EmperorPenguin steam[10260]: Game Recording - would start recording game 1837770, but recording for this game is disabled
2026-06-02T17:23:56.461357-03:00 EmperorPenguin steam[10260]: Adding process 12471 for gameID 1837770
2026-06-02T17:23:56.464043-03:00 EmperorPenguin steam[10260]: ERROR: ld.so: object '/home/cdanlb/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
2026-06-02T17:23:56.470215-03:00 EmperorPenguin steam[10260]: ERROR: ld.so: object '/home/cdanlb/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
2026-06-02T17:23:56.486306-03:00 EmperorPenguin steam[10260]: ERROR: ld.so: object '/home/cdanlb/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
2026-06-02T17:23:56.527906-03:00 EmperorPenguin steam[10260]: Adding process 12472 for gameID 1837770
2026-06-02T17:23:56.580033-03:00 EmperorPenguin steam[10260]: Adding process 12473 for gameID 1837770
2026-06-02T17:23:56.601262-03:00 EmperorPenguin steam[10260]: Adding process 12474 for gameID 1837770
2026-06-02T17:23:57.496060-03:00 EmperorPenguin steam[10260]: Adding process 12563 for gameID 1837770
2026-06-02T17:23:58.721421-03:00 EmperorPenguin steam[10260]: ProtonFixes[12563] INFO: Running protonfixes on "GE-Proton10-26", build at 2025-12-07 22:33:15+00:00.
2026-06-02T17:23:58.721502-03:00 EmperorPenguin steam[10260]: ProtonFixes[12563] INFO: Running checks
2026-06-02T17:23:58.721553-03:00 EmperorPenguin steam[10260]: ProtonFixes[12563] INFO: All checks successful
2026-06-02T17:23:58.723375-03:00 EmperorPenguin steam[10260]: ProtonFixes[12563] INFO: Using global defaults for "Ardenfall Demo" (1837770)
2026-06-02T17:23:58.723503-03:00 EmperorPenguin steam[10260]: ProtonFixes[12563] INFO: No global protonfix found for "Ardenfall Demo" (1837770)
2026-06-02T17:23:58.788766-03:00 EmperorPenguin steam[10260]: fsync: up and running.
2026-06-02T17:23:58.805139-03:00 EmperorPenguin steam[10260]: Adding process 12564 for gameID 1837770
2026-06-02T17:23:58.805706-03:00 EmperorPenguin steam[10260]: Adding process 12565 for gameID 1837770
2026-06-02T17:23:58.856666-03:00 EmperorPenguin steam[10260]: Adding process 12566 for gameID 1837770
2026-06-02T17:23:58.908007-03:00 EmperorPenguin steam[10260]: Adding process 12569 for gameID 1837770
2026-06-02T17:23:58.908665-03:00 EmperorPenguin steam[10260]: Adding process 12571 for gameID 1837770
2026-06-02T17:23:58.959760-03:00 EmperorPenguin steam[10260]: Adding process 12574 for gameID 1837770
2026-06-02T17:23:59.011128-03:00 EmperorPenguin steam[10260]: Adding process 12583 for gameID 1837770
2026-06-02T17:23:59.062379-03:00 EmperorPenguin steam[10260]: Adding process 12588 for gameID 1837770
2026-06-02T17:23:59.769769-03:00 EmperorPenguin steam[10260]: Adding process 12599 for gameID 1837770
2026-06-02T17:24:00.323858-03:00 EmperorPenguin steam[10260]: Adding process 12622 for gameID 1837770
2026-06-02T17:24:00.533211-03:00 EmperorPenguin steam[10260]: Adding process 12641 for gameID 1837770
2026-06-02T17:24:00.745408-03:00 EmperorPenguin steam[10260]: Adding process 12651 for gameID 1837770
2026-06-02T17:24:00.835748-03:00 EmperorPenguin steam[10260]: Fossilize INFO: Overriding serialization path: "/home/cdanlb/.steam/debian-installation/steamapps/shadercache/1837770/fozpipelinesv6/steamapprun_pipeline_cache".
2026-06-02T17:24:01.020145-03:00 EmperorPenguin kded6[1857]: Registering ":1.255/StatusNotifierItem" to system tray
2026-06-02T17:24:01.057251-03:00 EmperorPenguin kded6[1857]: Service  ":1.255" unregistered
2026-06-02T17:24:01.075966-03:00 EmperorPenguin kded6[1857]: Registering ":1.256/StatusNotifierItem" to system tray
2026-06-02T17:24:01.077626-03:00 EmperorPenguin kded6[1857]: Service  ":1.256" unregistered
2026-06-02T17:24:01.081164-03:00 EmperorPenguin kded6[1857]: Registering ":1.257/StatusNotifierItem" to system tray
2026-06-02T17:24:01.107321-03:00 EmperorPenguin kded6[1857]: Service  ":1.257" unregistered
2026-06-02T17:24:02.336885-03:00 EmperorPenguin steam[10260]: 06/02 17:24:02 minidumps folder is set to /tmp/dumps
2026-06-02T17:24:02.336961-03:00 EmperorPenguin steam[10260]: 06/02 17:24:02 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(20260527212129)/tid(12793)
2026-06-02T17:24:02.337010-03:00 EmperorPenguin steam[10260]: 06/02 17:24:02 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)/tid(12793)
Terminal stopped after -append when trying to boot a QEMU https://askubuntu.com/questions/1567426/terminal-stopped-after-append-when-trying-to-boot-a-qemu

I am new to Ubuntu, and I'm trying to boot a QEMU:

$ qemu-system-arm \
  -M vexpress-a9 \
  -cpu cortex-a9 \
  -m 512M \
  -nographic \
  -kernel ~/embedded_lab1/output/zImage \
  -dtb ~/embedded_lab1/output/vexpress-v2p-ca9.dtb \
  -initrd ~/embedded_lab1/output/initramfs.cpio.gz \
  -append "console=ttyAMA0,115200 rdinit=/init mem=512M"

My terminal stopped working after -append. I can still terminate the QEMU, but I don't know how to do this. I already have zImage (ARMv7), vexpress-v2p-ca9.dtb and initramfs.

wifi driver not really comptaible with new ubuntu upgrade (26.04) https://askubuntu.com/questions/1567423/wifi-driver-not-really-comptaible-with-new-ubuntu-upgrade-26-04

When I power on my computer, recently upgraded to Ubuntu 26.04, it randomly restarts (usually when I download a file or send an email). After looking into the journalctl (and after asking AI), it seems like my WiFi driver isn't really happy about the update

My network controller is : Intel Corporation Alder Lake-P PCH CNVi WiFi (rev 01)

Do you have another solution than downgrading to Ubuntu 24.04 ?

The last lines of the log is

Jun 02 16:51:18 architect kdump-tools[784]:  * kdump-tools: saved vmcore in /var/crash/202606021651
Jun 02 16:51:18 architect kdump-tools[927]: saved vmcore in /var/crash/202606021651

Should I send the rest of the logs (since they contain a lot of data about WiFi and network...) ?*

Thanks in advance

sudo password rejected after modifying PAM configuration https://askubuntu.com/questions/1567422/sudo-password-rejected-after-modifying-pam-configuration

I have quite a big issue.
I tried to implement some more security to my vps so I ran

sudo lynis audit system

And then implemented some fixes. I think it comes frm one of these 2 changes

# in /etc/pam.d/common-password
password   requisite   pam_pwquality.so retry=3 minlen=12 
# (to which I added the following)
maxrepeat=3 ucredit=-1 lcredit=-1 dcredit=-1 ocredit=-1 difok=4 reject_username enforce_for_root
#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the
# traditional Unix authentication mechanisms.
#
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.

auth required pam_faillock.so preauth silent deny=5 unlock_time=900  <--- new line
auth [default=die] pam_faillock.so authfail deny=5 unlock_time=900   <--- new line


# here are the per-package modules (the "Primary" block)
auth    [success=1 default=ignore]  pam_unix.so nullok
# here's the fallback if no module succeeds
auth    requisite           pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth    required            pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth    optional            pam_cap.so 
# end of pam-auth-update config

And now, when I try to type any sudo command I just get this without the possibility to type anything:

Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts

Non-DFS channel selection on a WiFi connection https://askubuntu.com/questions/1567421/non-dfs-channel-selection-on-a-wifi-connection

I'm using Ubuntu 22.04. I have a problem that I'm using Ezurio Sona IF573 wifi module, and I want to have internet connection and an AP at the same time. By looking at the datasheet I need to have both of these interfaces on the same channel. That is not an issue, and I have already done that.

The thing that I need to figure out is that I can't create the AP if I'm connected to any DFS channels, and I can't just use 2.4GHz; I need 5GHz. Is there a way that I can filter out which are the available non-DFS channels which I can connect to. I also don't want to just hard code the channels I can use.

dpkg configuration taking an infinite time [duplicate] https://askubuntu.com/questions/1567420/dpkg-configuration-taking-an-infinite-time

I tried to install texlive on my ubuntu 22.04.6 LTS by running:
sudo apt install texlive-full.

Everything was fine untill I got the message:

Running mtxrun --generate. This may take some time... done.
Pregenerating ConTeXt MarkIV format. This may take some time... 

and the installation seemed to be blocked: no progression for hours and on the system monitor app, the processor seemed to do almost nothing, as if there were no particular process running.

  1. I tried to stop the process using 'ctrl+C' but it was not responding

  2. I tried to kill the process (with the kill command), and it worked, but when I tried to use apt install again, I got the message

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
  1. I then ran sudo dpkg --configure -a, and fell in the initial situation: nothing progressing and left with the message
Running mtxrun --generate. This may take some time... done.
Pregenerating ConTeXt MarkIV format. This may take some time... 

The problem is that now each time I try to install anything with apt, I have to first kill the process so that apt or dpkg is not busy anymore, and then while running apt install or apt upgrade, I get the same initial situation.

  1. I tried to reboot my computer but it didn't fix the problem

  2. I freed some space on my laptop (I have now 32.1 Go of free space) but this changed nothing

  3. Following the advices on E: dpkg was interrupted... run 'sudo dpkg --configure -a', I tried to :

    1. Run sudo apt-get install -f then sudo dpkg --configure -a but nothing changed
    2. Delete the updates using cd /var/lib/dpkg/updates && sudo rm *, then try to update with sudo apt update && sudo apt upgrade, but nothing changed.

What should I do?

Transparency effects on KDE Plasma 6.6.5 https://askubuntu.com/questions/1567408/transparency-effects-on-kde-plasma-6-6-5

so i already turned off that "Translucency" option in settings and set the look of my panel to "Opaque" but there is still some transparent elements
panel's popups and krunner to be specific
how do I turn off transparency for them?
here is krunner
and here is panel's popup

Ubuntu 24.04.3 started booting to blank screen. How can I get a command line? https://askubuntu.com/questions/1567400/ubuntu-24-04-3-started-booting-to-blank-screen-how-can-i-get-a-command-line

I've been using Ubuntu 24.04.3 LTS on a Lenovo Thinkpad P16 with an Nvidia RTX3500 GPU. I'd been using the Kubuntu desktop with no issues.

I ran a lengthy maybe CPU-intensive process and came back to a black screen. I tried rebooting and powering off, to no avail.

I'm pretty sure NVidia is involved. The last thing I was able to "successfully" do was reinstall my NVidia driver. But no boot after that.

I can get into the BIOS config but find nothing useful there. I would like some way to get to a command line where I can fix something but none of the suggestions like Ctrl-Alt-F3 do anything.

UPDATE: I was asked if other questions were similar to mine. THEY ARE NOT.

My situation is different from these: it is a pure black screen boot. It is not a graphics issue. I my current situation, no input is possible. However, I know the system is running because I can achieve a reboot with the Alt-PrtSc-REISUB key combination.

What I am looking for is a way to force a command line from which I can purge the nvidia driver from the system to see if I can get a boot.

I have gotten this far:

I have managed to boot from a USB disk, mount the existing hard drive where I could change a file that would allow this to happen. Some webpages mention a chance to intervene in a GRUB menu. But I have no GRUB menu since it goes straight to boot without giving me a chance to intervene. And I don't know how to modify the grub configuration so that it will allow this.

Grub may not be the only way to force a command line. I am open to any others.

UPDATE 2:

Thanks to the useful input from @david below, I have found my way into grub. However, this is not helping much so far. I hoped I would find a way to log in. Or failing that, a way to configure a text-mode login for the computer. I've been all up and down the grub help listing and there is nothing there enabling the booting to a command line, the editing of grub config files (no vi, no nano, etc.) I found a source telling me how to boot from the grub console but won't this just get me back to where I already am, i.e. a non-functional graphical screen?

UPDATE 3:

At this point, I am convinced (unless someone can tell me otherwise) that there is nothing I can do on the grub menu that will let me edit anything on the grub config. This is apparently by design:

https://www.google.com/search?q=edit+grub+config+from+grub+command+line&oq=how+to+modift+grub+config+from+grub+command+line

So my next move seems to be one of two things:

  1. Live boot 26.04 from USB
  2. Actually install 26.04. I assume this will create a partition which I will keep small.

After either of these options

  • mount the partitions on the main drive
  • edit the grub config files to come up in text mode by default where I can fix my system and update grub.

I'm interested in feedback on either of these options.

Ubuntu 26.04 has no option for mouse acceleration on the trackpad https://askubuntu.com/questions/1567375/ubuntu-26-04-has-no-option-for-mouse-acceleration-on-the-trackpad

I have seen a number of super old questions about this with no answers. I managed to convince my company to let me use Linux, and now I'm having a really hard time using it because the pointer precision on the trackpad is horrible.

There is a setting for mouse acceleration for a regular mouse, but nothing for trackpads. Is this normal?

How can I fix it?

EDIT: It would also be great if there is a way to adjust the scrolling speed/number of lines; it seems that's only a setting for a mouse as well.

EDIT2: This is NOT a feature request. I am after any workaround possible, terminal hacks, third-party apps, anything other than waiting and hoping it gets added to GNOME/Ubuntu.

Ubuntu 24.04 and 26.04 fail to boot with RTX 5050 — black screen issue https://askubuntu.com/questions/1566815/ubuntu-24-04-and-26-04-fail-to-boot-with-rtx-5050-black-screen-issue

I am unable to run Ubuntu properly with my NVIDIA RTX 5050 GPU. Both Ubuntu 24.04 and Ubuntu 26.04 result in a black screen when the NVIDIA driver is enabled. The system only works using nomodeset, but then GPU acceleration is unavailable and resolution is limited (around 720p).

I can only install and boot the system using GRUB modification (nomodeset), but enabling NVIDIA drivers causes a black screen after boot.

I have tested multiple NVIDIA driver versions (570, 580, 595), but all result in the same issue.


System information

  • GPU: NVIDIA RTX 5050

  • CPU: AMD Ryzen 5 5500

  • RAM: 8GB DDR4 3200MHz

  • Storage: 256GB NVMe SSD

  • Motherboard: Gigabyte B550M-K


Steps already tried

1. Boot with nomodeset (only working method)

At GRUB:

  • Press e

  • Add:

nomodeset

Then boot with Ctrl + X


2. Install NVIDIA drivers

sudo apt update
sudo apt install nvidia-driver-580

Also tested:

sudo apt install nvidia-driver-570
sudo apt install nvidia-driver-595

3. Remove broken NVIDIA installation (via chroot / recovery)

sudo apt purge '^nvidia'
sudo apt autoremove --purge
sudo rm -f /etc/X11/xorg.conf
sudo rm -f /etc/modprobe.d/nvidia*
sudo update-initramfs -u
sudo update-grub

4. Update kernel / system packages

sudo apt update
sudo apt upgrade
sudo apt install linux-generic-hwe-24.04

Current result

  • System boots only with nomodeset

  • Without nomodeset, black screen occurs immediately after GRUB

  • NVIDIA drivers install successfully but break display on reboot

  • No GPU acceleration is working


Request

Looking for a stable solution to run RTX 5050 properly on Ubuntu (kernel/driver configuration fix or compatibility workaround).

Apparmor passt and pasta profiles https://askubuntu.com/questions/1564086/apparmor-passt-and-pasta-profiles

Do anyone have pointer to get new version of passt and pasta (libvirt and docker network related) profiles for Apparmor? Current implementation of them causes error on aa-logprof like:

ERROR: Operation {'runbindable'} cannot have a source. Source = AARE('/')

That the bug report issued on advised to upgrade whole apparmor or manually remove empty mounts from profile. So anyone done manual mount cleaning for it?

SH

What markdown readers (not editors) are available? https://askubuntu.com/questions/1405896/what-markdown-readers-not-editors-are-available

First of all, everything I find seems to be an editor. I don't want an editor. I want a reader. I want a window that shows me the rendered markdown file, not its source. Sure, I don't care if it also edits, but if I cannot set it up to display just the rendered markdown on startup then it's not what I'm looking for.

Second, the few actual readers out there are browser based. I don't want to open the browser to read a rendered markdown file. I want a standalone window that does just that.

Lastly, I want the rendered markdown file to follow my GTK/QT theme, or at least have settings to do it.

I would prefer it to not be Electron-based.

The closest thing I've got to it is the terminal program Glow, but because it's a terminal program, it has some obvious limitations in its capability of rendering a markdown file.

Resize partition - Failed to find physical volume https://askubuntu.com/questions/1229496/resize-partition-failed-to-find-physical-volume

I followed tutorial to resize a hard disk in virtual machine. In the last step when I shoot the command sudo pvresize /dev/sda1 I am getting this error: Failed to find physical volume "/dev/sda1". From my research it looks like that I should point to a different path, but I'm not sure what should it be.

Cannot delete user - entry missing in /etc/passwd - (networked user) https://askubuntu.com/questions/977490/cannot-delete-user-entry-missing-in-etc-passwd-networked-user

I ran

sudo userdel <username>

but I received the following error

userdel: cannot remove entry '<username>' from /etc/passwd

I check the /etc/passwd file and I indeed cannot find an entry for the username - I CTRL+F'd through to check.

Help would be really appreciated, already used to the search bar and no satisfactory answers turned up.

Cheers!

EDIT:

I believe I know what may be the issue. The user I am trying to delete does not authenticate locally, but on a network as the login is the same as my university login details which is why it is not locally storing details in /etc/passwd - The question is now how can I delete this sort of user that is authenticating over a network - Could someone help me with that?

EDIT2: Upon request below is the contents of /etc/nsswitch.conf

passwd:         files
group:          files
shadow:         files
gshadow:        files

hosts:          files mdns4_minimal [NOTFOUND=return] dns
networks:       files

protocols:      db files
services:       db files sss
ethers:         db files
rpc:            db files

netgroup:       nis
sudoers:        sss
OpenVPN working from CLI but not via NetworkManager GUI https://askubuntu.com/questions/953212/openvpn-working-from-cli-but-not-via-networkmanager-gui

I have a working VPN connection via CLI:

sudo openvpn myconfigfile.ovpn

I imported the file in the Network Manager GUI and when I try to use it, it always fails but I can't find the reason why. I had a look at the logs of the NetworkManager via:

journalctl -u NetworkManager 

and it gives this :

sept. 06 09:30:56 alt-machine NetworkManager[19942]: <info>  [1504683056.7617] audit: op="connection-activate" uuid="24fc3644-b324-46a4-9ce1-c1a0fcea1b75" name="name-of-connection" pid=3406 uid=1000 result="success"
sept. 06 09:30:56 alt-machine NetworkManager[19942]: <info>  [1504683056.7900] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: Started the VPN service, PID 23791
sept. 06 09:30:56 alt-machine NetworkManager[19942]: <info>  [1504683056.8118] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: Saw the service appear; activating connection
sept. 06 09:30:56 alt-machine nm-openvpn[23798]: OpenVPN 2.4.0 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jun 22 2017
sept. 06 09:30:56 alt-machine nm-openvpn[23798]: library versions: OpenSSL 1.0.2g  1 Mar 2016, LZO 2.08
sept. 06 09:30:56 alt-machine NetworkManager[19942]: <info>  [1504683056.9251] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: VPN plugin: state changed: starting (3)
sept. 06 09:30:56 alt-machine NetworkManager[19942]: <info>  [1504683056.9251] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: VPN connection: (ConnectInteractive) reply received
sept. 06 09:30:57 alt-machine nm-openvpn[23798]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
sept. 06 09:30:57 alt-machine nm-openvpn[23798]: TCP/UDP: Preserving recently used remote address: [AF_INET]x.x.x.x:port
sept. 06 09:30:57 alt-machine nm-openvpn[23798]: UDP link local: (not bound)
sept. 06 09:30:57 alt-machine nm-openvpn[23798]: UDP link remote: [AF_INET]x.x.x.x:port
sept. 06 09:30:57 alt-machine nm-openvpn[23798]: NOTE: chroot will be delayed because of --client, --pull, or --up-delay
sept. 06 09:30:57 alt-machine nm-openvpn[23798]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
sept. 06 09:31:56 alt-machine NetworkManager[19942]: <warn>  [1504683116.7116] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: VPN connection: connect timeout exceeded.
sept. 06 09:31:56 alt-machine nm-openvpn-serv[23791]: Connect timer expired, disconnecting.
sept. 06 09:31:56 alt-machine NetworkManager[19942]: <warn>  [1504683116.7199] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: VPN plugin: failed: connect-failed (1)
sept. 06 09:31:56 alt-machine NetworkManager[19942]: <info>  [1504683116.7208] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: VPN plugin: state changed: stopping (5)
sept. 06 09:31:56 alt-machine NetworkManager[19942]: <info>  [1504683116.7210] vpn-connection[0x55e876784720,24fc3644-b324-46a4-9ce1-c1a0fcea1b75,"name-of-connection",0]: VPN plugin: state changed: stopped (6)

Are there other logs where I can have a look ?

Cropping Images using Command Line Tools Only https://askubuntu.com/questions/631689/cropping-images-using-command-line-tools-only

I want to crop an image using command line tools only indicating pixels to crop for the four directions (the same way we can crop in LibreOffice)

For example:

crop image.jpg -top 5px -bottom 7px -right 14px -left 3px

Is there such a tool (not GUI)?

Translate the page numbers of internal links in a pdf link to? https://askubuntu.com/questions/621139/translate-the-page-numbers-of-internal-links-in-a-pdf-link-to

I use pdftk to (extract and) merge some pdf files. One of the input pdf files has internal links within it, i.e. when clicking such links will jump to another position in the pdf file. But in the output pdf file, the page numbers that the internal links link do not change, so they link to the wrong pages.

The best thing I know is that all internal links link to the wrong pages away from the connect pages by a fixed number of pages.

e.g. pdftk 1.pdf 2.pdf cat output merge.pdf where 2.pdf has internal links.

e.g. pdftk A=1.pdf B=2.pdf cat A1-10 B1-4 A11-20 B5-end output merge.pdf where I want to translate the internal links from page 5 till end in 2.pdf

How shall I update the internal links? Thanks.

How can I get my Dell C1760nw Printer to work with Ubuntu? https://askubuntu.com/questions/513943/how-can-i-get-my-dell-c1760nw-printer-to-work-with-ubuntu

Ubuntu doesn't recignize this model of printer automatically. How can I get it to work correctly in Ubuntu?

How can I make VirtualBox guests share the host's VPN connection? https://askubuntu.com/questions/419327/how-can-i-make-virtualbox-guests-share-the-hosts-vpn-connection

Question

When I start my VPN on my ubuntu desktop computer which acts as a router, the attached subnet loses internet connectivity, but is still accessible (LAN). Ideally, I would like to know how to enable the attached subnet to re-gain internet access by routing through the VPN tunnel when the VPN is active.

Context

I have the following network layout:

subnet 172.16.0.0/20 on eth0 for my VirtualBox virtual machines.

subnet 192.168.0.0/24 on eth0:0 which connects to gateway 192.168.0.1 which has internet access.

This is shown in the /etc/network/interfaces file:

auto lo
iface lo inet loopback

# This is the subnet dedicated to VB
auto eth0
iface eth0 inet static
    address 172.16.0.1
    netmask 255.255.0.0
    gateway 192.168.0.164
    dns-nameservers 8.8.8.8

# normal DHCP internet
auto eth0:0
iface eth0:0 inet static
    address 192.168.0.164
    netmask 255.255.255.0
    dns-nameservers 8.8.8.8
    gateway 192.168.0.1

The packets on the eth0 are forwarded through eth0:0 with masquerading and normal internet connectivity is fine. However when I start my VPN tunnel on this router, internet connectivity is lost for the VMs on the eth0 subnet (yet remains for the router).

Below is the output of ifconfig when the tunnel is active:

eth0      Link encap:Ethernet  HWaddr 00:1f:bc:01:c3:ab  
          inet addr:172.16.0.1  Bcast:172.16.255.255  Mask:255.255.0.0
          inet6 addr: fe80::21f:bcff:fe01:c3ab/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:165426 errors:0 dropped:0 overruns:0 frame:0
          TX packets:182601 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:208264321 (208.2 MB)  TX bytes:16660945 (16.6 MB)
          Interrupt:16 

eth0:0    Link encap:Ethernet  HWaddr 00:1f:bc:01:c3:ab  
          inet addr:192.168.0.164  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:381963 errors:0 dropped:0 overruns:0 frame:0
          TX packets:381963 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:22755054 (22.7 MB)  TX bytes:22755054 (22.7 MB)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.8.0.10  P-t-P:10.8.0.9  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I suspect that the solution will have something to do with the routing table. It shows the following when the tunnel is active:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.8.0.9        128.0.0.0       UG    0      0        0 tun0
default         192.168.0.1     0.0.0.0         UG    100    0        0 eth0
10.8.0.0        10.8.0.9        255.255.255.0   UG    0      0        0 tun0
10.8.0.9        *               255.255.255.255 UH    0      0        0 tun0
37.139.23.49    192.168.0.1     255.255.255.255 UGH   0      0        0 eth0
128.0.0.0       10.8.0.9        128.0.0.0       UG    0      0        0 tun0
link-local      *               255.255.0.0     U     1000   0        0 eth0
172.16.0.0      *               255.255.0.0     U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0

and the following when the tunnel inactive:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    100    0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
172.16.0.0      *               255.255.0.0     U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0

Virtualbox configuration for Vms:

enter image description here

One of the VMs /etc/network/interfaces file:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 172.16.0.3
        netmask 255.255.0.0
        network 172.16.0.0
        broadcast 172.16.255.255
        gateway 172.16.0.1
        dns-nameservers 8.8.8.8