libm.so.2 version mistmatch in Jammy Package Release [duplicate] https://askubuntu.com/questions/1568131/libm-so-2-version-mistmatch-in-jammy-package-release

I have been trying to use chromium, but it shows below error :

My embedded board uses GLIBC_VERSION 2.35 as well, and running chromium-x11 packages made by rockchip. Previously it was working fine but after sudo apt update && sudo apt upgade, it throw error below.

vicharak@vicharak:~$ chromium 
/usr/bin/chromium: /usr/lib/chromium/libm.so.6: version `GLIBC_2.35' not found (required by /lib/aarch64-linux-gnu/libcairo.so.2)

Thanking you

Broken Links - Many broken links on a fresh install of Ubuntu Server 26.04LTS https://askubuntu.com/questions/1568129/broken-links-many-broken-links-on-a-fresh-install-of-ubuntu-server-26-04lts

I just did a fresh install of Ubuntu Server 26.04LTS, and am seeing loads of broken links already.

Since installing the OS, I have done an apt upgrade, added one additional user, and a static MoTD, so almost nothing really.

Yet, when I run:

sudo find / -xtype l -ls

I get scores (at least) of broken links showing up (I can post a complete list if it would help). If I exclude some paths thus:

find / -xdev -xtype l \
-not -path "/proc/*" \
-not -path "/sys/*" \
-not -path "/run/*" \
-not -path "/dev/*" \
2>/dev/null

it reduces the number of broken links listed to this list, which is still surprising (at least to me!)

/usr/src/linux-headers-7.0.0-27/scripts/kernel-doc
/usr/src/linux-headers-7.0.0-27-generic/rust
/usr/share/locale/it/LC_TIME/coreutils.mo
/usr/share/locale/be/LC_TIME/coreutils.mo
/usr/share/locale/ia/LC_TIME/coreutils.mo
/usr/share/locale/af/LC_TIME/coreutils.mo
/usr/share/locale/el/LC_TIME/coreutils.mo
/usr/share/locale/lt/LC_TIME/coreutils.mo
/usr/share/locale/ka/LC_TIME/coreutils.mo
/usr/share/locale/eo/LC_TIME/coreutils.mo
/usr/share/locale/sv/LC_TIME/coreutils.mo
/usr/share/locale/gl/LC_TIME/coreutils.mo
/usr/share/locale/et/LC_TIME/coreutils.mo
/usr/share/locale/cs/LC_TIME/coreutils.mo
/usr/share/locale/hu/LC_TIME/coreutils.mo
/usr/share/locale/uk/LC_TIME/coreutils.mo
/usr/share/locale/fi/LC_TIME/coreutils.mo
/usr/share/locale/bg/LC_TIME/coreutils.mo
/usr/share/locale/sr/LC_TIME/coreutils.mo
/usr/share/locale/zh_TW/LC_TIME/coreutils.mo
/usr/share/locale/ru/LC_TIME/coreutils.mo
/usr/share/locale/ja/LC_TIME/coreutils.mo
/usr/share/locale/ms/LC_TIME/coreutils.mo
/usr/share/locale/ga/LC_TIME/coreutils.mo
/usr/share/locale/id/LC_TIME/coreutils.mo
/usr/share/locale/ko/LC_TIME/coreutils.mo
/usr/share/locale/sl/LC_TIME/coreutils.mo
/usr/share/locale/pl/LC_TIME/coreutils.mo
/usr/share/locale/hr/LC_TIME/coreutils.mo
/usr/share/locale/vi/LC_TIME/coreutils.mo
/usr/share/locale/lg/LC_TIME/coreutils.mo
/usr/share/locale/da/LC_TIME/coreutils.mo
/usr/share/locale/nl/LC_TIME/coreutils.mo
/usr/share/locale/fr/LC_TIME/coreutils.mo
/usr/share/locale/pt_BR/LC_TIME/coreutils.mo
/usr/share/locale/es/LC_TIME/coreutils.mo
/usr/share/locale/ca/LC_TIME/coreutils.mo
/usr/share/locale/pt/LC_TIME/coreutils.mo
/usr/share/locale/sk/LC_TIME/coreutils.mo
/usr/share/locale/ro/LC_TIME/coreutils.mo
/usr/share/locale/nb/LC_TIME/coreutils.mo
/usr/share/locale/ta/LC_TIME/coreutils.mo
/usr/share/locale/kk/LC_TIME/coreutils.mo
/usr/share/locale/tr/LC_TIME/coreutils.mo
/usr/share/locale/eu/LC_TIME/coreutils.mo
/usr/share/locale/zh_CN/LC_TIME/coreutils.mo
/usr/share/locale/de/LC_TIME/coreutils.mo
/usr/share/man/man1/hashsum.1.gz
/usr/share/doc/libxml2-16/NEWS.gz
/usr/share/doc/xfsprogs/changelog.gz
/usr/share/doc/perl/Changes.gz
/usr/share/doc/python3-wadllib/NEWS.rst.gz

Is it expected that there would be a load of broken links on a fresh install? If not, perhaps something went wrong when I installed, and I should wipe and start from scratch, or perhaps the disk is knackered (although I did run the built-in disk diagnostic from the boot menu, and it found no issues).

Any suggestions welcome, and given I have almost nothing invested, I am also happy to use this for any tests that might be useful to understand what is happening.

how do I get the status of a linux directory from a C program [closed] https://askubuntu.com/questions/1568127/how-do-i-get-the-status-of-a-linux-directory-from-a-c-program

I am writing a C program which attempts to stat() the existing folder /mnt/ram0.
Compiles OK but returns an error code because that folder is not a file.

How do I get the same information about /mnt/ram0 as I would if it were a file?

Peter.

Octave fails to display plots after removing GNU freefonts. How to fix? https://askubuntu.com/questions/1568123/octave-fails-to-display-plots-after-removing-gnu-freefonts-how-to-fix

I removed GNU Freefonts, because it makes the text in Bengali render badly.
However, after removing it, Octave is failing to show plots.

I tried changing the default Octave fonts, but it still looks for these missing freetype fonts, and does not work after that.

How to fix the issue?

How can I reset my terminal configuratios? https://askubuntu.com/questions/1568121/how-can-i-reset-my-terminal-configuratios

I have installed some configuration mods for my terminal. But I messed some things up, and this is how the terminal now looks like:

enter image description here

And this is how I want it to look like as usual:

enter image description here

(Sorry for the bad image quality) but you get it. A fresh new terminal after you installed Ubuntu. So what is the solution for this?

firefox disable auto update https://askubuntu.com/questions/1568120/firefox-disable-auto-update

I'm running Ubuntu 22.04.5 LTS and recently installed FireFox 152 through the apt install channel.

When I open Settings/About Firefox, I see the Firefox updates is set to "Updates are managed by your operating system." There doesn't seem to any longer be a setting to check for updates manually or to notify me that an update is available so that I can chose when to do the update.

I opened about:config and changed app.update.auto from True to False, but that had no effect.

I would like to be able to disable the automatic updates so that I have control over when the updates happen. What are the steps to do this?

Additional info: Prior to today I was using Snap to update Firefox. Something went haywire with the auto update that broke Firefox, so I no longer care to use Snap.

Thanks

The real GDebi is so dangerous? [closed] https://askubuntu.com/questions/1568119/the-real-gdebi-is-so-dangerous

I'm listen the gdebi is dangerous but how, this is linux no dangerous software im so much listened so gdebi is so dangerous The Chatgpt Grok and Gemini says its safe but Meta Ai, Deepseek, ChatGPT Viber, says is dangerous

i thinks its fake
Could not determine Signed-By for URIs: https://d17k9fuiwb52nc.cloudfront.net/, Suites: resolute https://askubuntu.com/questions/1568118/could-not-determine-signed-by-for-uris-https-d17k9fuiwb52nc-cloudfront-net

So, what I did was running a command:

sudo apt modernize-sources

The following files need modernizing:
  - /etc/apt/sources.list
  - /etc/apt/sources.list.d/mariadb.list
  - /etc/apt/sources.list.d/packages.cloudpanel.io.list

Modernizing will replace .list files with the new .sources format,
add Signed-By values where they can be determined automatically,
and save the old files into .list.bak files.

This command supports the 'signed-by' and 'trusted' options. If you
have specified other options inside [] brackets, please transfer them
manually to the output files; see sources.list(5) for a mapping.

For a simulation, respond N in the following prompt.
Rewrite 3 sources? [Y/n] y
Modernizing /etc/apt/sources.list...

Modernizing /etc/apt/sources.list.d/mariadb.list...
- Writing /etc/apt/sources.list.d/mariadb.sources

Modernizing /etc/apt/sources.list.d/packages.cloudpanel.io.list...
- Writing /etc/apt/sources.list.d/packages.cloudpanel.io.sources
Warning: Could not determine Signed-By for URIs: https://d17k9fuiwb52nc.cloudfront.net/, Suites: resolute

So, I got the error at the very end.

Warning: Could not determine Signed-By for URIs: https://d17k9fuiwb52nc.cloudfront.net/, Suites: resolute

Whenever I run the command to update the packages sudo apt update -y I get the following error:

Notice: Missing Signed-By in the sources.list(5) entry for 'https://d17k9fuiwb52nc.cloudfront.net'

When I use the command

cat /etc/apt/sources.list.d/ubuntu.sources

I get the following:

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
##
## If you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add supplemental sources in /etc/apt/sources.list.d
## c.) make changes to template file
## /etc/cloud/templates/sources.list.ubuntu.deb822.tmpl
##

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## Ubuntu distribution repository
##
## The following settings can be adjusted to configure which packages to use from Ubuntu.
## Mirror your choices (except for URIs and Suites) in the security section below to
## ensure timely security updates.
##
## Types: Append deb-src to enable the fetching of source package.
## URIs: A URL to the repository (you may add multiple URLs)
## Suites: The following additional suites can be configured
## <name>-updates - Major bug fix updates produced after the final release of the
## distribution.
## <name>-backports - software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Components: Aside from main, the following components can be added to the list
## restricted - Software that may not be under a free license, or protected by patents.
## universe - Community maintained packages. Software in this repository receives maintenance
## from volunteers in the Ubuntu community, or a 10 year security maintenance
## commitment from Canonical when an Ubuntu Pro subscription is attached.
## multiverse - Community maintained of restricted. Software from this repository is
## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
## licence. Please satisfy yourself as to your rights to use the software.
## Also, please note that software in multiverse WILL NOT receive any
## review or updates from the Ubuntu security team.
##
## See the sources.list(5) manual page for further settings.
Types: deb
URIs: https://mirror.hetzner.com/ubuntu/packages
Suites: resolute resolute-updates resolute-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: https://mirror.hetzner.com/ubuntu/security
Suites: resolute-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

How to fix this error while updating packages?

Changing Bios Setting https://askubuntu.com/questions/1568117/changing-bios-setting

I am trying to install a program from a dvd on an old laptop but am having a problem with changing the bios system from OS Boot Manager to USB CD/DVD Rom Drive.

I have moved USB CD/DVD Rom Drive to the list of option by using F6 but note that the arrow still remains againstOS Boot Manager, and after pressing F10 to exit and save, the required changes do not take place.

Can anyone help me an 86 year old computer novice, resolve this issue.

Microsoft UEFI CA rotation: is it safe to update from 2011 to 2023? https://askubuntu.com/questions/1568114/microsoft-uefi-ca-rotation-is-it-safe-to-update-from-2011-to-2023

Recently my system (24.04) suggests the update Microsoft’s 2011 UEFI and KEK CAs are set to expire in June 2026 and are being replaced by 2023 CAs. This is also discussed at this link.

Is it safe to update or should I ignore it?

Fix middle mouse button behaviour with Microsoft Intellimouse Pro https://askubuntu.com/questions/1568111/fix-middle-mouse-button-behaviour-with-microsoft-intellimouse-pro

I just swapped out my Microsoft intellimouse Classic with a Microsoft Intellimouse pro because of an issue with tracking on any surface that isn't white. I'm glad to say that tracking is now working. However, my middle-click to paste behaviour is no longer working, and when I middle click, it now brings up the workspace switcher in KDE. I'm running stock Ubuntu 22.04, but then installed the KDE desktop on top. If I plug in my old mouse, the middle mouse button works as expected.

When I googled for an answer, the Google AI told me to remap the buttons using something like:

xinput set-button-map "Microsoft Microsoft Pro Intellimouse Mouse" 1 9 3 4 5 6 7 8 2

However, I tried swapping 2 with every other number in the list, and nothing worked.

I then ran the following command to get a terminal to tell me which mouse button is down:

watch -n 1 xinput --query-state 11

which gives me output like below:

enter image description here

When i hold down on the left and right buttons I see that button 1 and 3 show as down respectively. However, holding down on the middle mouse button does not show any change, but does bring up a panel that appears on the left hand side, with an image of my desktop at the top that says "Default" as shown below:

enter image description here

I must confess that I don't actually know what this is.

Any help on how to get my middle mouse button working how it should be, with the default copy/paste behaviour that Linux has would be much appreciated. This is such an odd issue to have.

Update - 3rd July 2026

I plugged the mouse into my debian 12 laptop (also running kde) and saw that it was performing the same way, even with the middle mouse button not registering with the querying command earlier. I ran xinput --list to find the device and saw the following:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft Pro Intellimouse Mouse    id=10   [slave  pointer  (2)]
⎜   ↳ Microsoft Microsoft Pro Intellimouse Keyboard id=11   [slave  pointer  (2)]
⎜   ↳ DELL0A21:00 06CB:CE65 Touchpad            id=12   [slave  pointer  (2)]
⎜   ↳ DELL0A21:00 06CB:CE65 Mouse               id=13   [slave  pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                        id=18   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Video Bus                                 id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Intel HID events                          id=14   [slave  keyboard (3)]
    ↳ Intel HID 5 button array                  id=15   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                          id=16   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=17   [slave  keyboard (3)]
    ↳ Microsoft Microsoft Pro Intellimouse Keyboard id=19   [slave  keyboard (3)]

This time I ran the query list to check the virtual microsoft pro intellimouse keyboard (id 19) and this time it shows up at least 2 keys when I hold down the middle mouse button (I had to really shrink the terminal text to make it fit on the screen). These were:

key[23]=down key[133]=down

There may or may not have been additional keys, but by that point the text was too small for me to detect a change.

So it seems that the intelimouse registers a virtual keyboard, and when I press the mouse button down, it is registering multiple keyboard buttons when I press down on the button. It feels to me like the mouse is "rememebering" a previous owners custom macro?

Xev Output

If I run xev and middle click inside the box, this text appears between the motion event outputs

MotionNotify event, serial 41, synthetic NO, window 0x5a00001,
    root 0x7bb, subw 0x5a00002, time 1633827, (67,28), root:(938,471),
    state 0x10, is_hint 0, same_screen YES

EnterNotify event, serial 41, synthetic NO, window 0x5a00001,
    root 0x7bb, subw 0x0, time 1633828, (68,28), root:(939,471),
    mode NotifyNormal, detail NotifyInferior, same_screen YES,
    focus YES, state 16

KeymapNotify event, serial 41, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

MotionNotify event, serial 41, synthetic NO, window 0x5a00001,
    root 0x7bb, subw 0x0, time 1633828, (68,28), root:(939,471),
    state 0x10, is_hint 0, same_screen YES

Xinput properties

Running:

xinput list-props "Microsoft Microsoft Pro Intellimouse Mouse"

outputs:

Device 'Microsoft Microsoft Pro Intellimouse Mouse':
    Device Enabled (189):   1
    Coordinate Transformation Matrix (191): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Natural Scrolling Enabled (327):   0
    libinput Natural Scrolling Enabled Default (328):   0
    libinput Scroll Methods Available (329):    0, 0, 1
    libinput Scroll Method Enabled (330):   0, 0, 0
    libinput Scroll Method Enabled Default (331):   0, 0, 0
    libinput Button Scrolling Button (332): 2
    libinput Button Scrolling Button Default (333): 2
    libinput Button Scrolling Button Lock Enabled (334):    0
    libinput Button Scrolling Button Lock Enabled Default (335):    0
    libinput Middle Emulation Enabled (336):    0
    libinput Middle Emulation Enabled Default (337):    0
    libinput Accel Speed (338): 0.000000
    libinput Accel Speed Default (339): 0.000000
    libinput Accel Profiles Available (340):    1, 1
    libinput Accel Profile Enabled (341):   1, 0
    libinput Accel Profile Enabled Default (342):   1, 0
    libinput Left Handed Enabled (343): 0
    libinput Left Handed Enabled Default (344): 0
    libinput Send Events Modes Available (312): 1, 0
    libinput Send Events Mode Enabled (313):    0, 0
    libinput Send Events Mode Enabled Default (314):    0, 0
    Device Node (315):  "/dev/input/event6"
    Device Product ID (316):    1118, 2090
    libinput Drag Lock Buttons (345):   <no items>
    libinput Horizontal Scroll Enabled (346):   1
    libinput Scrolling Pixel Distance (347):    15
    libinput Scrolling Pixel Distance Default (348):    15
    libinput High Resolution Wheel Scroll Enabled (349):    1
DNS failiue, resolv.conf link is OK, resolvd is running https://askubuntu.com/questions/1568093/dns-failiue-resolv-conf-link-is-ok-resolvd-is-running

I'm running Ubuntu 22.04 on one of my laptops and suddenly DNS doesn't work. It works on all of the other machines on my network. Addressing nodes on my network by IP works. Pinging google or its nameservers gets no response. Resolv.conf looks fine, resolvd is running. Any ideas?

Here's the output from systemctl status systemd-resolved.service

e - Network Name Resolution
     Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2026-07-02 08:52:54 PDT; 1h 33min ago
       Docs: man:systemd-resolved.service(8)
             man:org.freedesktop.resolve1(5)
             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
   Main PID: 836 (systemd-resolve)
     Status: "Processing requests..."
      Tasks: 1 (limit: 9192)
     Memory: 7.7M
        CPU: 241ms
     CGroup: /system.slice/systemd-resolved.service
             ??836 /lib/systemd/systemd-resolved

Jul 02 08:52:54 system76-pc systemd[1]: Starting Network Name Resolution...
Jul 02 08:52:54 system76-pc systemd-resolved[836]: Positive Trust Anchors:
Jul 02 08:52:54 system76-pc systemd-resolved[836]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
Jul 02 08:52:54 system76-pc systemd-resolved[836]: Negative trust anchors: home.arpa 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.17>
Jul 02 08:52:54 system76-pc systemd-resolved[836]: Using system hostname 'system76-pc'.
Jul 02 08:52:54 system76-pc systemd[1]: Started Network Name Resolution.
Jul 02 08:52:58 system76-pc systemd-resolved[836]: wlp0s20f3: Bus client set default route setting: yes
Jul 02 08:52:58 system76-pc systemd-resolved[836]: wlp0s20f3: Bus client set DNS server list to: 8.8.8.8, 8.8.4.4, 1.1.1.1, 192.168.0.1
lines 1-23/23 (END)

I don't see anything amiss.

Ubuntu Desktop 26.04 wakes up right after suspending https://askubuntu.com/questions/1568091/ubuntu-desktop-26-04-wakes-up-right-after-suspending

I have been having this problem for a while where the computer upon clicking suspend (or even typing systemctl suspend in the terminal) the display goes black for 1-2 seconds and turns back up in the lock screen.

I have tried the following command:

cat /proc/acpi/wakeup

Which shows this:

Device  S-state   Status   Sysfs node
GPP0      S4    *enabled   pci:0000:00:01.1
GPP1      S4    *disabled
GPP3      S4    *disabled
GPP4      S4    *disabled
GPP5      S4    *disabled
GPP6      S4    *disabled
GPP7      S4    *disabled
X161      S4    *disabled  pci:0000:07:00.0
X162      S4    *disabled
GPPA      S4    *disabled
GPPB      S4    *disabled
GPPC      S4    *disabled
GPPD      S4    *disabled
GPPE      S4    *disabled
GPPF      S4    *disabled
GP10      S4    *disabled
GP11      S4    *disabled
GP12      S4    *enabled   pci:0000:00:07.1
GP13      S4    *enabled   pci:0000:00:08.1
XHC0      S4    *enabled   pci:0000:09:00.3
GP30      S4    *disabled
GP31      S4    *disabled
PS2K      S3    *disabled
PS2M      S3    *disabled
UAR1      S4    *disabled  pnp:00:01
        *disabled  serial-base:00:01:0
        *disabled  serial-base:00:01:0.0
GPP2      S4    *enabled   pci:0000:00:01.3
PTX2      S4    *disabled  pci:0000:04:00.0
RLAN      S4    *disabled  pci:0000:05:00.0
PTX1      S4    *disabled
PTXH      S4    *enabled   pci:0000:02:00.0

I have the tried to disable all of the enabled devices with this command(obviously typing the actual device in the place of [DEVICE])

sudo /bin/sh -c '/bin/echo [DEVICE] > /proc/acpi/wakeup'

...but even still nothing worked.

Techniques for speeding up snap (Ubuntu 26.04) https://askubuntu.com/questions/1568087/techniques-for-speeding-up-snap-ubuntu-26-04

I have a vanilla Ubuntu 26.04 install on a brand new Dell Pro Max 16 (2026). Applications (ex: emacs, firefox) start very slowly. So slowly that the system complains about them not responding multiple times. They are better after running but the whole system feels sluggish, kind of like windows used to. I don't know if that's due to snap but it seems reasonably probable. Aside from installing packages outside of snap are there tricks or techniques for speeding things up?

Is there a way of placing a larger delay on the "not responding" notification? That would help a bit.

Edit/Update:

  1. In answer to questions, my system has 32G of RAM and htop shows that it is only 50% used when my system is sluggish.

  2. I get the timeout messages from (or in regards to) a variety of programs. For example, today Files was also doing it. But the more usual violators are firefox, emacs and zoom. Those also happen to be my most used applications, but...

  3. The terminal doesn't seem sluggish, except to start it up (pop the window). Traditional command-line apps (gcc, find, grep, ls, etc) work fine.

  4. My system's gl2mark score is 4231. Not great but not terrible.

  5. I think my disk is working fine. I ran the benchmark from the Disks menu item in "Show Apps" and got an average read rate of 5.6 GB/s and an average access time of 0.04ms

Laptop Monitor Not Working https://askubuntu.com/questions/1568084/laptop-monitor-not-working

Hi everyone,

I'm experiencing a strange display issue on my Ubuntu laptop that recently started happening on two different machines (including one at my office).

The Symptom:

  • Out of nowhere, the built-in laptop monitor completely goes dark.

  • Immediately after the monitor dies, the OS acts as if the system should go to sleep and suspends the machine.

  • If I wake it back up and plug in an external monitor, the external monitor works perfectly fine as the primary display, but the OS behaves as if the built-in monitor doesn't exist at all.

  • The issue is intermittent. A few minutes ago, it suddenly went back to normal and the built-in display worked again, only to die completely a few minutes later.

-It occurs randomly after booting the OS, but never on the BIOS screen.

  • The display setting shows only one monitor (the external monitor) when the built-in monitor is not working.

  • Note: The BIOS still successfully recognizes the built-in monitor even when Ubuntu cannot see it.

Because this is happening on two separate physical machines, I suspect a recent software, kernel, or power management update might be causing a conflict or triggering a false "lid closed" event.

System Details:

  • OS: Ubuntu 24.04

  • Kernel: 6.17.0-35-generic

  • Session Type: wayland

Has anyone else run into this recently? What logs should I look into next to isolate whether this is a systemd-logind lid-switch bug or a graphics driver issue?

(Ubuntu 24.04.4 Desktop [Wayland]/Gnome 46.0/Linux 6.17.0) How do I rotate login screen portrait left? https://askubuntu.com/questions/1568079/ubuntu-24-04-4-desktop-wayland-gnome-46-0-linux-6-17-0-how-do-i-rotate-login

I have turned my monitor physically in portrait position. I adjusted Settings -> Displays so that the layout for my desktop is okay, but the login screen is still landscape.

I read that this problem could be fixed with following instructions:

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/
sudo chown gdm:gdm /var/lib/gdm3/.config/monitors.xml
sudo systemctl restart gdm3

But to no avail, it just does not work. No matter if I reboot or even completely turn off and back on computer. The login screen remains in landscape position.

However gdm displays proper login screen when returning from suspend. This is of course logical since it is not providing multi-user login. Lock screen works as well.

I had my doubts for the monitors.xml solution, since there were no existing monitors.xml file in /var/lib/gdm3/.config/ directory. I even looked into gdm source code and there is no references to monitors.xml at all. So how should restarting could change login screen position according to monitors.xml from user desktop settings.

This is a displaymanager problem which is run by gdm, not a desktop manager problem which has user configuration in ~/.config/monitors.xml. Copying that file into /var/lib/gdm3/.config/ (or anywhere else for that matter) is doomed to fail, I bet it has never worked. The code in gdm is intrested in login screen only for things like user selection, password, fingerprint and id card, not basic geometric transformations like rotate, flip and scale that you find in desktop manager user settings, ~/.config/monitors.xml.

So what now? I guess I have to accept that login screen in gdm-land is carved into stone as landscape position , just like BIOS does.

How to view RAW .NEF files in nautilus on Ubuntu 26.04 LTS https://askubuntu.com/questions/1568055/how-to-view-raw-nef-files-in-nautilus-on-ubuntu-26-04-lts

I know this question has been asked before for previous versions of Ubuntu but I cant seem to get .NEF raw photo thumbnails in my standard file manager which I think is known as Nautilus?

What is the correct way of achieving this?

SOLVED: https://github.com/emuskardin/nautilus-raw-thumbnails - copy github installation code.

Rootless podman-compose Ollama container can't access NVIDIA GPU on Ubuntu 24.04, but native Ollama works https://askubuntu.com/questions/1567946/rootless-podman-compose-ollama-container-cant-access-nvidia-gpu-on-ubuntu-24-04

I'm setting up a local AI stack with Ollama and Open WebUI using rootless podman-compose on Ubuntu 24.04. Both containers share a network, but when I started testing, I noticed the Ollama container was falling back to CPU inference — even though native Ollama on the host accesses the RTX 4060 Laptop GPU just fine.

My setup:

  • Ubuntu 24.04
  • NVIDIA GeForce RTX 4060 Laptop GPU, driver 595.71.05
  • Podman 4.9.3
  • podman-compose 1.5.0 (pip)
  • nvidia-container-toolkit installed, CDI spec at /etc/cdi/nvidia.yaml

My short debugging:

# Checked the CDI devices
nvidia-ctk cdi list
: '
INFO[0000] Found 3 CDI devices                          
nvidia.com/gpu=0
nvidia.com/gpu=GPU-3cb61464-c22f-067b-dcb8-ea32dda1197d
nvidia.com/gpu=all
'

ollama run ministral-3:8b "Hi"
# Hello! How can I assist you today? 😊

# Checks if CDI spec exists
head -20 /etc/cdi/nvidia.yaml

: '

cdiVersion: 0.7.0
kind: nvidia.com/gpu
devices:
    - name: "0"
      containerEdits:
        deviceNodes:
            - path: /dev/nvidia0
              major: 195
              fileMode: 438
              permissions: rwm
            - path: /dev/dri/card0
              major: 226
              fileMode: 432
              permissions: rwm
              gid: 44
            - path: /dev/dri/renderD129
              major: 226
              minor: 129
              fileMode: 432
'

Bare podman run

podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L
# Error: setting up CDI devices: unresolvable CDI devices nvidia.com/gpu=all

podman-compose run

podman-compose -f compose.yaml --profile gpu-podman up -d ollama-gpu-podman
# Error: unable to start container "5f5fd11ffa125aef013245690ba61e088460aee7a22c562af7326e12a43d1fec": setting up CDI devices: unresolvable CDI devices nvidia.com/gpu=all

My compose.yaml for the Ollama service:

services:
  ollama-gpu-podman:
    image: ollama/ollama:latest
    container_name: ollama-container
    profiles:
      - gpu-podman
    restart: unless-stopped
    networks:
      - ollama-network
    devices:
      - nvidia.com/gpu=all
    security_opt:
      - label=disable

How do I fix it?

Best way to sync Google Drive on Ubuntu 26.04 LTS https://askubuntu.com/questions/1567829/best-way-to-sync-google-drive-on-ubuntu-26-04-lts

I need the best way to sync Google Drive on my Ubuntu LTS 26.04 with local cache that allows me to keep working for at least a day without any internet.

Requirements are similar to Google Drive for PC:

  1. Ability to work completely offline (not even internet to "mount" the drive first and then disconnect).
  2. Download and caching of files when they are accessed.

What I have tried and fails:

  1. rclone vfs local mount: Doesn't mount without internet! No usable cache! Can this be fixed? This is my most hopeful option currently. Here is the code I currently use:
[Unit]
Description=Google Drive Mount
After=network-online.target
Wants=network-online.target
OnFailure=gdrive-mount-failed.service

[Service]
Type=simple

ExecStart=/usr/bin/rclone mount gdriveboi: %h/G \
    --vfs-cache-mode full \
    --cache-dir %h/.cache/rclone \
    --vfs-cache-max-size 100G \
    --vfs-cache-max-age 720h \
    --vfs-write-back 30s \
    --vfs-read-ahead 128M \
    --dir-cache-time 5m \
    --poll-interval 30s \
    --log-level INFO \
    --log-file %h/.local/share/rclone-mount.log \
    --rc \
    --rc-addr 127.0.0.1:5572 \
    --rc-no-auth

ExecStop=/bin/fusermount3 -uz %h/G

Restart=no

[Install]
WantedBy=default.target
  1. Nautilus doesn't support native Google Drive starting GNOME 50. https://www.omgubuntu.co.uk/2026/03/google-drive-not-working-nautilus-ubuntu-26-04

  2. Dolphin + Dolphin Plugins + Konqueror + KIO GDrive + KIO Admin: Can't even add the Google account on Dolphin. Page shows blank.

  3. rclone bisync fails randomly and repeatedly. --resyncing has destroyed my work multiple times now. I can provide the last used code if asked.

Having issue with fstab and startup https://askubuntu.com/questions/1567720/having-issue-with-fstab-and-startup

I've done this many times on different systems, but this has me puzzled:

OS: Ubuntu 26.04 Server

Had an external drive that I was permanently mounting using the fstab.

/dev/sda1 /data ext4 defaults 0 0

I removed the drive and of course it rebooted and went into recovery mode. So I edited the /etc/fstab and removed the external drive mount. Now when it reboots, it still hangs up on trying to mount that drive.

Does Ubuntu 26 store the information that is/was in the fstab in another spot? Like a database or other file? I noticed the fstab in Ubuntu 26 is very minimal, so I'm guessing there is some sort of other place that needs to be updated??

Again, this way of mounting the external works just fine. It was a permanent mount on a non-GUI system. It doesn't auto-mount without an entry in the fstab. The question was that it was removed, and fstab entry was removed, but it still went to the recovery prompt.

Okay, so I see I've not been complete with my description. This is a server. The external drive mounted permanently. I had been doing this on my server for a long time (6+ years). I removed the drive because I'm moving it to another server, permanently. After removing the entry in the fstab, and rebooted, it still tried to mount the drive and therefore hung up and dropped into recovery mode.

How to fix bad Bengali fonts on browser in Ubuntu? The issue started after installing GNU Octave https://askubuntu.com/questions/1566104/how-to-fix-bad-bengali-fonts-on-browser-in-ubuntu-the-issue-started-after-insta

I installed Octave, and the Bengali fonts in many websites such as Wikipedia (all articles) are rendering quite badly afterwards in both Firefox and Chromium.

Example: The font is very small, and it looks somewhat broken in this Wikipedia article:

enter image description here

How to fix this issue?

Unable to pair logitech keyboard https://askubuntu.com/questions/1520615/unable-to-pair-logitech-keyboard

Ubuntu 22.04(dual boot with Windows 10). Keyboard - logitech k380. The keyboard works fine in windows. But in ubuntu nothing happens when I try to connect it through default gnome gui. Then I tried many times through terminal(tried several bluez versions):

bluetoothctl
power on
agent on
default-agent
scan on
trust <Keyboard MAC>
pair <Keyboard MAC>

But everytime there is "failed to pair: org.bluez.Error.AuthenticationCanceled" instead of pairing key. I tried blueman which also fails to pair.

RDP on Ubuntu Desktop 22.04 https://askubuntu.com/questions/1422263/rdp-on-ubuntu-desktop-22-04

I installed Ubuntu Desktop 22.04 and want to connect through RDP or VNC. I found screen sharing and enabled RDP. I know the IP of the machine, so I gave it a try. Well, it's not working.

I then found that the Xrdp protocol needs to be installed, so I installed it. Still not working. I also read that it should work with Windows 10/11 RDP, so I tried with Windows 10 RDP from the same network, but still not working.

I can ping the Ubuntu PC, that's something.

Is there a proper explanation of what I should do to make it work?

problem installing chromium [duplicate] https://askubuntu.com/questions/958014/problem-installing-chromium

I just installed Ubuntu 16.04 LTS, and because I want to use my Chromecast I think I'll need Chrome or Chromium.

The the software-center ("store") doesn't launch.

So I pasted the line sudo apt-get install chromium in the terminal and entered my password.

chromium-bsu:i386 chromium-bsu

I obtained the following text:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package chromium is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  chromium-bsu:i386 chromium-bsu

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package chromium is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  chromium-bsu:i386 chromium-bsu
E: Package 'chromium' has no installation candidate

So I pasted chromium-bsu:i386 chromium-bsu

but got this answer:

chromium-bsu:i386: command not found

What now?

I also downloaded the installation file of Chrome,

google-chrome-42-0-2311-90-32-bit-multi-ubu.deb

but nothing happens when I double-click it

I was a Windows user, so I don't know what to do.

Failed to start Raise network interfaces https://askubuntu.com/questions/795592/failed-to-start-raise-network-interfaces

Ubuntu 16.04 (VM)
Added one virtual NIC ens160, working fine.
Added a second physical NIC ens192 creating the error message.

systemctl status networking.service
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
  Drop-In: /run/systemd/generator/networking.service.d
           └─50-insserv.conf-$network.conf
   Active: failed (Result: exit-code) since Wed 2016-07-06 11:19:04 EDT; 8s ago
     Docs: man:interfaces(5)
  Process: 14290 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
  Process: 14284 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=0/SUCCESS)
 Main PID: 14290 (code=exited, status=1/FAILURE)

Jul 06 11:19:03 gbsnort systemd[1]: Starting Raise network interfaces...
Jul 06 11:19:04 gbsnort ifup[14290]: RTNETLINK answers: File exists
Jul 06 11:19:04 gbsnort ifup[14290]: Failed to bring up ens192.
Jul 06 11:19:04 gbsnort systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 11:19:04 gbsnort systemd[1]: Failed to start Raise network interfaces.
Jul 06 11:19:04 gbsnort systemd[1]: networking.service: Unit entered failed state.
Jul 06 11:19:04 gbsnort systemd[1]: networking.service: Failed with result 'exit-code'.


  6 # The loopback network interface
  7 auto lo
  8 iface lo inet loopback
  9 
 10 # The primary network interface
 11 auto ens160
 12 iface ens160 inet static
 13         address 192.168.2.17
 14         netmask 255.255.255.0
 15         network 192.168.2.0
 16         broadcast 192.168.2.255
 17         gateway 192.168.2.40
 18         # dns-* options are implemented by the resolvconf package, if installed
 19         dns-nameservers 192.168.2.13
 20         dns-search mydomain.com
 21 
 22 # The monitoring interface
 23 auto ens192
 24 iface ens192 inet static
 25         address 192.168.2.12
 26         netmask 255.255.255.0
 27 #       network 192.168.2.0
 28 #       broadcast 192.168.2.255
 29         gateway 192.168.2.40
 30 #       dns-nameservers 192.168.2.13
 31 #       dns-search mydomain.com
 32 
 33 post-up ethtool -K ens192 gro off
 34 post-up ethtool -K ens192 lro off
/etc/init.d/rsyslog {start | stop | restart} : Need this to work https://askubuntu.com/questions/674769/etc-init-d-rsyslog-start-stop-restart-need-this-to-work

I have read the answer/comments for the thread Diffrence between /etc/init.d/ssh start and service ssh start.

But I need this /etc/init.d method to be working. I have some auto-generated scripts which invoke /etc/init.d method only. Could you kindly provide me some fix/workaround for this?

Is there a pdf reader allowing me to change background color of (arXiv) pdfs? https://askubuntu.com/questions/472540/is-there-a-pdf-reader-allowing-me-to-change-background-color-of-arxiv-pdfs

Its quite common that one wishes or has to read lots of PDF files which are intended to be printed, but since one would read them only once, and one wishes to save some trees, one reads them on Acrobat Reader, evince, xpdf or whatever your choice.

It would be an advantage to be able to control the background's color. Instead of black text on white background, I'd like to have a gray background. By googling I just get the inversion of colors as suggestion – which is sometimes even worse for the eyes.

Is there a pdf reader allowing me to change background color (without changing the color of the text)?

Edit: The first comment below suggests it depends on the file. Therefore I added to the title arXiv's.

12.04 Failed to load module "nvidia" (module does not exist, 0) https://askubuntu.com/questions/306090/12-04-failed-to-load-module-nvidia-module-does-not-exist-0

I have ASUS UL50Vt with nvidia optimus hybrid graphics (GeForce 210M). I recently installed ubuntu 12.04, and in Details app it was showing me, that I am on Intel video driver. So, I installed bumblebee and after reboot, Details showed "VESA: GT218 Board - 0698a740" As VESA differs from NVIDIA, I uninstalled bumblebee, but bug hasn't gone :(

Now my Xorg.0.log contains:

cat /var/log/Xorg.0.log | grep nvidia
[    12.616] (II) LoadModule: "nvidia"
[    12.634] (WW) Warning, couldn't open module nvidia
[    12.634] (II) UnloadModule: "nvidia"
[    12.634] (II) Unloading nvidia
[    12.634] (EE) Failed to load module "nvidia" (module does not exist, 0)
[    12.634] (==) Matched nvidia as autoconfigured driver 0
[    12.634] (II) LoadModule: "nvidia"
[    12.634] (WW) Warning, couldn't open module nvidia
[    12.634] (II) UnloadModule: "nvidia"
[    12.634] (II) Unloading nvidia
[    12.634] (EE) Failed to load module "nvidia" (module does not exist, 0)

Additional drivers says, that NVIDIA is activated but not currently in use:

jockey-text --list | grep nvidia
kmod:nvidia_current - nvidia_current (Proprietary, Disabled, Not in use)
kmod:nvidia_current_updates - nvidia_current_updates (Proprietary, Enabled, Not in     use)
kmod:nvidia_experimental_304 - Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)
kmod:nvidia_experimental_310 - Experimental NVIDIA binary Xorg driver, kernel module and VDPAU library (Proprietary, Disabled, Not in use)

NVIDIA X Server Settings writes on start:

You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig as root), and restart the X server.

Suggested by https://askubuntu.com/a/121612/165811

sudo apt-get install linux-headers-`uname -r`
sudo dpkg-reconfigure nvidia-current
sudo nvidia-xconfig
sudo reboot

does not change anything. I'm still on fallback VESA driver. Resolution is 1280x768 instead of 1366x768.

How can I find out why nvidia-current fails to load nvidia module, which, I believe exists:

modprobe -l | grep nvidia
kernel/drivers/video/nvidia/nvidiafb.ko
kernel/drivers/net/ethernet/nvidia/forcedeth.ko
updates/dkms/nvidia_current.ko
updates/dkms/nvidia_current_updates.ko
updates/dkms/nvidia.ko

If it can help, here is my xorg.conf:

cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.88  (buildmeister@swio-display-x86-rhel47-06)  Wed Mar 27 15:32:58 PDT 2013


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Also, how can switch to my on-board Intel graphics, that served me well earlier?

UPDATE

lshw shows me, that my display is UNCLAIMED:

*-display UNCLAIMED
            description: VGA compatible controller
            product: GT218 [GeForce G210M]
            vendor: NVIDIA Corporation
            physical id: 0
            bus info: pci@0000:01:00.0
            version: a2
            width: 64 bits
            clock: 33MHz
            capabilities: pm msi pciexpress vga_controller bus_master cap_list
            configuration: latency=0
            resources: memory:fd000000-fdffffff memory:e0000000-efffffff memory:fa000000-fbffffff ioport:dc00(size=128) memory:f0000000-f007ffff

It looks like linux does not know about my integrated graphics at all:

lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce G210M] (rev a2)
Middle Mouse Button Doesn't work https://askubuntu.com/questions/246475/middle-mouse-button-doesnt-work

After I upgraded to 12.04 LTS my middle mouse button stopped working... it worked fine before the upgrade. I can scroll with the wheel but when i push it down it refuses to work. Can someone tell me how to make my mouse work again?

How to install window decorations from file? https://askubuntu.com/questions/113124/how-to-install-window-decorations-from-file

I got some window decorations from KDE-look.org and I went into settings to change it but it doesn't give me the option to install decorations from file. How do I do so, if it's even possible?