Driver Ethernet and Wifi https://askubuntu.com/questions/1560237/driver-ethernet-and-wifi

Out of nowhere, my laptop is missing the Wi-Fi and Ethernet drivers. I tried USB tethering, but it didn't work. I installed some packages, but still no success. Has anyone else experienced this?

Change passwords on login https://askubuntu.com/questions/1560234/change-passwords-on-login

im trying to make an user that have to change the password every time it logs, so if for example the first time it logs it will ask for a new password and when he logs out and try to log in as well it will have to change the password again.

Sorry in advance for my bad english.

Constant Authentication Required dialogues https://askubuntu.com/questions/1560223/constant-authentication-required-dialogues

I get these Authentication Required dialogues all the time, at startup for enabling the Wifi, for any other Wifi action (even Wifi scanning), also for automatic suspending the system, and for many other things.

Specifically, it says:

Window title: Authentication Required - PolicyKit1 KDE Agent

Title: System policy prevents control of network connections

An application is attempting to perform an action that requires privileges. Authentication is required to perform this action.

Action: Allow control of network connections

ID: org.freedesktop.NetworkManager.network-control

Vendor: NetworkManager

screenshot1 screenshot2 screenshot3 screenshot4

I'm on Ubuntu 24.04 with KDE. This isn't too unusual, or is it?

Is this normal? Do others also see this in KDE? Is this related to KDE?

This system has been through several Ubuntu upgrades over the years. I think I started maybe with Ubuntu 16 (not sure...). Some left-over older configs might be the cause? Or some not-correctly-updated configs?

Note: I don't want to edit some files and do some custom edits. For many of the suggestions that one can find when searching for this problem, it is often suggested to write some custom polkit rule which would avoid the authentication. But I assume with the default Ubuntu configuration, I should not see this (right?). So, I don't want to write custom configs. I just want to get back the original Ubuntu configurations where I would not see this.

I already investigated quite a bit:

/etc/network/interfaces does not exist. There is nothing left over there from an older Ubuntu.

loginctl show-session $XDG_SESSION_ID -p Active gives Active=yes.

/etc/NetworkManager/NetworkManager.conf is correct.

I have policykit-desktop-privileges installed.

I have kubuntu-settings-desktop installed.

journalctl -b --no-pager | grep polkitd showed:

Nov 27 10:32:41 ... polkitd[2584]: Identity 'unix-group:admin' is not valid, ignoring: No UNIX group with name admin: Success

There was no admin user. But this comes from a rule which is also present in the latest polkit package. I also tried to create such an admin group, but this does not really change anything.

My user account is (and always was) part of the sudo and netdev groups.

/etc/polkit-1/ just contains some empty directories, no files.

/usr/share/polkit-1/ has some relevant files. E.g. /usr/share/polkit-1/rules.d/49-ubuntu-admin.rules:

polkit.addAdminRule(function(action, subject) {
    return ["unix-group:sudo", "unix-group:admin"];
});

/usr/share/polkit-1/rules.d/50-default.rules:

polkit.addAdminRule(function(action, subject) {
    return ["unix-group:sudo"];
});

/usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules:

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
        subject.local && subject.active &&
        (subject.isInGroup ("sudo") || subject.isInGroup ("netdev"))) {
        return polkit.Result.YES;
    }
});

/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy:

...
  <action id="org.freedesktop.NetworkManager.network-control">
    ...
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
...

/var/lib/polkit-1 maybe has some relevant files. E.g. /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla. I also installed polkitd-pkla now.

I searched for *.dpkg-dist or *.dpkg-new files but there are basically none.

I did sudo apt install --reinstall -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confnew" network-manager

I was also testing with pkcheck.

I was now testing for some other unrelated action ID which should work without password (right?):

$ pkcheck --action-id org.freedesktop.login1.power-off --process $fish_pid --allow-user-interaction
polkit\56retains_authorization_after_challenge=true
Not authorized.

I was wondering how much the process ID matters here? So I was checking my process tree (ps --forest -u $(whoami) -o pid,comm,args):

    PID COMMAND         COMMAND
  34507 smbd[192.168.0. smbd: client [192.168.0.177]
   3330 startplasma-x11 /usr/bin/startplasma-x11
   3395  \_ ssh-agent    \_ /usr/bin/ssh-agent /usr/bin/im-launch /usr/bin/startplasma-x11
   3424 ibus-x11        /usr/libexec/ibus-x11 --kill-daemon
   3412 ibus-daemon     /usr/bin/ibus-daemon --daemonize --xim
   3417  \_ ibus-memcon  \_ /usr/libexec/ibus-memconf
   3418  \_ ibus-ui-gtk  \_ /usr/libexec/ibus-ui-gtk3
   3419  \_ ibus-extens  \_ /usr/libexec/ibus-extension-gtk3
   3452  \_ ibus-engine  \_ /usr/libexec/ibus-engine-simple
   3075 systemd         /usr/lib/systemd/systemd --user
   3086  \_ (sd-pam)     \_ (sd-pam)
   3135  \_ pipewire     \_ /usr/bin/pipewire
   3136  \_ pipewire     \_ /usr/bin/pipewire -c filter-chain.conf
   3139  \_ wireplumber  \_ /usr/bin/wireplumber
   3140  \_ pipewire-pu  \_ /usr/bin/pipewire-pulse
   3144  \_ dbus-daemon  \_ /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
   3208  \_ gvfsd        \_ /usr/libexec/gvfsd
   3270  \_ at-spi-bus-  \_ /usr/libexec/at-spi-bus-launcher
   3279  |   \_ dbus-da  |   \_ /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-add
   3294  \_ at-spi2-reg  \_ /usr/libexec/at-spi2-registryd --use-gnome-session
   3427  \_ ibus-portal  \_ /usr/libexec/ibus-portal
   3441  \_ xdg-desktop  \_ /usr/libexec/xdg-desktop-portal
   3450  \_ xdg-documen  \_ /usr/libexec/xdg-document-portal
   3457  \_ xdg-permiss  \_ /usr/libexec/xdg-permission-store
   3474  \_ xdg-desktop  \_ /usr/libexec/xdg-desktop-portal-gtk
   3492  \_ xdg-desktop  \_ /usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde
   3513  \_ gcr-ssh-age  \_ /usr/libexec/gcr-ssh-agent --base-dir /run/user/1000/gcr
   3514  \_ gnome-keyri  \_ /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/1000/
   3552  \_ ksmserver    \_ /usr/bin/ksmserver
   4280  |   \_ zotero   |   \_ /bin/bash /usr/lib/zotero/zotero --sm-client-id 1016718dcae8000168634830500000033120016
   4283  |   |   \_ zot  |   |   \_ /usr/lib/zotero/zotero-bin -app /usr/lib/zotero/app/application.ini --sm-client-id 1016718dcae8000
   4538  |   |      Soc  |   |       \_ /usr/lib/zotero/zotero-bin -contentproc -parentBuildID 20240801134912 -prefsLen 21171 -prefMap
   4292  |   \_ konsole  |   \_ /usr/bin/konsole -session 1016718dcae8000162807638200000022750012_1764251546_625764
   4664  |       \_ fis  |       \_ fish
   4671  |       \_ fis  |       \_ fish
  71157  |       |  ps   |       |   \_ ps --forest -u az -o pid,comm,args
   4673  |       \_ fis  |       \_ fish
   5842  |       \_ fis  |       \_ fish
   5894  |       |  mos  |       |   \_ mosh-client -# i6-direct | 137.226.36.158 60015
  63750  |       \_ fis  |       \_ fish
   3554  \_ kded5        \_ /usr/bin/kded5
   3555  \_ kwin_x11     \_ /usr/bin/kwin_x11 --replace
   3579  \_ kglobalacce  \_ /usr/bin/kglobalaccel5
   3585  \_ plasmashell  \_ /usr/bin/plasmashell --no-respawn
   6577  |   \_ chrome   |   \_ /opt/google/chrome/chrome
   6582  |       \_ cat  |       \_ cat
   6583  |       \_ cat  |       \_ cat
   6593  |       \_ chr  |       \_ /opt/google/chrome/chrome --type=zygote --no-zygote-sandbox --string-annotations --crashpad-handle
   6631  |       |  chr  |       |   \_ /opt/google/chrome/chrome --type=gpu-process --string-annotations --crashpad-handler-pid=6585 
   6787  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=broker
   6594  |       \_ chr  |       \_ /opt/google/chrome/chrome --type=zygote --string-annotations --crashpad-handler-pid=6585 --enable-
   6597  |       |  chr  |       |   \_ /opt/google/chrome/chrome --type=zygote --string-annotations --crashpad-handler-pid=6585 --ena
   6635  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=utility --utility-sub-type=storage.mojom.StorageService -
   6658  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6659  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6691  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6700  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6722  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6795  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6868  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6899  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   7019  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   7584  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
  63649  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
  66434  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
  67100  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
  70967  |       |  chr  |       |       \_ /opt/google/chrome/chrome --type=renderer --string-annotations --crashpad-handler-pid=6585
   6633  |       \_ chr  |       \_ /opt/google/chrome/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en
   6990  |       \_ chr  |       \_ /opt/google/chrome/chrome --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US 
   3648  \_ kactivityma  \_ /usr/lib/x86_64-linux-gnu/libexec/kactivitymanagerd
   3653  \_ dconf-servi  \_ /usr/libexec/dconf-service
   3661  \_ gmenudbusme  \_ /usr/bin/gmenudbusmenuproxy
   3662  \_ polkit-kde-  \_ /usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
   3663  \_ org_kde_pow  \_ /usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil
   3664  \_ xembedsnipr  \_ /usr/bin/xembedsniproxy
   3899  \_ xsettingsd   \_ /usr/bin/xsettingsd
   3906  \_ kscreen_bac  \_ /usr/lib/x86_64-linux-gnu/libexec/kf5/kscreen_backend_launcher
   3957  \_ caffeine     \_ /usr/bin/python3 /usr/bin/caffeine
   3971  \_ jetbrains-t  \_ /home/az/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize
   3992  \_ kdeconnectd  \_ /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
   4005  \_ slack        \_ /usr/lib/slack/slack
   4125  |   \_ slack    |   \_ /usr/lib/slack/slack --type=zygote --no-zygote-sandbox
   4227  |   |   \_ sla  |   |   \_ /usr/lib/slack/slack --type=gpu-process --crashpad-handler-pid=4187 --enable-crash-reporter=6e3d50
   4456  |   |      sla  |   |       \_ /usr/lib/slack/slack --type=broker
   4126  |   \_ slack    |   \_ /usr/lib/slack/slack --type=zygote
   4144  |   |   \_ sla  |   |   \_ /usr/lib/slack/slack --type=zygote
   4593  |   |      sla  |   |       \_ /usr/lib/slack/slack --type=renderer --crashpad-handler-pid=4187 --enable-crash-reporter=6e3d5
   4231  |   \_ slack    |   \_ /usr/lib/slack/slack --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --ser
   4961  |   \_ slack    |   \_ /usr/lib/slack/slack --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US --service
   4041  \_ agent        \_ /usr/libexec/geoclue-2.0/demos/agent
   4045  \_ kaccess      \_ /usr/bin/kaccess
   4056  \_ DiscoverNot  \_ /usr/lib/x86_64-linux-gnu/libexec/DiscoverNotifier
   4082  \_ obexd        \_ /usr/libexec/bluetooth/obexd
   4187  \_ chrome_cras  \_ /usr/lib/slack/chrome_crashpad_handler --monitor-self-annotation=ptype=crashpad-handler --no-upload-gzip -
   4233  \_ kwalletd5    \_ /usr/bin/kwalletd5
   4352  \_ gpg-agent    \_ /usr/bin/gpg-agent --supervised
   6201  \_ python3      \_ python3 /home/az/Programmierung/userspace-mouse-scroll-wheel-acceleration/main.py
   6585  \_ chrome_cras  \_ /opt/google/chrome/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler
   6587  \_ chrome_cras  \_ /opt/google/chrome/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-ha
  61224  \_ spectacle    \_ /usr/bin/spectacle --dbus
   3038 chrome-remote-d /usr/bin/python3 /opt/google/chrome-remote-desktop/chrome-remote-desktop --child-process --config=/home/az/.co
   3138  \_ (sd-pam)     \_ (sd-pam)
   3195  \_ pipewire     \_ pipewire -c /run/user/1000/crd_audio#_soK6AZs6k/pipewire.conf
   3196  \_ pipewire     \_ pipewire -c /run/user/1000/crd_audio#_soK6AZs6k/pipewire-pulse.conf
   3197  \_ wireplumber  \_ wireplumber -c /run/user/1000/crd_audio#_soK6AZs6k/wireplumber.conf
   3206  \_ Xorg         \_ /usr/lib/xorg/Xorg :20 -auth /home/az/.Xauthority -nolisten tcp -noreset -logfile /dev/null -verbose 3 -co
   3265  \_ chrome-remo  \_ /opt/google/chrome-remote-desktop/chrome-remote-desktop-host --type=xsession_chooser
   3267  \_ chrome-remo  \_ /opt/google/chrome-remote-desktop/chrome-remote-desktop-host --host-config=- --audio-pipe-name=/run/user/1

The shell did not work. kwin_x11 did not work. kded5 did not work. systemd did not work. But interestingly, the startplasma-x11 did work? I.e. pkcheck --action-id org.freedesktop.login1.power-off --process 3330 returned with exit code 0.

Hm, loginctl session-status looks weird?

$ loginctl session-status
c1 - az (1000)
           Since: Thu 2025-11-27 14:54:16 CET; 23h ago
          Leader: 3038 (chrome-remote-d)
             TTY: chrome-remote-desktop
         Service: chrome-remote-desktop; type x11; class user
           State: active
            Unit: session-c1.scope
                  ├─3038 /usr/bin/python3 /opt/google/chrome-remote-desktop/chrome-remote-desktop --child-process --config=/home/az/.config/chrome-remote-d>
                  ├─3138 "(sd-pam)"
                  ├─3195 pipewire -c /run/user/1000/crd_audio#_soK6AZs6k/pipewire.conf
                  ├─3196 pipewire -c /run/user/1000/crd_audio#_soK6AZs6k/pipewire-pulse.conf
                  ├─3197 wireplumber -c /run/user/1000/crd_audio#_soK6AZs6k/wireplumber.conf
                  ├─3206 /usr/lib/xorg/Xorg :20 -auth /home/az/.Xauthority -nolisten tcp -noreset -logfile /dev/null -verbose 3 -configdir /tmp/chrome_remo>
                  ├─3265 /opt/google/chrome-remote-desktop/chrome-remote-desktop-host --type=xsession_chooser
                  └─3267 /opt/google/chrome-remote-desktop/chrome-remote-desktop-host --host-config=- --audio-pipe-name=/run/user/1000/crd_audio#_soK6AZs6k>

Maybe the chrome-remote-desktop installation that I did some time ago is messing this up somehow?

Maybe related:

Programs can't virtual blur webcam on Ubuntu 24.04.3 https://askubuntu.com/questions/1560221/programs-cant-virtual-blur-webcam-on-ubuntu-24-04-3

I use Zoom and other video chat programs frequently and I need the webcam for meetings but don't really want to show the stuff in the background, given this I tested Web and clients to find that every time I try to blur the background or adding a custom background the webcam image straight up freezes and just just removing the blur the video returns to working.

Tested in Zoom web (chrome) and Linux client (installed from app center), Teams on web and PWA app and video with blurred or custom backgrounds works fine. Other non chat apps like Cheese also blurs and apply effects without breaking the video.

Used Firefox for web based tests and video is working with blurred background and with customized backgrounds

Running Ubuntu 24.04.3 on Lenovo P16s (latest model) with all additional drivers installed. webcam working as intended just blurred or custom backgrounds stops video streaming

results from getting webcam info

❯ v4l2-ctl --list-devices
Integrated Camera: Integrated C (usb-0000:00:14.0-4):
    /dev/video0
    /dev/video1
    /dev/video2
    /dev/video3
    /dev/media0
    /dev/media1

❯ sudo v4l2-ctl --device=/dev/video0 --all
Driver Info:
    Driver name      : uvcvideo
    Card type        : Integrated Camera: Integrated C
    Bus info         : usb-0000:00:14.0-4
    Driver version   : 6.14.11
    Capabilities     : 0x84a00001
        Video Capture
        Metadata Capture
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04200001
        Video Capture
        Streaming
        Extended Pix Format
Media Driver Info:
    Driver name      : uvcvideo
    Model            : Integrated Camera: Integrated C
    Serial           : 200901010001
    Bus info         : usb-0000:00:14.0-4
    Media version    : 6.14.11
    Hardware revision: 0x00006820 (26656)
    Driver version   : 6.14.11
Interface Info:
    ID               : 0x03000002
    Type             : V4L Video
Entity Info:
    ID               : 0x00000001 (1)
    Name             : Integrated Camera: Integrated C
    Function         : V4L2 I/O
    Flags            : default
    Pad 0x01000007   : 0: Sink
      Link 0x02000016: from remote pad 0x100000a of entity 'Extension 8' (Video Pixel Formatter): Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
    Width/Height      : 1280/720
    Pixel Format      : 'MJPG' (Motion-JPEG)
    Field             : None
    Bytes per Line    : 0
    Size Image        : 1843200
    Colorspace        : sRGB
    Transfer Function : Rec. 709
    YCbCr/HSV Encoding: ITU-R 601
    Quantization      : Default (maps to Full Range)
    Flags             : 
Crop Capability Video Capture:
    Bounds      : Left 0, Top 0, Width 1280, Height 720
    Default     : Left 0, Top 0, Width 1280, Height 720
    Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 1280, Height 720, Flags: 
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1280, Height 720, Flags: 
Streaming Parameters Video Capture:
    Capabilities     : timeperframe
    Frames per second: 30.000 (30/1)
    Read buffers     : 0

User Controls

                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast 0x00980901 (int)    : min=0 max=100 step=1 default=32 value=32
                     saturation 0x00980902 (int)    : min=0 max=100 step=1 default=64 value=64
                            hue 0x00980903 (int)    : min=-180 max=180 step=1 default=0 value=0
        white_balance_automatic 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=90 max=150 step=1 default=120 value=120
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=1 value=1 (50 Hz)
                0: Disabled
                1: 50 Hz
                2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=2800 max=6500 step=10 default=4600 value=4600 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=7 step=1 default=3 value=3
         backlight_compensation 0x0098091c (int)    : min=0 max=2 step=1 default=1 value=1

Camera Controls

                  auto_exposure 0x009a0901 (menu)   : min=0 max=3 default=3 value=3 (Aperture Priority Mode)
                1: Manual Mode
                3: Aperture Priority Mode
         exposure_time_absolute 0x009a0902 (int)    : min=2 max=1250 step=1 default=156 value=156 flags=inactive
     exposure_dynamic_framerate 0x009a0903 (bool)   : default=0 value=1
                        privacy 0x009a0910 (bool)   : default=0 value=0 flags=read-only
Ghostscript unable to write to non-boot volume after update to 25.10 https://askubuntu.com/questions/1560219/ghostscript-unable-to-write-to-non-boot-volume-after-update-to-25-10

I'm having a hard time figuring out the best place to ask this question, but starting here since the problem started when I updated Ubuntu from 25.04 to 25.10 last month. In a nutshell, I have two physical volumes in my laptop, and after updating 25.10, Ghostscript can no longer write PDFs to one of them (but only one of them).

My hardware setup is as follows:

  • Boot drive that includes $HOME (i.e., /home/user).

  • Second physical drive, symlinked from $HOME to store the bulk of my data. My main documents directory, therefore, is physically located at /mnt/data/user/Documents, though user@machine~/Documents$ pwd returns /home/user/Documents.

  • ETA: Both drives use ext4.

I am using Ghostscript, and particularly the ps2pdf script, as part of a LaTeX workflow for a document I update every month. I use TeXLive 2025 and my document makes heavy use of pstricks, so pdflatex is not a good option for me (and yes, I realize there may be options for working around Ghostscript, but I occasionally use it for other purposes so would like it to work regardless).

Here is the now-problematic workflow for a small, two-page test document when I execute it in ~/Documents (but I run into the same error regardless of the document):

$ latex test.tex
...
Output written on test.dvi (2 pages, 436 bytes)
...

$ dvips test.dvi
...
[1] [2]

$ ps2pdf test.ps
GPL Ghostscript 10.05.0: **** Could not open the file test.pdf .
**** Unable to open the initial device, quitting.

I also tried skipping the ps2pdf script and using a simple Ghostscript command directly, with the same result:

$ gs -sDEVICE=pdfwrite -sOutputFile=test.pdf test.ps
GPL Ghostscript 10.05.0: **** Could not open the file test.pdf .**** Unable to open the initial device, quitting.

This happens no matter which subdirectory of ~/Documents I use, and also in other directories that are physically located on /mnt/data (e.g., ~/Pictures). However, if I run it in $HOME (or subdirectory of $HOME that is physically located on my boot drive), the PDF is produced without error as it has been every month for the last 6 years. Hence my conclusion that the problem is related to the physical volume somehow.

What I have tried:

  • Reinstalling ghostscript.

  • Checking directory owners and permissions.

    • $HOME: drwxr-xr-x 52 user user

    • /mnt/data/user: drwxrwxrwx 11 user user

    • /mnt/data/user/Documents: drwxrwxr-x 56 user user

    • Owners and permissions for all subdirectories of /mnt/data/user appear to be the same as for /mnt/data/user/Documents.

  • Running sudo ps2pdf test.ps, which gives the same error as when running as user.

  • Providing the full path to the input file, both as ps2pdf /mnt/data/user/Documents/test.ps and ps2pdf ~/Documents/test.ps, which gives the same error.

  • ETA: Adding the -dNOSAFER flag to the direct gs command makes no difference (and as far as I can tell, it is included in the command ultimately generated by ps2pdf).

Ghostscript is the only application for which I have experienced this problem, and only since the update to Ubuntu 25.10. I believe, but am not 100% sure, that the Ghostscript version was 10.05.0 for both 25.04 and 25.10, but I think it could have been 10.03.1 on 25.04.

VLC fails network stream in Ubuntu 22.04 https://askubuntu.com/questions/1560218/vlc-fails-network-stream-in-ubuntu-22-04

I use VLC to monitor a DVR via RTSP. Suddenly it stopped connecting. I have tried everything I can find, but it still fails to connect.

VLC version is 3.0.16 Vetinari. It used to work, then about a week ago, it started to fail, giving:

"Your input can't be opened: VLC is unable to open the MRL 'rtsp://192.168.1.195:554/ch04/0'. Check the log for details."

I have tried removing and reinstalling, both with Symantic and 'sudo apt install', which I think means snap. I tried 'sudo apt-get install', but it makes no difference. I have a log output, very long, but I cannot understand what it is telling. I can post it if it would help.

This first started on my daily-use Desktop, for a day the backup laptop worked, then it also failed. I assume there was some kind of update that borked it. The laptop has 3.0.20 Vetinari.

How to run a command in a terminal only if the previous commands succeed? https://askubuntu.com/questions/1560213/how-to-run-a-command-in-a-terminal-only-if-the-previous-commands-succeed

I want to open a terminal and automatically open a folder and run a command within it

For this, I have the following:

:~$ gnome-terminal --working-directory=/home/project -- code .

This runs code . (opens VSCode in the current folder) after it opens the terminal in /home/project.

  1. Is this behaviour guaranteed that it will navigate to the working directory and then run code .

    I ask because I do not want code . to run in the current directory from where the command is issued and then the terminal opens in the working directory.

  2. This seems to work fine if the working directory exists. But if /home/project does not exist, I want the entirety of the above command to fail. At present, it still runs code . if the working directory does not exist in the current folder from the above command is issued.

Bluetooth can not be turned on after login with new laptop and fresh installed 24.04. upgrade to the latest 25.xx. issue still presents https://askubuntu.com/questions/1560212/bluetooth-can-not-be-turned-on-after-login-with-new-laptop-and-fresh-installed-2

behaviour is following:

  • on the login screen. the Bluetooth is toggled on, BT device are visible. seems working
  • after login (entering PW and get into Ubuntu), the Bluetooth button is gray, and can not be turn on.

only solution for me now, is each time to "rmmod btusb btintel && modprobe btusb btintel". but once the laptop is log out and back, the BT icon can not be turned on again.

How can I enable macOS-style keyboard shortcuts on a MacBook running Ubuntu as its only OS https://askubuntu.com/questions/1560191/how-can-i-enable-macos-style-keyboard-shortcuts-on-a-macbook-running-ubuntu-as-i

I would like to install Ubuntu 25.10 as the exclusive OS on a old MacBook and would like to use macOS-style keyboard shortcuts — for example Command+C for copy, Command+V for paste, and Command+Tab to switch apps. Is there a way to make the Command () key behave like Ctrl system-wide in Ubuntu? Ideally a simple solution that works across all applications.

How to restart "Ubuntu Software" process; the "check for updates" has been spinning ("Checking...") for hours https://askubuntu.com/questions/1560185/how-to-restart-ubuntu-software-process-the-check-for-updates-has-been-spinn

As in the title. I'm trying to get two snap packages updated, but the Updates report is apparently very stuck.

Edit to add =-=-=-=-

I found the snap-store_ubuntu-software.desktop file with

[Desktop Entry]
X-SnapInstanceName=snap-store
Name=Ubuntu Software
Comment=Add, remove or update software on this computer
Icon=ubuntusoftware
X-SnapAppName=ubuntu-software
Exec=/snap/bin/snap-store.ubuntu-software %U
Terminal=false
Type=Application
Categories=GNOME;GTK;System;PackageManager;
Keywords=Updates;Upgrade;Sources;Repositories;Preferences;Install;Uninstall;Program;Software;App;Store;
OnlyShowIn=ubuntu
StartupNotify=true
MimeType=x-scheme-handler/appstream;x-scheme-handler/apt;x-scheme-handler/snap;

The only snap-store process running is /snap/snap-store/1216/usr/bin/snap-store --gapplication-service

Is it safe to kill and restart?

End of addition =-=-=-=-

I can't actually remember the icon/button I clicked in the "Updates" tab to start the Check for Updates, because the process is apparently still running and won't stop.

Sequence of events:

  1. Clicked on header (with date/time) which reported "[list of 3 snap softwares] are ready to update; exit [list] for updates"
  2. Exited one of the programs and it got updated.
  3. Of the other two, one was not running, and one was.
  4. I clicked the "down-arrow" on the updates required notice (which now only lists the two) and clicked on the "show updates" which popped up the "Ubuntu Software" window with its "Explore" "Installed" "Updates" tabs.
  5. Clicked on the Updates tab; selected "Check for Updates" or something like that above the list of [two] programs.
  6. Top left of window has spinning icon in front of "Checking..." message and nothing seems to stop it; apparent "stop" button? (Black square to the left of spinning icon) does nothing; Closing (Clicking "x" icon in top right of heading) window does nothing.

I can't figure out what actual program is running. The only .desktop files I can find associated with software and/or updates (e.g. /snap/snap-store/[version]/ubuntu-software-service.desktop, meta/gui/ubuntu-software-local-file.desktop, meta/gui/ubuntu-software.desktop, meta/gui/show-updates.desktop, etc.) info don't seem to have an identifiable process attached. (ps -ef | grep -Ei '(software|update)' | less) show a kworker/R-hfi-update, which seems irrelevant.

Why does restoring from hibernation goes to login screen, not lockscreen https://askubuntu.com/questions/1560094/why-does-restoring-from-hibernation-goes-to-login-screen-not-lockscreen

using "lockscreen extension" to customize my lock screen - looks and runs GREAT with Linux 6.8.0-85-generic kernel, but every other kernel since then (6.8.0-86, 6.8.0-87, and latest 6.8.0-88) restoring goes to the grub-customizer fancy login screen instead (bummer) ~ WHY?

All the newer kernels do fine resuming from suspend and going to my fancy lock screen, just restoring using them has this weird 'BUG'.

The other 'BUG' these newer kernels seem to be afflicted with is when restoring, my USB wifi gets rerouted (from router) to the one my PCI wifi uses (an extender) - normally this only happens upon initial boot, even with my favorite Linux 6.8.0-85-generic kernel. But upon restoring it stays with router... but not with newer kernels that reroute it to the extender :-\ They do fine leaving it alone resuming...

assumed it would be understood based on kernels used 24.04lts and kernels are indicated above... 'flavor'? like wayland? Other kernels that 'worked well' was 6.8.0-53, 6.8.0-79 and 6.8.0-84 - no issues with those...

I read askubuntu.com/help/how-to-ask and took the tour - so, couldn't find anything 'violated'... what gives? ...such zeal to close ~ wow!

should I just use forum.linuxconfig.org instead of askubuntu?

How can I revert a config file back to the originally installed? [duplicate] https://askubuntu.com/questions/1559199/how-can-i-revert-a-config-file-back-to-the-originally-installed

In this post: How can I revert a config file back to the originally installed version after I have edited it? Someone said

Because the other options in dpkg doesn't work well.

Is there a Bug reference in Ubuntu database describing these issues ? I am trying to overwrite changes to config files when installing a package, and although I installed with -o DPkg::Options::="--force-confnew", local changes to config file are NOT overwriten.

I am running an Ubuntu jammy, currently installed packages versions are:

linux-image-generic 5.15.0.161.157
dpkg 1.21.1ubuntu2.6
apt 2.4.14

From reading previous mentioned thread, I understood that I should try using these options for it to work as expected: -o DPkg::Options::="--force-confnew" -o DPkg::Options::="--force-confask" [-o DPkg::Options::="--force-confmiss"]

I tested with all 3 options (--force-confnew, --force-confask, --force-confmiss"). And local changes to my config file are still NOT overwritten !

Copying logs with dpkg debug activated (the modified config file that should have been rewritten is utl-infra.conf):

# apt-get -o APT::Get::Allow-Downgrades="true" -o APT::Get::Assume-Yes="true" -o Dpkg::Options="--force-confnew" -o Dpkg::Options="--force-confmiss" -o Dpkg::Options="--force-confask" install x-ntp=1.5-2804-5248a1af
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
  x-ntp
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://mesta-repo.epod.idemia.com/mestafocus branches/main/main amd64 x-ntp all 1.5-2804-5248a1af [14.1 kB]
Fetched 14.1 kB in 0s (342 kB/s)  
Beginning to order
Done ordering
  SmartUnPack x-ntp:amd64 (replace version 1.3-20250918111734 with 1.5-2804-5248a1af)
  PreDepends order for x-ntp:amd64
  Found ok package x-fusion-base:amd64
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 90641 files and directories currently installed.)
Preparing to unpack .../x-ntp_1.5-2804-5248a1af_all.deb ...
got from dpkg 'processing: upgrade: x-ntp'
D000200: process_archive conffile '/etc/bashrc.d/60-x-ntp' in package x-ntp:all - conff ?
D000020: process_archive conffile '/etc/bashrc.d/60-x-ntp' package=x-ntp:all same hash=3225b8adf1b814da634112c9856b88a0
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-common.conf' in package x-ntp:all - conff ?
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-common.conf' in package x-ntp:all - conff ? not '/etc/bashrc.d/60-x-ntp'
D000020: process_archive conffile '/etc/chrony/x-ntp/utl-common.conf' package=x-ntp:all same hash=e3e8002d5fb4764a34c26dda7978eb3f
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-image.conf' in package x-ntp:all - conff ?
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-image.conf' in package x-ntp:all - conff ? not '/etc/bashrc.d/60-x-ntp'
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-image.conf' in package x-ntp:all - conff ? not '/etc/chrony/x-ntp/utl-common.conf'
D000020: process_archive conffile '/etc/chrony/x-ntp/utl-image.conf' package=x-ntp:all same hash=252b05ab52bf6802cd61d2a47a6d5890
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-infra.conf' in package x-ntp:all - conff ?
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-infra.conf' in package x-ntp:all - conff ? not '/etc/bashrc.d/60-x-ntp'
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-infra.conf' in package x-ntp:all - conff ? not '/etc/chrony/x-ntp/utl-common.conf'
D000200: process_archive conffile '/etc/chrony/x-ntp/utl-infra.conf' in package x-ntp:all - conff ? not '/etc/chrony/x-ntp/utl-image.conf'
D000020: process_archive conffile '/etc/chrony/x-ntp/utl-infra.conf' package=x-ntp:all same hash=9e55a85dead233239a86f204453ed488
D000200: process_archive conffile '/etc/sudoers.d/x-ntp' in package x-ntp:all - conff ?
D000200: process_archive conffile '/etc/sudoers.d/x-ntp' in package x-ntp:all - conff ? not '/etc/bashrc.d/60-x-ntp'
D000200: process_archive conffile '/etc/sudoers.d/x-ntp' in package x-ntp:all - conff ? not '/etc/chrony/x-ntp/utl-common.conf'
D000200: process_archive conffile '/etc/sudoers.d/x-ntp' in package x-ntp:all - conff ? not '/etc/chrony/x-ntp/utl-image.conf'
D000200: process_archive conffile '/etc/sudoers.d/x-ntp' in package x-ntp:all - conff ? not '/etc/chrony/x-ntp/utl-infra.conf'
D000020: process_archive conffile '/etc/sudoers.d/x-ntp' package=x-ntp:all same hash=54913e6a346cc0b8326f062f346a95ea
D000200: pkg_conffiles_mark_old '/etc/bashrc.d/60-x-ntp' namenode '/etc/bashrc.d/60-x-ntp' flags 5
D000200: pkg_conffiles_mark_old '/etc/chrony/x-ntp/utl-common.conf' namenode '/etc/chrony/x-ntp/utl-common.conf' flags 5
D000200: pkg_conffiles_mark_old '/etc/chrony/x-ntp/utl-image.conf' namenode '/etc/chrony/x-ntp/utl-image.conf' flags 5
D000200: pkg_conffiles_mark_old '/etc/chrony/x-ntp/utl-infra.conf' namenode '/etc/chrony/x-ntp/utl-infra.conf' flags 5
D000200: pkg_conffiles_mark_old '/etc/sudoers.d/x-ntp' namenode '/etc/sudoers.d/x-ntp' flags 5
got from dpkg 'status: x-ntp: half-configured'
(parsed from dpkg) pkg: x-ntp:amd64 action: half-configured (expected: 'half-installed' 0 of 4)
                                                                                                                                             got from dpkg 'status: x-ntp: unpacked'
                                                                                                                                                                                    (parsed from dpkg) pkg: x-ntp:amd64 action: unpacked (expected: 'half-installed' 0 of 4)
                                                                                     got from dpkg 'status: x-ntp: half-installed'
                                                                                                                                  (parsed from dpkg) pkg: x-ntp:amd64 action: half-installed (expected: 'half-installed' 0 of 4)
Unpacking x-ntp (1.5-2804-5248a1af) over (1.3-20250918111734) ...
D000200: conffderef in='/etc/bashrc.d/60-x-ntp' current working='/etc/bashrc.d/60-x-ntp'
D000020: conffderef in='/etc/bashrc.d/60-x-ntp' result='/etc/bashrc.d/60-x-ntp'
D000020: tarobject FNNF_NEW_CONFF deref='/etc/bashrc.d/60-x-ntp'
D000200: tarobject conffile extracted
D000200: conffderef in='/etc/chrony/x-ntp/utl-common.conf' current working='/etc/chrony/x-ntp/utl-common.conf'
D000020: conffderef in='/etc/chrony/x-ntp/utl-common.conf' result='/etc/chrony/x-ntp/utl-common.conf'
D000020: tarobject FNNF_NEW_CONFF deref='/etc/chrony/x-ntp/utl-common.conf'
D000200: tarobject conffile extracted
D000200: conffderef in='/etc/chrony/x-ntp/utl-image.conf' current working='/etc/chrony/x-ntp/utl-image.conf'
D000020: conffderef in='/etc/chrony/x-ntp/utl-image.conf' result='/etc/chrony/x-ntp/utl-image.conf'
D000020: tarobject FNNF_NEW_CONFF deref='/etc/chrony/x-ntp/utl-image.conf'
D000200: tarobject conffile extracted
D000200: conffderef in='/etc/chrony/x-ntp/utl-infra.conf' current working='/etc/chrony/x-ntp/utl-infra.conf'
D000020: conffderef in='/etc/chrony/x-ntp/utl-infra.conf' result='/etc/chrony/x-ntp/utl-infra.conf'
D000020: tarobject FNNF_NEW_CONFF deref='/etc/chrony/x-ntp/utl-infra.conf'
D000200: tarobject conffile extracted
D000200: conffderef in='/etc/sudoers.d/x-ntp' current working='/etc/sudoers.d/x-ntp'
D000020: conffderef in='/etc/sudoers.d/x-ntp' result='/etc/sudoers.d/x-ntp'
D000020: tarobject FNNF_NEW_CONFF deref='/etc/sudoers.d/x-ntp'
D000200: tarobject conffile extracted
D000200: pkg_remove_old_files: removing conffile '/etc/bashrc.d/60-x-ntp' for x-ntp:all?
D000200: pkg_remove_old_files: removing conffile '/etc/chrony/x-ntp/utl-common.conf' for x-ntp:all?
D000200: pkg_remove_old_files: removing conffile '/etc/chrony/x-ntp/utl-image.conf' for x-ntp:all?
D000200: pkg_remove_old_files: removing conffile '/etc/chrony/x-ntp/utl-infra.conf' for x-ntp:all?
D000200: pkg_remove_old_files: removing conffile '/etc/sudoers.d/x-ntp' for x-ntp:all?
got from dpkg 'status: x-ntp: unpacked'
(parsed from dpkg) pkg: x-ntp:amd64 action: unpacked (expected: 'unpacked' 1 of 4)
                                                                                                                         Setting up x-ntp (1.5-2804-5248a1af) ...
got from dpkg 'processing: configure: x-ntp'
got from dpkg 'status: x-ntp: unpacked'
                                                                                   (parsed from dpkg) pkg: x-ntp:amd64 action: unpacked (expected: 'half-configured' 2 of 4)
                                                                                                                                                                            D000200: conffderef in='/etc/bashrc.d/60-x-ntp' current working='/etc/bashrc.d/60-x-ntp'
D000020: conffderef in='/etc/bashrc.d/60-x-ntp' result='/etc/bashrc.d/60-x-ntp'
D000020: deferred_configure '/etc/bashrc.d/60-x-ntp' (= '/etc/bashrc.d/60-x-ntp') useredited=-1 distedited=-1 what=2
D000200: conffderef in='/etc/chrony/x-ntp/utl-common.conf' current working='/etc/chrony/x-ntp/utl-common.conf'
D000020: conffderef in='/etc/chrony/x-ntp/utl-common.conf' result='/etc/chrony/x-ntp/utl-common.conf'
D000020: deferred_configure '/etc/chrony/x-ntp/utl-common.conf' (= '/etc/chrony/x-ntp/utl-common.conf') useredited=-1 distedited=-1 what=2
D000200: conffderef in='/etc/chrony/x-ntp/utl-image.conf' current working='/etc/chrony/x-ntp/utl-image.conf'
D000020: conffderef in='/etc/chrony/x-ntp/utl-image.conf' result='/etc/chrony/x-ntp/utl-image.conf'
D000020: deferred_configure '/etc/chrony/x-ntp/utl-image.conf' (= '/etc/chrony/x-ntp/utl-image.conf') useredited=-1 distedited=-1 what=2
D000200: conffderef in='/etc/chrony/x-ntp/utl-infra.conf' current working='/etc/chrony/x-ntp/utl-infra.conf'
D000020: conffderef in='/etc/chrony/x-ntp/utl-infra.conf' result='/etc/chrony/x-ntp/utl-infra.conf'
D000020: deferred_configure '/etc/chrony/x-ntp/utl-infra.conf' (= '/etc/chrony/x-ntp/utl-infra.conf') useredited=1 distedited=0 what=2
D000200: conffderef in='/etc/sudoers.d/x-ntp' current working='/etc/sudoers.d/x-ntp'
D000020: conffderef in='/etc/sudoers.d/x-ntp' result='/etc/sudoers.d/x-ntp'
D000020: deferred_configure '/etc/sudoers.d/x-ntp' (= '/etc/sudoers.d/x-ntp') useredited=-1 distedited=-1 what=2
got from dpkg 'status: x-ntp: half-configured'
(parsed from dpkg) pkg: x-ntp:amd64 action: half-configured (expected: 'half-configured' 2 of 4)
                                                                                                                                              got from dpkg 'status: x-ntp: installed'

And I am pretty sure file is detected as a conffile, and has been localy modified:

# dpkg --status x-ntp | grep utl-infra.conf; md5sum /etc/chrony/x-ntp/utl-infra.conf
 /etc/chrony/x-ntp/utl-infra.conf 9e55a85dead233239a86f204453ed488
c95324d1befd427a7e4c9686fc86a5cd  /etc/chrony/x-ntp/utl-infra.conf

I did an additional test to compare results of following 2 commands (the first one does not overwrite conffile changes, the second does):

  1. apt-get ... -o Dpkg::Options="--force-confnew" -o Dpkg::Options="--force-confmiss" -o Dpkg::Options="--force-confask" install x-ntp=1.3-20250918111734

  2. dpkg -i --force-confnew --force-confmiss --force-confask ./x-ntp_1.3-20250918111734_all.deb

Only noticeable differences in dpkg debug logs are on line

with apt: D000020: deferred_configure '/etc/chrony/x-ntp/utl-infra.conf' (= '/etc/chrony/x-ntp/utl-infra.conf') useredited=1 distedited=0 what=2

with dpkg: D000020: deferred_configure '/etc/chrony/x-ntp/utl-infra.conf' (= '/etc/chrony/x-ntp/utl-infra.conf') useredited=1 distedited=0 what=3

Note that this 'x-ntp' package is a proprietary package that we developped internaly. But is has nothing special, it just installs a couple of files to /etc and /usr, it does not have any: pre/postinst, pre/postrm, service, triggers, diverts ... . It is successfully installed and files copied to /etc are correctly detected by dpkg as conffiles, so I do not think the issue is anywhere inside this package (unless something special needs to be declared for config files if you need them to be correctly overwritten when using --force-confnew).

Canon printer driver cnijfilter2-5.90-1-deb fails to install on 25.10 with dependecy on libxml2 [duplicate] https://askubuntu.com/questions/1558980/canon-printer-driver-cnijfilter2-5-90-1-deb-fails-to-install-on-25-10-with-depen

I have a brand new Xubuntu 25.10 system. Canon printer driver cnijfilter2-5.90-1-deb fails to install with dependency on libxml2.

The install.sh script says it wants libxml2 >= 2.7.4 But dpkg appears to show libxml2 2.14.5+dfsg-0.2 which is higher than 2.7.4

This worked on all earlier versions of *ubuntu that I've tried. 25.04, 24.10, even 16.04.

Typescript from the installation is below.

If anyone can suggest a solution, I'd appreciate any hints or tips.

Thank you for reading this

leon
# cat /etc/os-release
PRETTY_NAME="Ubuntu 25.10"
 . . .

# cd cnijfilter2-5.90-1-deb

# ./install.sh
==================================================

Canon Inkjet Printer Driver
Version 5.90
Copyright CANON INC. 2001-2019

==================================================
Command executed = sudo dpkg -iG ./packages/cnijfilter2_5.90-1_amd64.deb
Selecting previously unselected package cnijfilter2.
 . . .
Preparing to unpack .../cnijfilter2_5.90-1_amd64.deb ...
Unpacking cnijfilter2 (5.90-1) ...
dpkg: dependency problems prevent configuration of cnijfilter2:
 cnijfilter2 depends on libxml2 (>= 2.7.4); however:
  Package libxml2 is not installed.

dpkg: error processing package cnijfilter2 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cnijfilter2
Command executed = sudo dpkg -P cnijfilter2
 . . .
Removing cnijfilter2 (5.90-1) ...
Purging configuration files for cnijfilter2 (5.90-1) ...
Processing triggers for libc-bin (2.42-0ubuntu3) ...

# dpkg -l | grep --colour=never xml2
ii  libxml-libxml-perl                       2.0207+dfsg+really+2.0207-0ubuntu6         amd64        Perl interface to the libxml2 library
ii  libxml2-16:amd64                         2.14.5+dfsg-0.2                            amd64        GNOME XML library
ii  libxml2-utils                            2.14.5+dfsg-0.2                            amd64        GNOME XML library - utilities
ii  python3-libxml2                          2.14.5+dfsg-0.2                            amd64        GNOME XML library - Python3 bindings
ii  python3-lxml:amd64                       6.0.1-1                                    amd64        pythonic binding for the libxml2 and libxslt libraries
kerneloops, chrome-gnome-shell, policykit-1 packages are not available in 25.04 https://askubuntu.com/questions/1547844/kerneloops-chrome-gnome-shell-policykit-1-packages-are-not-available-in-25-04

After upgrading my system from Ubuntu 24.10 to 25.04, the command:

$ pro security-status --unavailable

lists (among the known, manually installed packages by me) the following packages too: kerneloops, chrome-gnome-shell, and policykit-1.

I get the same list using the command:

$ apt --installed list | grep ,local

Doing a search in https://packages.ubuntu.com/ reveals also that these are not available in plucky.

What is the recommended action?


Comments for @heynnema :

The package policykit-1 is still installed on my system:

$ apt --installed list | grep -i policykit

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

policykit-1-gnome/plucky,now 0.105-8 amd64 [installed,automatic]
policykit-1/now 124-2ubuntu1.24.10.2 amd64 [installed,local]
policykit-desktop-privileges/plucky,plucky,now 0.22 all [installed]

And I have the following:

$ systemctl status polkit.service 
● polkit.service - Authorization Manager
     Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
     Active: active (running) since Tue 2025-07-22 10:55:44 +03; 1h 5min ago
 Invocation: cb0b9ba7d5cb46f68bc1d20b6dee8298
       Docs: man:polkit(8)
   Main PID: 1686 (polkitd)
     Status: "Processing requests..."
      Tasks: 4 (limit: 27937)
     Memory: 6.9M (peak: 7.7M)
        CPU: 762ms
     CGroup: /system.slice/polkit.service
             └─1686 /usr/lib/polkit-1/polkitd --no-debug --log-level=notice

Jul 22 10:55:44 xxx polkitd[1686]: Error opening rules directory: Error opening directory “/run/polkit-1/rules.d”: No such file or directory (g-file-error-quark, 4)
Jul 22 10:55:44 xxx polkitd[1686]: Loading rules from directory /usr/local/share/polkit-1/rules.d
Jul 22 10:55:44 xxx polkitd[1686]: Error opening rules directory: Error opening directory “/usr/local/share/polkit-1/rules.d”: No such file or directory (g-file-error-quark, 4)
Jul 22 10:55:44 xxx polkitd[1686]: Loading rules from directory /usr/share/polkit-1/rules.d
Jul 22 10:55:44 xxx polkitd[1686]: Finished loading, compiling and executing 16 rules
Jul 22 10:55:44 xxx systemd[1]: Started polkit.service - Authorization Manager.
Jul 22 10:55:44 xxx polkitd[1686]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Jul 22 10:55:49 xxx polkitd[1686]: Registered Authentication Agent for unix-session:c2 (system bus name :1.59 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent,>
Jul 22 10:55:58 xxx polkitd[1686]: Registered Authentication Agent for unix-session:3 (system bus name :1.103 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent,>
Jul 22 10:56:05 xxx polkitd[1686]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.59, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) >


$ journalctl -t polkitd -b0
Jul 22 10:55:44 xxx polkitd[1686]: Started polkitd version 126
Jul 22 10:55:44 xxx polkitd[1686]: Loading rules from directory /etc/polkit-1/rules.d
Jul 22 10:55:44 xxx polkitd[1686]: Loading rules from directory /run/polkit-1/rules.d
Jul 22 10:55:44 xxx polkitd[1686]: Error opening rules directory: Error opening directory “/run/polkit-1/rules.d”: No such file or directory (g-file-error-quark, 4)
Jul 22 10:55:44 xxx polkitd[1686]: Loading rules from directory /usr/local/share/polkit-1/rules.d
Jul 22 10:55:44 xxx polkitd[1686]: Error opening rules directory: Error opening directory “/usr/local/share/polkit-1/rules.d”: No such file or directory (g-file-error-quark, 4)
Jul 22 10:55:44 xxx polkitd[1686]: Loading rules from directory /usr/share/polkit-1/rules.d
Jul 22 10:55:44 xxx polkitd[1686]: Finished loading, compiling and executing 16 rules
Jul 22 10:55:44 xxx polkitd[1686]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Jul 22 10:55:49 xxx polkitd[1686]: Registered Authentication Agent for unix-session:c2 (system bus name :1.59 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jul 22 10:55:58 xxx polkitd[1686]: Registered Authentication Agent for unix-session:3 (system bus name :1.103 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jul 22 10:56:05 xxx polkitd[1686]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.59, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)


Note: Upgrading to 25.10 from 25.04 did not change anything mentioned above.

Ubuntu 24.04 | Extremely low framerate in webcam due to gstreamer timestamp sync problem https://askubuntu.com/questions/1543475/ubuntu-24-04-extremely-low-framerate-in-webcam-due-to-gstreamer-timestamp-sync

I'm kind of new into the Linux ecosystem and still struggling with some parts of it.

I'm trying to use the internal webcam of my laptop but it runs at an extremely low framerate (maybe talking about 1 fps). I've tried cheese, kamoso and snapshot applications but all have the same issue.

Also, when running any of the applications through the terminal, I get the following message:

(cheese:30042): cheese-WARNING **: 23:54:10.415: Can't find vp8enc preset: "Profile Realtime", using alternate preset: "Cheese Realtime". If you see this, make a bug report!

(cheese:30042): GStreamer-WARNING **: 23:54:10.415: gst_value_deserialize_g_value_array: unimplemented

[last message repeated repeated several times]

** (cheese:30042): WARNING **: 23:54:10.505: could not generate thumbnail for /home/carlangas/Videos/Webcam/2025-01-04-235306.webm (video/webm)


(cheese:30042): cheese-WARNING **: 23:54:11.831: A lot of buffers are being dropped.: ../libs/gst/base/gstbasesink.c(3143): gst_base_sink_is_too_late (): /GstCameraBin:camerabin/GstViewfinderBin:vf-bin/ClutterGstVideoSink:cluttergstvideosink0:
There may be a timestamping problem, or this computer is too slow.

Nevertheless, the app still launches, but showing video at a frame rate of 1 fps.

My camera devices are the following:

$ v4l2-ctl --list-devices
HD Webcam: HD Webcam (usb-0000:00:14.0-5):
    /dev/video0
    /dev/video1
    /dev/video2
    /dev/video3
    /dev/media0
    /dev/media1

but actually, video0 is the real HD camera and video2 is an infrared camera. For me it is very curious that the infrared camera works perfectly, and it is detected by the different softwares. For example, this screenshot is from cheese: enter image description here

but is the normal HD camera the one that fails and output the error message.

I have also tried to output video using gst-launch with the following command: gst-launch-1.0 v4l2src ! videoconvert ! autovideosink getting a very similar error:

WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot of buffers are being dropped.
Additional debug info:
../libs/gst/base/gstbasesink.c(3147): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.

I have also tried different sinks such as xvimagesink and glimagesink without success. The only thing that worked was to add the flag sync=false to the gstream command, but still don't find a solution for the webcam issue. Also, if I try to stream video using the infrared camera with the command gst-launch-1.0 v4l2src device=/dev/video2 ! videoconvert ! glimagesink it actually works.

Other things that I've tried were to output video using ffplay:

ffplay -f v4l2 -framerate 30 -video_size 640x480 -i /dev/video0

and checking in online video-call apps like google meet, and both options worked perfectly! So it seems to be an issue with gstreamer or its configuration.

The output I get when I run gst-inspect-1.0 | grep sink is the following:

$ gst-inspect-1.0 | grep sink
aasink:  aasink: ASCII art video sink
aasink:  aatv: aaTV effect
alsa:  alsasink: Audio sink (ALSA)
app:  appsink: AppSink
autodetect:  autoaudiosink: Auto audio sink
autodetect:  autovideosink: Auto video sink
cacasink:  cacasink: A colored ASCII art video sink
cacasink:  cacatv: CacaTV effect
coreelements:  fakesink: Fake Sink
coreelements:  fdsink: Filedescriptor Sink
coreelements:  filesink: File Sink
debug:  testsink: Test plugin
gdkpixbuf:  gdkpixbufsink: GdkPixbuf sink
gio:  giosink: GIO sink
gio:  giostreamsink: GIO stream sink
gtk:  gtkglsink: Gtk GL Video Sink
gtk:  gtksink: Gtk Video Sink
multifile:  multifilesink: Multi-File Sink
multifile:  splitmuxsink: Split Muxing Bin
opengl:  glimagesink: GL Sink Bin
opengl:  glimagesinkelement: OpenGL video sink
opengl:  glsinkbin: GL Sink Bin
oss4:  oss4sink: OSS v4 Audio Sink
ossaudio:  osssink: Audio Sink (OSS)
pipewire:  pipewiresink: PipeWire sink
playback:  playsink: Player Sink
pulseaudio:  pulsesink: PulseAudio Audio Sink
shout2:  shout2send: Icecast network sink
soup:  souphttpclientsink: HTTP client sink
tcp:  multifdsink: Multi filedescriptor sink
tcp:  multisocketsink: Multi socket sink
tcp:  tcpclientsink: TCP client sink
tcp:  tcpserversink: TCP server sink
udp:  dynudpsink: UDP packet sender
udp:  multiudpsink: UDP packet sender
udp:  udpsink: UDP packet sender
video4linux2:  v4l2sink: Video (video4linux2) Sink
ximagesink:  ximagesink: Video sink
xvimagesink:  xvimagesink: Video sink

Any help would be very very grateful!

Thanks in advance :)

.Net 8 SDK update on Ubuntu 24.04 https://askubuntu.com/questions/1517599/net-8-sdk-update-on-ubuntu-24-04

The current version of the.net 8 SDK on Ubuntu 24.04 is 8.0.105, but the latest is 8.0.302. Are there any plans to upgrade the package? When will it be available?

Tks

Password Authentication Issue SSH - Cannot disable [duplicate] https://askubuntu.com/questions/1494410/password-authentication-issue-ssh-cannot-disable

I've just installed Ubuntu 22.04.3 LTS. Set up SSH as I have done for years.

In /etc/ssh/ssh_config changed:

PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no

Restarted the service systemctl restart sshd

I can still log in by Password.

It seems /etc/ssh/sshd_config.d/50-cloud-init.conf
contains a line PasswordAuthenticaion yes which overrides ssh_config

To my way of thinking this is a security flaw introduced by Ubuntu in this release as it breaks years of tradition and standard practice where disabling password authentication in sshd_config has worked. I can imagine a releaseupdate potentially changing a setting or a standard config being thrown in place by scripts and getting subverted by this change.

Is there a reason for this change or is it a mistake in this release?

Thanks

dotnet complaining that libhostpolicy.so doesn't exist, even though it does https://askubuntu.com/questions/1480656/dotnet-complaining-that-libhostpolicy-so-doesnt-exist-even-though-it-does

When I try to run a program using dotnet I get this error:

> dotnet OmniSharp.exe
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in 'path/to/exe'.
Failed to run as a self-contained app.

I found the file libhostpolicy.so in /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.9/libhostpolicy.so, so I have no idea why dotnet can't access it.

I read on here that doing this will solve it:

sudo chown -R yourusername:yourusername /path/to/exe
sudo setfacl -R -d -m u:yourusername:rwx,g:yourusername:rwx,o::r /path/to/exe

but I still get the same error.

How to keep ssh connection open until the last stage of reboot or shutdown? https://askubuntu.com/questions/1422205/how-to-keep-ssh-connection-open-until-the-last-stage-of-reboot-or-shutdown

When rebooting or shutting down a headless server, the ssh connection disconnects immediately.

Sometimes the server takes hours to reboot or shutdown. Since it's headless, all I can do is wait.

Can I keep the ssh connection open as long as possible so that I can know what is happening?

How to get Nvidia drivers working on HP ZBook with Ubuntu 20.04? https://askubuntu.com/questions/1297824/how-to-get-nvidia-drivers-working-on-hp-zbook-with-ubuntu-20-04

I have a "HP ZBook 15v G5" which I'm trying to get the "recommended" Nvidia graphics drivers working with.

Running the following suggests nvidia-driver-455 are the recommended ones:

➜  ~ ubuntu-drivers devices           
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001CBCsv0000103Csd0000847Bbc03sc00i00
vendor   : NVIDIA Corporation
model    : GP107GLM [Quadro P600 Mobile]
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-455 - third-party free recommended
driver   : nvidia-driver-440-server - distro non-free
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-450 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

But when I try to install them automatically I get:

➜  ~ sudo ubuntu-drivers autoinstall            
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 linux-modules-nvidia-455-generic-hwe-20.04 : Depends: nvidia-kernel-common-455 (<= 455.38-1) but 455.45.01-0ubuntu0.20.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Not sure if it's worth noting I did upgrade from Ubuntu 18.04 but hadn't got them working on that either.

Apologies if this is obvious, don't have much experience with graphics drivers on Ubuntu yet.

Appears I'm using the Nouveau display drivers at the moment, and I'm trying to update them to the Nvidia ones because occasionally my second monitor will go black for 10 or 15 seconds when switching applications, and then come back again: Drivers Screen

My Qualcomm Atheros QCA9377 Wireless adopter is not working in Ubuntu 20.04 LTS (Vendor: Lenovo Model:E41-25) https://askubuntu.com/questions/1277359/my-qualcomm-atheros-qca9377-wireless-adopter-is-not-working-in-ubuntu-20-04-lts

My Qualcomm Atheros QCA9377 Wireless adapter is not working. In that I can't use WiFi in my Ubuntu 20.04 version. Also my laptop vendor is Lenovo(Model:E41-25) Already I referred some of the solutions here on AskUbuntu.

I can use my WiFi adopter in Windows but not in Ubuntu.

I'm searching this for more than 4 months Still I didn't get the solution.

Please help to find the solution.

When I'm running sudo apt-get update

wintersoldier@wintersoldier:~$ sudo apt-get update
#details done
wintersoldier@wintersoldier:~$ 

When I'm running lspci

wintersoldier@wintersoldier:~$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] (rev ea)
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15b3
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Processor Root Port
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Processor Root Port
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Host Bridge
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Carrizo Platform Security Processor
00:09.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Carrizo Audio Dummy Host Bridge
00:09.2 Audio device: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Audio Controller
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 20)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 4b)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 49)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 4b)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Stoney HT Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Stoney Address Maps
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Stoney DRAM Configuration
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Stoney Miscellaneous Configuration
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Stoney PM Configuration
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Stoney NB Performance Monitor
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
wintersoldier@wintersoldier:~$ 

When running lspci -nnk | grep -iA3 net

wintersoldier@wintersoldier:~$ lspci -nnk | grep -iA3 net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
    Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:38a6]
    Kernel driver in use: r8169
    Kernel modules: r8169
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
    Subsystem: Lenovo QCA9377 802.11ac Wireless Network Adapter [17aa:0901]
    Kernel modules: ath10k_pci
wintersoldier@wintersoldier:~$ 

While running rfkill list

wintersoldier@wintersoldier:~$ rfkill list
0: ideapad_wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: ideapad_bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no
2: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
wintersoldier@wintersoldier:~$

While running inxi -F

wintersoldier@wintersoldier:~$ inxi -F
System:
  Host: wintersoldier Kernel: 5.4.0-47-generic x86_64 bits: 64 
  Desktop: Gnome 3.36.4 Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:
  Type: Laptop System: LENOVO product: 81FS v: Lenovo E41-25 
  serial: <superuser/root required> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0K88286 WIN 
  serial: <superuser/root required> UEFI: LENOVO v: 7UCN28WW(V2.02) 
  date: 11/14/2019 
Battery:
  ID-1: BAT1 charge: 43.2 Wh condition: 44.6/48.0 Wh (93%) 
CPU:
  Topology: Dual Core model: AMD PRO A4-4350B R4 5 COMPUTE CORES 2C+3G 
  bits: 64 type: MCP L2 cache: 1024 KiB 
  Speed: 1297 MHz min/max: 1300/2500 MHz Core speeds (MHz): 1: 1297 2: 1297 
Graphics:
  Device-1: AMD Stoney [Radeon R2/R3/R4/R5 Graphics] driver: amdgpu 
  v: kernel 
  Display: x11 server: X.Org 1.20.8 driver: amdgpu resolution: 1366x768~60Hz 
  OpenGL: renderer: AMD STONEY (DRM 3.35.0 5.4.0-47-generic LLVM 10.0.0) 
  v: 4.5 Mesa 20.0.8 
Audio:
  Device-1: AMD driver: snd_hda_intel 
  Device-2: AMD Family 15h Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.4.0-47-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  driver: r8169 
  IF: enp1s0 state: down mac: 9c:5a:44:4a:22:7a 
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  driver: N/A 
  Device-3: Qualcomm Atheros type: USB driver: btusb 
  IF-ID-1: bnep0 state: unknown speed: N/A duplex: N/A 
  mac: 3c:91:80:66:e9:1c 
Drives:
  Local Storage: total: 465.76 GiB used: 48.09 GiB (10.3%) 
  ID-1: /dev/sda vendor: Toshiba model: MQ01ABF050 size: 465.76 GiB 
Partition:
  ID-1: / size: 37.30 GiB used: 7.38 GiB (19.8%) fs: ext4 dev: /dev/sda7 
  ID-2: /home size: 136.79 GiB used: 7.15 GiB (5.2%) fs: ext4 dev: /dev/sda9 
  ID-3: swap-1 size: 7.63 GiB used: 6.8 MiB (0.1%) fs: swap dev: /dev/sda8 
Sensors:
  System Temperatures: cpu: 59.2 C mobo: N/A gpu: amdgpu temp: 59 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 220 Uptime: 1h 33m Memory: 3.73 GiB used: 1.62 GiB (43.4%) 
  Shell: bash inxi: 3.0.38 
wintersoldier@wintersoldier:~$ 

While running ifconfig

wintersoldier@wintersoldier:~$ ifconfig
bnep0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.44.195  netmask 255.255.255.0  broadcast 192.168.44.255
        inet6 fe80::7c9f:4917:c300:61ff  prefixlen 64  scopeid 0x20<link>
        ether 3c:91:80:66:e9:1c  txqueuelen 1000  (Ethernet)
        RX packets 20703  bytes 19297996 (19.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15228  bytes 2641916 (2.6 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 9c:5a:44:4a:22:7a  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4353  bytes 378490 (378.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4353  bytes 378490 (378.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wintersoldier@wintersoldier:~$ 

While running iwconfig

wintersoldier@wintersoldier:~$ iwconfig
lo        no wireless extensions.

bnep0     no wireless extensions.

enp1s0    no wireless extensions.

While Running dkms status

wintersoldier@wintersoldier:~$ dkms status
wintersoldier@wintersoldier:~$ 

Note: Nothing shows while running this command - dkms status

While Runnig dmesg | grep ath

wintersoldier@wintersoldier:~$ dmesg | grep ath
[    5.689125] systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
[    5.726047] systemd[1]: /etc/systemd/system/teamviewerd.service:9: PIDFile= references a path below legacy directory /var/run/, updating /var/run/teamviewerd.pid → /run/teamviewerd.pid; please update the unit file accordingly.
[   12.054173] ath10k_pci 0000:02:00.0: failed to iomap BAR0
[   12.054223] ath10k_pci 0000:02:00.0: failed to claim device: -5
[   12.054308] ath10k_pci: probe of 0000:02:00.0 failed with error -5
[   78.643772] audit: type=1107 audit(1601128160.462:52): pid=663 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.16" pid=1817 label="snap.snap-store.ubuntu-software" peer_pid=664 peer_label="unconfined"
[   79.186168] audit: type=1107 audit(1601128161.006:53): pid=663 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.7" pid=1817 label="snap.snap-store.ubuntu-software" peer_pid=693 peer_label="unconfined"
[   79.187068] audit: type=1107 audit(1601128161.006:54): pid=663 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.7" pid=1817 label="snap.snap-store.ubuntu-software" peer_pid=693 peer_label="unconfined"
[   79.343785] audit: type=1107 audit(1601128161.162:55): pid=663 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.7" pid=1817 label="snap.snap-store.ubuntu-software" peer_pid=693 peer_label="unconfined"
[   79.345006] audit: type=1107 audit(1601128161.166:56): pid=663 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.7" pid=1817 label="snap.snap-store.ubuntu-software" peer_pid=693 peer_label="unconfined"

While Running modinfo ath10k_pci

wintersoldier@wintersoldier:~$ modinfo ath10k_pci
filename:       /lib/modules/5.4.0-47-generic/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware:       ath10k/QCA9377/hw1.0/board.bin
firmware:       ath10k/QCA9377/hw1.0/firmware-5.bin
firmware:       ath10k/QCA9377/hw1.0/firmware-6.bin
firmware:       ath10k/QCA6174/hw3.0/board-2.bin
firmware:       ath10k/QCA6174/hw3.0/board.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-6.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-4.bin
firmware:       ath10k/QCA6174/hw2.1/board-2.bin
firmware:       ath10k/QCA6174/hw2.1/board.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-5.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-4.bin
firmware:       ath10k/QCA9887/hw1.0/board-2.bin
firmware:       ath10k/QCA9887/hw1.0/board.bin
firmware:       ath10k/QCA9887/hw1.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/board-2.bin
firmware:       ath10k/QCA988X/hw2.0/board.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-4.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-3.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-2.bin
license:        Dual BSD/GPL
description:    Driver support for Qualcomm Atheros 802.11ac WLAN PCIe/AHB devices
author:         Qualcomm Atheros
srcversion:     51F04E4FC0190954FF7DF5E
alias:          pci:v0000168Cd00000050sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000042sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000046sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000056sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Csv*sd*bc*sc*i*
alias:          pci:v00000777d000011ACsv*sd*bc*sc*i*
depends:        ath10k_core
retpoline:      Y
intree:         Y
name:           ath10k_pci
vermagic:       5.4.0-47-generic SMP mod_unload 
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        60:9F:61:6A:D4:C9:3C:64:35:01:B1:13:6F:DD:36:46:DB:88:1D:84
sig_hashalgo:   sha512
signature:      61:51:18:1B:01:A1:62:8D:09:69:35:76:A8:3F:AE:1B:FC:DE:C4:57:
        29:50:B5:88:D1:5B:8C:72:7B:C0:25:AB:FD:1D:C5:AD:DB:94:57:76:
        9A:02:E1:E8:2E:04:B8:99:31:8D:73:68:3E:B4:66:5E:7B:E5:A6:3C:
        E9:FA:1C:AD:06:04:F7:C9:7D:E8:AB:B8:33:7E:35:03:19:E9:81:DF:
        17:4E:73:45:03:DC:AB:3C:60:E4:8F:F8:86:23:87:12:09:F8:6B:D3:
        40:23:E0:7F:E5:6D:63:ED:D5:0E:57:19:93:8F:A7:06:1A:7C:67:FF:
        B2:E8:C1:F7:C8:2C:13:D6:56:65:8A:70:62:A6:83:F0:1C:BE:F5:BD:
        CC:6F:38:46:F3:A6:F2:4B:84:B1:55:9B:D4:D3:74:2F:3C:08:7C:19:
        2F:78:B6:D1:95:4D:89:1D:0B:81:D5:15:15:75:59:F5:8C:2A:C8:B2:
        AC:51:0F:5E:72:46:4A:A2:52:B3:0D:E1:E0:41:F6:3B:D3:36:D7:6B:
        C3:33:AF:1A:DE:28:2C:BA:D8:D3:6E:80:56:A7:7C:1E:EF:FF:DA:F9:
        5D:7D:50:75:0E:2F:F9:6E:8A:E0:E6:5C:5D:89:8C:AA:F2:6B:2B:59:
        74:1D:FE:6B:7C:1B:07:CA:6F:1B:88:95:6E:92:39:84:07:27:86:49:
        CB:17:8D:A5:47:9F:67:EF:FA:AA:08:7E:1E:DC:4D:1D:E5:21:86:DB:
        FC:F9:E4:26:23:16:08:1E:52:2E:66:23:0E:0B:9B:7B:93:F1:22:4E:
        8A:FF:F0:86:0E:54:98:20:20:4A:2B:E7:DC:A9:B9:A9:99:92:BA:F7:
        5D:BC:5A:A8:FE:BD:30:F6:6B:B8:53:28:96:BC:D8:E3:47:24:C1:4C:
        F5:CF:50:3C:8A:64:2C:F8:91:0E:97:EE:95:4F:96:71:90:DE:0E:3A:
        AA:D1:C4:D0:E1:A8:45:86:09:6E:3E:75:8D:1B:3D:5B:E0:C7:5D:5B:
        6E:B8:36:BF:E8:C3:64:0C:A9:56:F5:7F:C7:62:66:67:12:F8:28:ED:
        A6:C3:29:31:B2:91:4D:21:22:5B:D0:2B:3F:49:7A:29:73:D2:F7:9F:
        F9:0B:76:9E:23:32:3B:B1:8A:A9:E5:89:55:D2:AB:94:65:49:A3:64:
        02:16:DA:87:E5:AA:5A:F1:59:75:C8:EC:88:BD:AE:21:D6:0C:BC:93:
        F4:28:20:FA:EB:3D:4E:5A:AC:64:6F:AA:05:AC:B4:0B:70:E2:06:44:
        E9:FF:2D:3D:DE:C8:F4:6B:01:1F:8A:59:0C:E2:11:50:0E:38:77:70:
        E7:FC:A0:E9:37:E6:C8:7A:AF:56:2D:35
parm:           irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm:           reset_mode:0: auto, 1: warm only (default: 0) (uint)
wintersoldier@wintersoldier:~$ 

While Running echo "options ath9k_pci irq_mode=1" | sudo tee /etc/modprobe.d/ath10k-pci.conf

wintersoldier@wintersoldier:~$ echo "options ath9k_pci irq_mode=1" | sudo tee /etc/modprobe.d/ath10k-pci.conf
[sudo] password for wintersoldier: 
options ath9k_pci irq_mode=1
wintersoldier@wintersoldier:~$ 
18.04.4 Cannot turn on remote desktop sharing https://askubuntu.com/questions/1228976/18-04-4-cannot-turn-on-remote-desktop-sharing

I have installed Ubuntu with the minimum setup instead of the normal install. I am trying to connect into Ubuntu but Sharing will not stay on. (I would like to use vnc)

Settings - Sharing

error

NetworkManager constantly prompts for admin password https://askubuntu.com/questions/1220076/networkmanager-constantly-prompts-for-admin-password

I'm running Ubuntu 19.10. NetworkManager constantly asks for the admin password with "System policy prevents wi-fi scans" I've seen online instructions for how to disable this with polkit, but nothing seems to work. What is the current way to set polkit rules? I'm also prompted when shutting down.

Network connection: Make available to other users https://askubuntu.com/questions/1181885/network-connection-make-available-to-other-users

which configuration file controls the option "Make available to other users" in the Network settings?

For users, who are in the netdev group, this option is checked by default. I would like to change that.

Best, Johanna

Screen flickering on dual boot Ubuntu https://askubuntu.com/questions/1179229/screen-flickering-on-dual-boot-ubuntu

I have dual boot setting (Ubuntu 16.04 + Windows 10) on my notebook (using nouveau driver). Originally there was no major issues, but when I changed my BIOS configuration, my Ubuntu started to have screen flickering after boot in GRUB menu. All other things function properly in Ubuntu GUI, but the screen keeps flickering that I can hardly navigate. I encountered the same screen-flickering issue when booting in live USB. On windows side, everything is still fine and I can switch between integrated graphics card and my discrete graphics card.

I didn't find any similar situation as mine on my first attempt of internet search. Do anyone have any idea how to fix it?

Hardware specs:

  • Lenovo Legion Y740
  • Integrated Graphics Card: UHD Intel Graphics 630
  • GeForce RTX 2070 Max-Q
  • Both Ubuntu 16.04 and Windows installed in C:\

BIOS Configuration** (Updated in 12/10/2019):

In my first dual boot attempt, I navigate to BIOS settings via "UEFI Firmware settings" in Windows "Advanced Startup" (attached below). The change I made on the BIOS configuration are the following:

  • Secure Boot: Disabled (default is enabled)
  • Storage mode: AHCI mode (default is RST mode)
  • Graphics: default is "Discrete Graphics". I stuck with default "Discrete Graphics" in my first dual boot. No screen flickering appear on fresh installation. But when I set to "Switchable Graphics" after the installation, I was greeted with screen flickering in my Ubuntu side (everything is fine on Windows side)

UEFI Firmware Settings:

UEFI Firmware Settings Screenshot

[Update: 07/10/2019]
After a few study, I added "nomodeset" on grub configuration file and it temporarily settles the issue, but it is not desirable in the long run because such configuration disables brightness adjustment on screen and HDMI connection. I will keep looking for a more sustainable solution.

[Update: 12/10/2019 - 1]

I replaced Ubuntu 16.04 with Ubuntu 18.04. On fresh installation, screen flickering still existed but setting "nomodeset" in grub configuration file temporarily settles the issue. After I installed proprietary NVIDIA driver, screen flickering still persist and in this case setting "nomodeset" in grub config didn't solve the problem. But a good news is I finally escaped the black screen nightmare and infinite login loop nightmare this time. However, screen flickering is still an annoying issue to be settled.
I tried blacklist nouveau and setting nvidia_drm modeset = 1. But the issues still persist. I will keep trying different solutions to settle that.

[Update: 12/10/2019 - 2]

On Ubuntu side, my current state is that I have uninstalled proprietary nvidia driver by the following:

sudo apt-get purge nvidia  
sudo apt autoremove  
sudo apt autoclean  

I also blacklisted nouveau drive in /etc/modprobe.d/blacklist-nvidia-nouveau.conf with the following lines:

blacklist nouveau  
options nouveau modeset=0  

With such state, screen flickering issue existed and HDMI connection didn't work. And then, I followed David suggestion to set graphics mode back to default "Discrete Graphics" in BIOS configuration. Screen flickering issue disappear. I then proceed to install proprietary NVIDIA driver again by the following steps:

  1. setting "Main Server" in software updates
  2. execute sudo apt-get update (sudo add-apt-repository ppa:graphics-drivers/ppa has been executed a few days ago)
  3. install proprietary nvidia driver 435 in "Additional Drivers" tab. (as shown below)

After the Nvidia driver installation, I didn't encounter any screen flickering issue after Ubuntu reboot, also HDMI connection seems working. HOWEVER, I got stuck in a purple screen after login page, as shown below. I can navigate to tty by Alt + Ctrl + F6. When I execute nvidia-smi, my GPU device can be detected (as shown below)

Additional Drivers tab (showing how I installed the Nvidia driver:

1. Additional Driver Tab (showing how I install nvidia driver)

After nvidia driver installation, I got stuck in purple screen after login, the picture also shows HDMI works after the installation.

2. After nvidia driver installation, I got stuck in purple screen after login, the picture also shows HDMI works after the installation

When I got stuck at a purple screen, I tried to press Ctrl + Alt + F7, I then got to a black screen.

3. When I got stuck at a purple screen, I tried to press Ctrl + Alt + F7, I then got to a black screen.

nvidia-smi can detect my GPU (in execute this in my TTY mode.

4. nvidia-smi can detect my GPU (in execute this in my tty mode)

[Update: 12/10/2019 - 3]

Stuck in post-login for a few times, I tried to install KDE desktop in tty mode (by sudo apt-get install kubuntu-desktop). After rebooting I could finally get into desktop, but the screen flickering problem came again when I got into KDE desktop, however the screen flickering issue in KDE didn't appear as serious as the one in GNOME.
I tried changing a few configurations in System Setting -> Hardware > Display and Monitor -> Compositor. It is suggested from Flickering in KDE Plasma 5.4, but it didn't help.

How to remove all the files inside the directory at AWS instance launch? https://askubuntu.com/questions/1092431/how-to-remove-all-the-files-inside-the-directory-at-aws-instance-launch

I want to remove all the files and folders inside the particular directory at /var/www/example directory using user data script at AWS instance launch. Can you please help me.

steps to run the cuda sample program for vector addition? https://askubuntu.com/questions/896351/steps-to-run-the-cuda-sample-program-for-vector-addition

What are the exact steps to run a .cu sample program? I found a sample application called vectorAdd and I don't really know how to compile and run it. The net says,

nvcc -o a.out vectorAdd.cu 
./a.out

will do the job but I am getting an error

nvcc command not found

What should I be doing? PS: I am using Ubuntu 16.04, ARM

How to fix sudo due to pam error https://askubuntu.com/questions/705679/how-to-fix-sudo-due-to-pam-error

The short story is that I can SSH into my device with the a username and password that should be in the superuser group (so I should be able to sudo su). The problem is that I was trying to increase the user open file limits and I edited /etc/pam.d/common-session-interactive. I was supposed to enter this line:

session required pam_limits.so

but I stupidly entered this line instead:

session_required pam_limits.so

Note the underscore between session and required. Unfortunately, the sudo setup apparently tries to load the file /etc/pam.d/common-session-interactive and I think it is getting to that line and failing. Also unfortunately, that file is owned by root and is read only. So, to fix my sudo su problem, I need sudo su to work so I can change that file! Any ideas on how I can edit this file and fix the problem?

Computer won't wake up after suspend https://askubuntu.com/questions/513186/computer-wont-wake-up-after-suspend

Okay so I have had this problem with several versions of linux two primarily being xubuntu 14.04 and Ubuntu 14.04 lts, But I have also experienced the issue with Cent OS 7. I have several issues with the current distro Ubuntu 14.04 and before I make it my primary OS I want to repair the issues. First is the waking issue, after I have closed my laptop and left it alone for several hours (sometimes not so long but sometimes I can go hours and not experience the issue) I open the laptop back up and it won't wake up from suspend. I literally have to turn the computer off and restart it. Which brings me to the next intermittent issue, after restarting the computer (sometimes not all the time) the mouse and keyboard doesn't work and it has to be restarted again to have them operational. neither of the problems are persistent but both are rather annoying. I am running a dual boot on a Toshiba Satellite L775 with Windows 7.

System specs as pulled from the terminal:

BIOS:

vendor: American Megatrends Inc. physical id: 0 version: 1.30 date: 05/11/2011 size: 64KiB capacity: 1984KiB capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi

dual core CPU:

product: AMD A4-3300M APU with Radeon(tm) HD Graphics vendor: Advanced Micro Devices [AMD] physical id: 1 bus info: cpu@0 size: 1200MHz capacity: 1200MHz width: 64 bits capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter cpufreq

IDK if there is anything else that is needed but if there is I will gladly provide it.

Nicer FTP client than FileZilla? https://askubuntu.com/questions/109000/nicer-ftp-client-than-filezilla

FileZilla is really kind of "meh," when it comes to user interface. I'm wondering if there's something simpler/cleaner/slicker out there?

At least three features are missing for me in FireZilla:

  1. Download/Upload buttons for selected files
  2. Drag and drop to file explorer
  3. Address/location bar that spans width of local/remote window in "Widescreen" layout.