Change priority 1000 for /var/lib/dpkg/status https://askubuntu.com/questions/1563165/change-priority-1000-for-var-lib-dpkg-status

After a complete re-install of my Kubuntu from the official ISO image on a USB drive on Monday, every(!) package has a priority like this:

$ sudo apt-cache policy apt
apt:
  Installiert:           3.1.6ubuntu2
  Installationskandidat: 3.1.6ubuntu2
  Versionstabelle:
 *** 3.1.6ubuntu2 1000
        500 http://de.archive.ubuntu.com/ubuntu questing/main amd64 Packages
       1000 /var/lib/dpkg/status

with the result that I cannot update my system.

Is there any way to "reduce" the priority of the /var/lib/dpkg/status to the "regular" value of 100 so that I can keep my system up-to-date?

Some more info, in case that helps to pin-point the problem:

$ sudo apt-cache policy
Paketdateien:
1000 /var/lib/dpkg/status
     release a=now
 500 https://dl.winehq.org/wine-builds/ubuntu questing/main amd64 Packages
     release o=dl.winehq.org,a=questing,n=questing,l=winehq,c=main,b=amd64
     origin dl.winehq.org
 500 http://security.ubuntu.com/ubuntu questing-security/multiverse amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=multiverse,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu questing-security/restricted i386 Packages
     release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=restricted,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu questing-security/restricted amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=restricted,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu questing-security/universe i386 Packages
     release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=universe,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu questing-security/universe amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=universe,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu questing-security/main i386 Packages
     release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=main,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu questing-security/main amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=main,b=amd64
     origin security.ubuntu.com
 100 http://de.archive.ubuntu.com/ubuntu questing-backports/universe i386 Packages
     release v=25.10,o=Ubuntu,a=questing-backports,n=questing,l=Ubuntu,c=universe,b=i386
     origin de.archive.ubuntu.com
 100 http://de.archive.ubuntu.com/ubuntu questing-backports/universe amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-backports,n=questing,l=Ubuntu,c=universe,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/multiverse i386 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=multiverse,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/multiverse amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=multiverse,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/restricted i386 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=restricted,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/restricted amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=restricted,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/universe i386 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=universe,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/universe amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=universe,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/main i386 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=main,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing-updates/main amd64 Packages
     release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=main,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/multiverse i386 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=multiverse,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/multiverse amd64 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=multiverse,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/restricted i386 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=restricted,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/restricted amd64 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=restricted,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/universe i386 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=universe,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/universe amd64 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=universe,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/main i386 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=main,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu questing/main amd64 Packages
     release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=main,b=amd64
     origin de.archive.ubuntu.com
 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu plucky/main i386 Packages
     release v=25.04,o=LP-PPA-mozillateam,a=plucky,n=plucky,l=Firefox ESR and Thunderbird stable builds,c=main,b=i386
     origin ppa.launchpadcontent.net
 500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu plucky/main amd64 Packages
     release v=25.04,o=LP-PPA-mozillateam,a=plucky,n=plucky,l=Firefox ESR and Thunderbird stable builds,c=main,b=amd64
     origin ppa.launchpadcontent.net
1000 https://packages.mozilla.org/apt mozilla/main all Packages
     release o=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,a=mozilla,n=mozilla,l=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,c=main,b=all
     origin packages.mozilla.org
1000 https://packages.mozilla.org/apt mozilla/main i386 Packages
     release o=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,a=mozilla,n=mozilla,l=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,c=main,b=i386
     origin packages.mozilla.org
1000 https://packages.mozilla.org/apt mozilla/main amd64 Packages
     release o=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,a=mozilla,n=mozilla,l=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,c=main,b=amd64
     origin packages.mozilla.org
Mit Pinning verwaltete Pakete:
     firefox-locale-af -> 1:1snap1-0ubuntu7 mit Priorität -1
     thunderbird-locale-nb-no -> 2:1snap1-0ubuntu3 mit Priorität -1
     firefox-locale-zh-hans -> 1:1snap1-0ubuntu7 mit Priorität -1
     firefox-locale-zh-hant -> 1:1snap1-0ubuntu7 mit Priorität -1
     thunderbird-locale-ta-lk -> 2:1snap1-0ubuntu3 mit Priorität -1
     ((other thunderbird and firefox packages omitted for character limits))
$ for i in `{ls /etc/apt/preferences.d/*}` ; do echo "\n\n${i}" ; cat ${i} ; done


/etc/apt/preferences.d/mozilla
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000

Package: *
Pin: release 0=LP-PPA-mozillateam
Pin-Priority: 1000

Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1

Package: thunderbird*
Pin: release o=Ubuntu
Pin-Priority: -1


/etc/apt/preferences.d/ubuntu-pro-esm-apps
# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
# package. It has no effect if Ubuntu Pro services are not in use since no
# other apt repositories are expected to match o=UbuntuESMApps.
#
# Pin esm-apps packages to a slightly higher value than the default,
# so those are preferred over a non-ESM package from the archive when the
# service is enabled.

Package: *
Pin: release o=UbuntuESMApps
Pin-Priority: 510


/etc/apt/preferences.d/ubuntu-pro-esm-infra
# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
# package. It has no effect if Ubuntu Pro services are not in use since no
# other apt repositories are expected to match o=UbuntuESM.
#
# Pin esm-infra packages to a slightly higher value than the default,
# so those are preferred over a non-ESM package from the archive when the
# service is enabled.
Package: *
Pin: release o=UbuntuESM
Pin-Priority: 510
$ for i in `{ls /etc/apt//apt.conf.d/*}` ; do echo "\n\n${i}" ; cat ${i} ; done


/etc/apt//apt.conf.d/01-vendor-ubuntu
Acquire::Changelogs::AlwaysOnline "true";
Acquire::http::User-Agent-Non-Interactive "true";

// Enable the new solver by default for our commands
binary::apt::APT::Solver "3.0";
binary::apt-get::APT::Solver "3.0";
// Allow to remove manually installed packages for the
// first phase.
APT::Solver::RemoveManual "true";


/etc/apt//apt.conf.d/01autoremove
APT
{
  NeverAutoRemove
  {
        "^firmware-linux.*";
        "^linux-firmware$";
        "^linux-image-[a-z0-9]*$";
        "^linux-image-[a-z0-9]*-[a-z0-9]*$";
  };

  VersionedKernelPackages
  {
        # kernels
        "linux-.*";
        "kfreebsd-.*";
        "gnumach-.*";
        # (out-of-tree) modules
        ".*-modules";
        ".*-kernel";
  };

  Never-MarkAuto-Sections
  {
        "metapackages";
        "tasks";
  };

  Move-Autobit-Sections
  {
        "oldlibs";
  };
};


/etc/apt//apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";


/etc/apt//apt.conf.d/15update-stamp
APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};


/etc/apt//apt.conf.d/20apt-esm-hook.conf
APT::Update::Pre-Invoke {
        "[ ! -e /run/systemd/system ] || [ $(id -u) -ne 0 ] || systemctl start --no-block apt-news.service esm-cache.service >/dev/null 2>&1 || true";
};

binary::apt::AptCli::Hooks::Upgrade {
        "[ ! -f /usr/lib/ubuntu-advantage/apt-esm-json-hook ] || [ $(id -u) -ne 0 ] || /usr/lib/ubuntu-advantage/apt-esm-json-hook 2>> /var/log/ubuntu-advantage-apt-hook.log || true";
};


/etc/apt//apt.conf.d/20archive
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";


/etc/apt//apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";


/etc/apt//apt.conf.d/20packagekit
// THIS FILE IS USED TO INFORM PACKAGEKIT THAT THE UPDATE-INFO MIGHT HAVE CHANGED

// Whenever dpkg is called we might have different updates
// i.e. if an user removes a package that had an update
DPkg::Post-Invoke {
"/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/test ! -e /run/ostree-booted && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
};

// When APT's cache is updated (i.e. apt-cache update)
APT::Update::Post-Invoke-Success {
"/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/test ! -e /run/ostree-booted && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
};


/etc/apt//apt.conf.d/20snapd.conf
binary::apt::AptCli::Hooks::Install { "[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true"; };


/etc/apt//apt.conf.d/50appstream
## This file is provided by appstreamcli(1) to download DEP-11
## metadata files.

Acquire::IndexTargets {
    # The YAML metadata files
    deb::DEP-11  {
        MetaKey "$(COMPONENT)/dep11/Components-$(NATIVE_ARCHITECTURE).yml";
        ShortDescription "Components-$(NATIVE_ARCHITECTURE)";
        Description "$(RELEASE)/$(COMPONENT) $(NATIVE_ARCHITECTURE) Components";

        KeepCompressed "true";
        KeepCompressedAs "gz";
    };

    # Small icons for GUI components described in the DEP-11
    # YAML metadata.
    deb::DEP-11-icons-small  {
        MetaKey "$(COMPONENT)/dep11/icons-48x48.tar";
        ShortDescription "icons-48x48";
        Description "$(RELEASE)/$(COMPONENT) Icons (48x48)";

        KeepCompressed "true";
        KeepCompressedAs "gz";
        DefaultEnabled "false";
    };

    # Normal-sized icons for GUI components described in the DEP-11
    # YAML metadata.
    deb::DEP-11-icons  {
        MetaKey "$(COMPONENT)/dep11/icons-64x64.tar";
        ShortDescription "icons-64x64";
        Description "$(RELEASE)/$(COMPONENT) Icons (64x64)";

        KeepCompressed "true";
        KeepCompressedAs "gz";
        DefaultEnabled "false";
    };

    # Icons suitable for HiDPI displays, for GUI components described in
    # the DEP-11 YAML metadata.
    deb::DEP-11-icons-hidpi  {
        MetaKey "$(COMPONENT)/dep11/icons-64x64@2.tar";
        ShortDescription "icons-64x64@2";
        Description "$(RELEASE)/$(COMPONENT) Icons (64x64@2)";

        KeepCompressed "true";
        KeepCompressedAs "gz";
        DefaultEnabled "false";
    };

    # Larger icons that are often used on HiDPI displays as fallback.
    deb::DEP-11-icons-large  {
        MetaKey "$(COMPONENT)/dep11/icons-128x128.tar";
        ShortDescription "icons-128x128";
        Description "$(RELEASE)/$(COMPONENT) Icons (128x128)";

        KeepCompressed "true";
        KeepCompressedAs "gz";
        DefaultEnabled "false";
    };

    # Even larger icons that are used on HiDPI displays.
    deb::DEP-11-icons-large-hidpi {
        MetaKey "$(COMPONENT)/dep11/icons-128x128@2.tar";
        ShortDescription "icons-128x128@2";
        Description "$(RELEASE)/$(COMPONENT) Icons (128x128@2)";

        KeepCompressed "true";
        KeepCompressedAs "gz";
        DefaultEnabled "false";
    };
};

# Refresh AppStream cache when APT's cache is updated (i.e. apt update)
APT::Update::Post-Invoke-Success {
    "if /usr/bin/test -w /var/cache/swcatalog -a -e /usr/bin/appstreamcli; then appstreamcli refresh --source=os > /dev/null || true; fi";
};


/etc/apt//apt.conf.d/50command-not-found
## This file is provided by command-not-found(1) to download
## Commands metadata files.

Acquire::IndexTargets {
    # The deb822 metadata files
    deb::CNF  {
        MetaKey "$(COMPONENT)/cnf/Commands-$(NATIVE_ARCHITECTURE)";
        ShortDescription "Commands-$(NATIVE_ARCHITECTURE)";
        Description "$(RELEASE)/$(COMPONENT) $(NATIVE_ARCHITECTURE) c-n-f Metadata";
    };
};

# Refresh AppStream cache when APT's cache is updated (i.e. apt update)
APT::Update::Post-Invoke-Success {
    "if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi";
};


/etc/apt//apt.conf.d/50unattended-upgrades
// Automatically upgrade packages from these (origin:archive) pairs
//
// Note that in Ubuntu security updates may pull in new dependencies
// from non-security sources (e.g. chromium). By allowing the release
// pocket these get automatically pulled in.
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}";
        "${distro_id}:${distro_codename}-security";
        // Extended Security Maintenance; doesn't necessarily exist for
        // every release and this system may not have it installed, but if
        // available, the policy for updates is such that unattended-upgrades
        // should also install from here by default.
        "${distro_id}ESMApps:${distro_codename}-apps-security";
        "${distro_id}ESM:${distro_codename}-infra-security";
//      "${distro_id}:${distro_codename}-updates";
//      "${distro_id}:${distro_codename}-proposed";
//      "${distro_id}:${distro_codename}-backports";
};

// Python regular expressions, matching packages to exclude from upgrading
Unattended-Upgrade::Package-Blacklist {
    // The following matches all packages starting with linux-
//  "linux-";

    // Use $ to explicitely define the end of a package name. Without
    // the $, "libc6" would match all of them.
//  "libc6$";
//  "libc6-dev$";
//  "libc6-i686$";

    // Special characters need escaping
//  "libstdc\+\+6$";

    // The following matches packages like xen-system-amd64, xen-utils-4.1,
    // xenstore-utils and libxenstore3.0
//  "(lib)?xen(store)?";

    // For more information about Python regular expressions, see
    // https://docs.python.org/3/howto/regex.html
};

// This option controls whether the development release of Ubuntu will be
// upgraded automatically. Valid values are "true", "false", and "auto".
Unattended-Upgrade::DevRelease "auto";

((commented lines omitted for char limits))


/etc/apt//apt.conf.d/60icons
## This file enables the download of small-size 64x64px
## icons for use in software centers like GNOME Software
## and Plasma Discover.
##
## The icons are required for software centers to function
## correctly. Applications without an icon will not be
## displayed at all.

Acquire::IndexTargets {
    deb::DEP-11-icons-small  {
        DefaultEnabled "true";
    };
    deb::DEP-11-icons  {
        DefaultEnabled "true";
    };
};


/etc/apt//apt.conf.d/60icons-hidpi
## This file enables the download of 64x64px icons
## suitable for HiDPI displays for use in software
## centers like GNOME Software and Plasma Discover.

Acquire::IndexTargets {
    deb::DEP-11-icons-hidpi  {
        DefaultEnabled "true";
    };
};


/etc/apt//apt.conf.d/60icons-large
## This file enables the download of large 128x128px
## icons for use in software centers like GNOME Software
## and Plasma Discover.
##
## The icons speed up usage of the software centers,
## and would otherwise be downloaded on-deman for each user.

Acquire::IndexTargets {
    deb::DEP-11-icons-large  {
        DefaultEnabled "true";
    };
};


/etc/apt//apt.conf.d/60icons-large-hidpi
## This file enables the download of 128x128px icons
## suitable for HiDPI displays for use in software
## centers like GNOME Software and Plasma Discover.

Acquire::IndexTargets {
    deb::DEP-11-icons-hidpi  {
        DefaultEnabled "true";
    };
};


/etc/apt//apt.conf.d/70debconf
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};


/etc/apt//apt.conf.d/99update-notifier
DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; /usr/lib/update-notifier/update-motd-updates-available 2>/dev/null || true";};
APT::Update::Post-Invoke-Success {"/usr/lib/update-notifier/update-motd-updates-available 2>/dev/null || true";};
Lenovo Thinkpad X1 Carbon Gen 9 Bluetooth Issue https://askubuntu.com/questions/1563164/lenovo-thinkpad-x1-carbon-gen-9-bluetooth-issue

Currently, I am converting from Windows 11 to Ubuntu 24.4 LTS. I had an issue pairing and connecting my headset to my laptop (Lenovo Thinkpad X1 Carbon Gen 9) by using Bluetooth.

Access to Enhanced Open wifi from 24.04.3 https://askubuntu.com/questions/1563162/access-to-enhanced-open-wifi-from-24-04-3

At a friend, I try and fail to connect to the local wifi.

She connects automatically without a password (from Windows -- but my goal is to install Linux instead), so that I guessed the wifi is an 'Enhanced Open' one -- are there other options?

I have only the name: dlink-1ABE-5GHz

Anyway, I fail miserably.

Is this supported? Are there specific instructions to set it up?

[I'm now back home, so that it will take me days to be again in a situation to test suggestions or get more details]

Thanks

New external hard drive doesn't visualise special characters in file names https://askubuntu.com/questions/1563161/new-external-hard-drive-doesnt-visualise-special-characters-in-file-names

I bought a new external HD (MyBook Western Digital, 8 Tb) for backup and, after started copyng there my data, I found out that folder and file names containing special characters (ä, ā, à, ñ, etc) get turned in underscores. This is even worse with non-latin alphabets. How can I make it visualise both the special characters and the other aphabets? Is it possible to make the HD consider each one as alphabetically the letter it corresponds to? I have a Ubuntu 24.04 LTS and the HD is formatted in exFAT.

WSL: issue with systemd while updating https://askubuntu.com/questions/1563159/wsl-issue-with-systemd-while-updating

I just installed Ubuntu 24.04 in wsl. After the installation, I ran the following command and received the error message below:

sudo apt update && sudo apt upgrade -y

Error message:

Initializing machine ID from random generator.
Failed to take /etc/passwd lock: Invalid argument
**dpkg:** error processing package systemd (--configure):
installed systemd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ubuntu 24.04.3 ext4 dual external drive system causes crash on Raspberry Pi 4 https://askubuntu.com/questions/1563157/ubuntu-24-04-3-ext4-dual-external-drive-system-causes-crash-on-raspberry-pi-4

I have a Raspberry Pi 4 8GB. I have installed Ubuntu 24.04 LTS and keep it updated. The current version is 24.04.3. The boot volume is an external USB 3.2 512GB SSD. This system is being set up as an email and web server. The final piece of the puzzle is a backup drive. I need the filesystem to honor permissions. This is for a backup drive on an email server.

I have tried different brands of SSD 512GB drives with different cases, different USB cables and different ports on the Pi.

Every time that the second drive is attached the Pi will crash. SSH disconnects and you can't get back in without unplugging the Pi and removing the SSD and just starting with the single drive. Note that the file system on the boot drive is ext4.

I have narrowed this down to the file system on the second drive. If it is ext4 Ubuntu will crash. For example, if you connect the drive with another file system (exFAT or APFS) you can plug it in without an issue and you can see the drive with lsblk. If you format the drive and set the partition to ext4, it will gladly go through the process, but about two seconds after it finishes Ubuntu will crash. The file system hasn't even been mounted yet.

My question is which file system do you recommend? EXT3? Something else? Is this a known issue?

Is it safe to run Linux on ASUS OLED laptops without MyASUS Pixel Refresh? https://askubuntu.com/questions/1563154/is-it-safe-to-run-linux-on-asus-oled-laptops-without-myasus-pixel-refresh

I have a question regarding installing Linux on ASUS laptops with OLED displays. Is it safe to use Linux on OLED-equipped ASUS laptops in the long term?

The reason I’m asking is that on Windows, the MyASUS application provides a feature called Pixel Refresh, which is designed to help prevent pixel burn-in on OLED panels. As far as I know, this feature runs at the software/firmware level and is easily accessible in Windows, however on Linux there is no MyASUS app, and therefore no obvious way to manually trigger or manage Pixel Refresh.

My questions are:

  • Does Pixel Refresh work automatically at the firmware/hardware level even when using Linux?

  • Is there any official recommendation from ASUS regarding OLED care when running Linux?

  • Are Linux users at a higher risk of burn-in due to the lack of MyASUS features?

I’d really appreciate insights from ASUS staff or users who have been running Linux on OLED ASUS laptops for a long time.

Source of boot options menu https://askubuntu.com/questions/1563153/source-of-boot-options-menu

How is the boot options menu generated? I have one version of Xubuntu and nothing else on my machine, yet the menu lists a dozen items. I should say this menu appears after the beeps and pressing F12.

The first 4 menu items are:

UEFI OS
ubuntu (P0: ST1000DM003-1CH162)
UEFI: ST1000DM0003-1CH162
ubuntu

...

These are repeated randomly down the list. Where is this stored or how is it generated? How do I get rid of the unnecessary repetitions? Some of the options when selected for boot work fine. Others just bring up a grub> prompt. What is this? I have a lot of questions I'm afraid, but that's what 8 days trying to get this working does!

pip install gives an error while it does work in macos https://askubuntu.com/questions/1563144/pip-install-gives-an-error-while-it-does-work-in-macos

I am trying to install Hazm in Ubuntu 25.04 that is running in VMware fusion inside a mac. While in macOs pip install hazm installs it, in Ubuntu trying pip install --user hazm --break-system-packages gives an error:

pip install --user hazm --break-system-packages
Collecting hazm
  Downloading hazm-0.11.0-py3-none-any.whl.metadata (9.5 kB)
Collecting flashtext<3.0,>=2.7 (from hazm)
  Downloading flashtext-2.7.tar.gz (14 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
          exec(compile('''
          ~~~~^^^^^^^^^^^^
          # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ...<31 lines>...
          exec(compile(setup_py_code, filename, "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ''' % ('/tmp/pip-install-el9vrtw_/flashtext_32a342e13c4140959b976389c763fa5c/setup.py',), "<pip-setuptools-caller>", "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-el9vrtw_/flashtext_32a342e13c4140959b976389c763fa5c/setup.py", line 1, in <module>
          from setuptools import setup, Command
      ImportError: cannot import name 'setup' from 'setuptools' (unknown location)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

The question is, if the same package could be installed in mac why does it give an error in Ubuntu?

On my Linux 6.8.0-85-generic #85~22.04.1-Ubuntu machine in firefox file:/// no longer works https://askubuntu.com/questions/1563142/on-my-linux-6-8-0-85-generic-8522-04-1-ubuntu-machine-in-firefox-file-no-l

I've had this machine for years and it has 22.04.1 on it; URLs to the local filesystem via file:/// no longer work except those in my home directory, everything else gives a File not found.

How do I get my local filesystem access back so I can check HTML edits in a browser before uploading?

I should add I spent a long time this morning trying to solve this, screwing around with user profiles and other stuff I found online while looking for a solution, but nothing worked, so here I am.

% uname -a

Linux spunky 6.8.0-85-generic #85~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 16:18:59 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

BAR Allocation Failed & IOMMU Conflicts: Dual GPU (RTX 5060 + 4060) on Ryzen 5800X/B550 - "No Space" Errors https://askubuntu.com/questions/1563112/bar-allocation-failed-iommu-conflicts-dual-gpu-rtx-5060-4060-on-ryzen-580

I am hitting a wall trying to configure a dual GPU setup on a B550/Ryzen platform running Ubuntu. I am facing a persistent Memory Mapped I/O (MMIO) resource allocation issue where the kernel cannot assign BAR addresses for the second GPU, leading to can't assign; no space errors.

Hardware Specs:

  • CPU: AMD Ryzen 7 5800X

  • Mobo: B550 Chipset [INSERT YOUR MOTHERBOARD MODEL HERE]

  • GPU 1: NVIDIA RTX 4060

  • GPU 2: NVIDIA RTX 5060 (New gen)

  • PSU: 850W

  • OS: Ubuntu (Kernel 6.x generic)

  • Driver: Manual install of NVIDIA-Linux-x86_64-580.126.09.run (Required for 5060 support)

The Problem: When booting with default BIOS settings, only one GPU is enumerated correctly. The second GPU fails with BAR allocation errors in dmesg. When I attempt to fix this by enabling "Above 4G Decoding" in BIOS, the system fails to mount the NVMe drive or panics during boot unless I use specific kernel parameters, and even then, I lose the proprietary driver binding.

Logs & Symptoms:

1. The BAR Error (dmesg output): Without 4G decoding, the kernel clearly sees the device but cannot map the memory:

Bash

[ 0.666193] pci 0000:07:00.0: BAR 1 [mem size 0x10000000 64bit pref]: can't assign; no space
[ 0.666195] pci 0000:07:00.0: BAR 1 [mem size 0x10000000 64bit pref]: failed to assign
[ 0.666196] pci 0000:07:00.0: VF BAR 2 [mem size 0x10000000 64bit pref]: can't assign; no space
NVRM: BAR1 is 0M @ 0x0 (PCI:0000:04:00.0)

2. The IOMMU/Disk Conflict: If I Enable Above 4G Decoding and Disable CSM (UEFI only), the boot process hangs with filesystem errors, losing access to the NVMe block devices:

Bash

/var/lib/snapd/snaps/firefox_2356.snap: Can't lookup blockdev
[FAILED] Failed to mount Mount unit for firefox.
[FAILED] Failed to mount Mount unit for snapd.

What I have tried so far:

  1. BIOS Settings:

    • Above 4G Decoding: Enabled

    • Re-Size BAR: Auto/Enabled

    • CSM: Disabled

  2. Kernel Parameters:

    • Tried pci=realloc: Did not resolve the no space error.

    • Tried iommu=soft: This allows the system to boot with "Above 4G Decoding" enabled (bypassing the blockdev error), BUT nvidia-smi fails to detect devices, or the system falls back to llvmpipe (software rendering) with a zoomed-in resolution.

  3. Display Manager:

    • Disabled Wayland in /etc/gdm3/custom.conf (WaylandEnable=false).
  4. Driver Installation:

    • Purged all apt nvidia packages.

    • Running the .run file for driver 580.126.09.

    • Installation completes successfully in Recovery Mode (Root Shell), but upon rebooting with iommu=soft, the driver doesn't seem to bind correctly to the cards.

The Question: How can I properly expose the BAR address space for both cards on a B550/Ryzen platform without breaking the NVMe/IOMMU controller? Is there a specific combination of GRUB parameters (e.g., pci=noalloc, iommu=pt, amd_iommu=on) that allows 4G decoding to coexist with a functional NVIDIA driver on this chipset?

Any insights on how to escape this loop would be appreciated.


I tested all suggestions, but the NVMe/Blockdev error persists. I have methodically tried all three proposed solutions, but unfortunately, they all result in the exact same boot failure. It seems that enabling "Above 4G Decoding" breaks the NVMe controller's ability to mount filesystems, regardless of the IOMMU parameters or BAR sizing.

Here is exactly what I tested:

Attempt 1 (`iommu=off`)
BIOS: Above 4G [Enabled], CSM [Disabled].
GRUB: iommu=off
Result: Boot failure. "Can't lookup blockdev".
Attempt 2 (pci=big_root_window):
BIOS: Above 4G [Enabled], CSM [Disabled].
GRUB: iommu=soft pci=big_root_window
Result: Boot failure. "Can't lookup blockdev".
Attempt 3 (Re-Size BAR Disabled):
BIOS: Above 4G [Enabled], Re-Size BAR [Disabled], CSM [Disabled].
GRUB: iommu=soft

Result: Boot failure. "Can't lookup blockdev".

The error log (identical in all 3 cases):

The system sees the drive initially (/dev/nvme0n1p2: clean...), but immediately loses access to block devices required for mounting snaps and the desktop environment:

/dev/nvme0n1p2: clean, 2954993/30498816 files, 87996494/121965088 blocks
[ 3.603861] /var/lib/snapd/snaps/firefox_2356.snap: Can't lookup blockdev
[ 3.603916] /var/lib/snapd/snaps/gnome-3-38-2004_119.snap: Can't lookup blockdev
[FAILED] Failed to mount Mount unit for firefox, revision 2356.
[FAILED] Failed to mount Mount unit for snapd, revision 18357.
[FAILED] Failed to start Process error reports when automatic reporting is enabled.

It appears impossible to keep the NVMe drive functional while "Above 4G Decoding" is Enabled on this B550/Ryzen setup with the current kernel parameters.

Is there any other specific IOMMU parameter (like amd_iommu=fullflush or iommu=pt) that specifically targets B550 NVMe conflicts? Or is moving the NVMe drive to a Chipset-controlled M.2 slot (instead of the CPU-controlled one) a potential workaround?

Ubuntu 24.04 - init process extremely high RAM usage https://askubuntu.com/questions/1562990/ubuntu-24-04-init-process-extremely-high-ram-usage

I run a Kubernetes cluster on a few Ubuntu servers. In the last week 2 of the servers reported extremely high memory usage, and I saw that init process uses almost 30GB of RAM.

From node_exporter metrics, I see that the growth happened over 2 minutes.

Do you have any ideas what could cause this and how I can fix it?

Installed version: init/now 1.66ubuntu1 amd64 [installed,local]
Kernel version: linux-image-6.8.0-64-generic/now 6.8.0-64.67 amd64 [installed,local]

init process high memory usage:

init process high memory usage

Memory usage growth:

Memory usage growth

python: "AttributeError: module 'ssl' has no attribute 'wrap_socket'" when calling mysql.connector.connect() https://askubuntu.com/questions/1560591/python-attributeerror-module-ssl-has-no-attribute-wrap-socket-when-calli

The example code in W3Schools Tryit Editor works fine in my Chrome browser, printing:

<mysql.connector.connection.MySQLConnection object ar 0x016645F0>

But when I try a real example:

$ cat ./test.py
#!/usr/bin/python3
import mysql.connector
db = mysql.connector.connect(host="localhost", user="ray", password="…")
print(db)
exit(0)

$ ./test.py
Traceback (most recent call last):
  File "/home/ray/me/NFS/public/Test/Movies/./test.py", line 4, in <module>
    db = mysql.connector.connect(
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mysql/connector/__init__.py", line 173, in connect
    return MySQLConnection(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mysql/connector/connection.py", line 102, in __init__
    self.connect(**kwargs)
  File "/usr/lib/python3/dist-packages/mysql/connector/abstracts.py", line 735, in connect
    self._open_connection()
  File "/usr/lib/python3/dist-packages/mysql/connector/connection.py", line 250, in _open_connection
    self._do_auth(self._user, self._password,
  File "/usr/lib/python3/dist-packages/mysql/connector/connection.py", line 155, in _do_auth
    self._socket.switch_to_ssl(ssl_options.get('ca'),
  File "/usr/lib/python3/dist-packages/mysql/connector/network.py", line 427, in switch_to_ssl
    self.sock = ssl.wrap_socket(
                ^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'
-(1)-

My searches indicate that this is commonly caused by python and some of its modules not being up to date with respect to each other.

But as far as I can tell, they are in sync:

# uname -a
Linux ray-desktop 6.14.0-35-generic #35~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 13:55:17 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ sudo apt update
…

$ sudo apt full-upgrade
…

$ sudo apt upgrade python3 python3-mysql.connector openssl
…
python3 is already the newest version (3.12.3-0ubuntu2.1).
python3-mysql.connector is already the newest version (8.0.15-4).
openssl is already the newest version (3.0.13-0ubuntu3.6).

This was a new installation (November 15).

What am I missing?

Random freeze with Intel Kabylake (Gen9), Ubuntu 24.04 https://askubuntu.com/questions/1559669/random-freeze-with-intel-kabylake-gen9-ubuntu-24-04

Specifications:

  • Ubuntu 24.04.3 LTS

  • Dell Inc. Inspiron 5770

  • Intel® Core™ i7-8550U × 8 / Intel Kabylake (Gen9)

  • RAM 24 Gio

Issue description:

I'm running Ubuntu with a dual monitor (desktop integrated display + external monitor) for months. Both monitors are independent (joint display as opposed to clone mode). Since the beginning of this week, the integrated display randomly freezes. Even the mouse cursor remains displayed on the frozen screen. Meanwhile, the Ubuntu system and the external monitor keep working normally. The external monitor is configured as the main desktop display. Thus, I can open the settings. Then, switching to clone mode and immediately back to joint mode revive the integrated display.

I'm wondering if a recent software update may have compromised the system stability. Also, I noticed the computer may sometime be very busy, fans are running fast, during power saving mode. In this case, I'm unable to wake up the computer (forced power down).

Could you please help me diagnose the reasons why this occurs and, maybe, find a fix?

Ubuntu Server 24.04 randomly become unresponsive https://askubuntu.com/questions/1556384/ubuntu-server-24-04-randomly-become-unresponsive

I was running Ubuntu 22.04 LTS on the very same hardware for quite a while with little to no issues. Two weeks ago, I decided to make an upgrade to 24.04 LTS. First I tried do-release-upgrade command, which failed due to issues when connecting to security.ubuntu repositories. So, I made a "clean" install and configured the whole system from scratch. From that point on I have issues with the server randomly became unresponsive. The machine looks alive - the power and HDD-read leds are blinking, fans are running, HDDs are spinning, etc. Yet I cannot access any of the running services or to SSH to the server. When I turn on the monitor (always attached) it shows "no cable connected", and the machine do not responds to input from the keyboard. I need to manually restart the machine. Sometimes it freezes again in a matter of hours, and sometimes it works fine for days. No error messages or anything "interesting" in the logs. I have edited /etc/systemd/logind.conf as follows:

HandleSuspendKey=ignore
HandleSuspendKeyLongPress=ignore
HandleHibernateKey=ignore
HandleHibernateKeyLongPress=ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

... IdleAction=ignore

I have masked sleep.target suspend.target hibernate.target hybrid-sleep.target

I have also tried to add acpi=off in the GRUB_CMDLINE_LINUX_DEFAULT=, but then the system reports a 6-core Ryzen 5 1600 as a single core, single thread CPU, so I remove this line.

None of the above actions done the job for me. Probably disabling ACPI in the GRUB configuration has the ability to do so, as this was the measure that worked for a couple of days, but still I am not OK with 6C/12T CPU being reported as a 1C/1T?! I am running out of ideas and all the solutions Google gives me back are the ones, mentioned above...

p.s. the machine specs are:

  • MB: MEDION MD34030/2512
  • CPU: AMD Ryzen 5 1600
  • RAM: SAMSUNG DDR4 2400 MT/s
  • GPU: AMD Radeon Pro WX 2100
  • SSD: M.2 SATA 256 GB
  • HDD: HGST 2x6 TB + WD 2x3 TB LVM BTRSF
  • LAN: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
  • WAN: Intel Corporation Wireless 3165 Dual Band Wireless AC 3165
Show Recent Folders/Files/Items for an App Pinned to Dash/Dock (Taskbar) https://askubuntu.com/questions/1537552/show-recent-folders-files-items-for-an-app-pinned-to-dash-dock-taskbar

On Windows we can activate show recently opened items(folders, workspaces, files) in Jumplist on the taskbar.
I want to use the same functionality (on VSCode) on Ubuntu but I couldn't find a thing to do that.
I saw this issue but it didn't for me on Ubuntu 24.04 LTS (GNOME/Wayland)

Example image on Windows

Can I run ASUS OLED Care in Ubuntu? https://askubuntu.com/questions/1436993/can-i-run-asus-oled-care-in-ubuntu

I recently bought an ASUS laptop with an OLED preinstalled with Windows 11. ASUS provides a package of tools called OLED Care that includes features like brightness dimming and a pixel shifter.

I installed Ubuntu 22.04 in dual boot configuration and realized that I will not have these features on Ubuntu. Now, I am worried about my OLED screen when I use ubuntu.

Are there any packages in Ubuntu which provide features similar to ASUS OLED Care?

Does this mean I cannot use Ubuntu on my OLED laptop? What precautions can I take to avoid harming my display? I prefer to use Ubuntu as I did not find WSL good enough.

Can't change file descriptor max limit in Ubuntu 20.04 (LTS) x64 https://askubuntu.com/questions/1377828/cant-change-file-descriptor-max-limit-in-ubuntu-20-04-lts-x64

Trying to increase system wide file descriptor count on Ubuntu 20.04 (LTS) x64, currently running as a droplet in DigitalOcean. Following the process outlined here; quick summary below:

  1. Use ulimit -n... prints 1024 ✅
  2. Add fs.file-max=900000 and fs.nr_open=9000001 to /etc/sysctl.conf
  3. Execute sysctl -p to make the changes take effect.
  4. Use ulimit -n to double check the changes... prints 1024 ❌ should have printed 900000!.

I would expect at step 4 to get something other than 1024! What I am doing wrong?

No sound for Dell 1525 laptop with Ubuntu 20.04 (only HDMI option in Sound settings) https://askubuntu.com/questions/1234958/no-sound-for-dell-1525-laptop-with-ubuntu-20-04-only-hdmi-option-in-sound-setti

I have a Dell Inspiron 1525 laptop and I get no sound from it. In Sound settings I have only an HDMI option. Here is the output of play -l:

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: Generic Analog [Generic Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: Generic Digital [Generic Digital]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 7: Generic Digital [Generic Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[2]+  Done                    paprefs

Also this is:

$ cat /proc/asound/card*/codec* | grep Codec
Codec: Conexant Generic
Codec: Silicon Image Generic
Codec: SigmaTel Generic

Ι also used this command with no result:

echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf

I tried removing/reinstalling the ALSA packages. After that, my headphones are working, only the speakers of the laptop do not work.

Please help me, as this is the 4th time I try to install Ubuntu with the same result.

I am not able to login. Getting "Sorry that didnt work. Please try again" error before entering password https://askubuntu.com/questions/1147735/i-am-not-able-to-login-getting-sorry-that-didnt-work-please-try-again-error

My system is not even letting me enter my password. As soon as i select the username to enter my password i am getting an error "That didnt work Please try again." I tried to login to tty by pressing alt+ctrl+f3 even there it is not working. it says invalid login as soon as i enter my username and press enter.

Slow boot 18.04 (init ramdisk) https://askubuntu.com/questions/1087612/slow-boot-18-04-init-ramdisk

My system thinks it is booting quickly. journlctl -k reports:

-- Logs begin at Wed 2018-10-24 20:44:45 CDT, end at Fri 2018-10-26 21:52:05 CDT. --
Oct 26 20:53:11 Neurosprite kernel: Linux version 4.15.0-38-generic (buildd@lcy01-amd64-023) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #41-Ubuntu SMP Wed Oct 10 10:59
Oct 26 20:53:11 Neurosprite kernel: Command line: BOOT_IMAGE=/vmlinuz-4.15.0-38-generic root=UUID=d22f3d07-d029-4bb9-8157-44c0a42bb7d5 ro
Oct 26 20:53:11 Neurosprite kernel: KERNEL supported cpus:
Oct 26 20:53:11 Neurosprite kernel:   Intel GenuineIntel
Oct 26 20:53:11 Neurosprite kernel:   AMD AuthenticAMD
Oct 26 20:53:11 Neurosprite kernel:   Centaur CentaurHauls
Oct 26 20:53:11 Neurosprite kernel: x86/fpu: x87 FPU will use FXSAVE
Oct 26 20:53:11 Neurosprite kernel: e820: BIOS-provided physical RAM map:
Oct 26 20:53:11 Neurosprite kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
Oct 26 20:53:11 Neurosprite kernel: BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
Oct 26 20:53:11 Neurosprite kernel: BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
Oct 26 20:53:11 Neurosprite kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000cfdeffff] usable
Oct 26 20:53:11 Neurosprite kernel: BIOS-e820: [mem 0x00000000cfdf0000-0x00000000cfdf0fff] ACPI NVS
Oct 26 20:53:11 Neurosprite kernel: BIOS-e820: [mem 0x00000000cfdf1000-0x00000000cfdfffff] ACPI data
Oct 26 20:53:11 Neurosprite kernel: BIOS-e820: [mem 0x00000000cfe00000-0x00000000cfefffff] reserved
O
:
:
Oct 26 20:53:14 Neurosprite kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Oct 26 20:53:16 Neurosprite kernel: r8169 0000:03:00.0 enp3s0: link up
Oct 26 20:53:16 Neurosprite kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
Oct 26 20:53:18 Neurosprite kernel: usblp0: removed
Oct 26 20:53:18 Neurosprite kernel: usblp 8-2:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0028
Oct 26 20:53:19 Neurosprite kernel: resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000c0000-0x000dffff windo
Oct 26 20:53:19 Neurosprite kernel: caller os_map_kernel_space.part.7+0xda/0x120 [nvidia] mapping multiple BARs
Oct 26 20:53:25 Neurosprite kernel: rfkill: input handler disabled

that is 12 seconds. Looking at systemd-analyze blame I find:

          7.102s configure-printer@usb-008-002.service
          2.349s NetworkManager-wait-online.service
          1.594s dev-sdb5.device
           732ms fwupd.service
           709ms snapd.service
           558ms lvm2-pvscan@8:50.service
           488ms udisks2.service
           316ms systemd-journal-flush.service
           304ms openvpnas.service
           294ms dev-loop0.device
           283ms dev-loop2.device
           271ms dev-loop1.device
           266ms dev-loop8.device
           264ms systemd-logind.service
           260ms dev-loop6.device
           259ms dev-loop3.device
           257ms dev-loop9.device
           250ms dev-loop13.device
           246ms dev-loop4.device
           237ms dev-loop5.device
           236ms dev-loop10.device
           234ms NetworkManager.service
           230ms dev-loop11.device
           229ms dev-loop7.device
           226ms dev-loop12.device
           177ms dev-mapper-centos\x2dswap.swap
           161ms systemd-udevd.service
           157ms snap-gnome\x2dsystem\x2dmonitor-57.mount
           156ms snap-core-5662.mount
           147ms systemd-resolved.service
           146ms networkd-dispatcher.service
:
:

Consistent with 12 seconds. Except, it takes well over 5 minutes before any of this starts!

Removing "splash" and "quiet" from /etc/default/grub I get 2 lines on a purple background

Loading linux-4.15.0-38-generic...
Loading initial ramdisk...

And then 5 minutes later it actually boots.

The system is a fresh install on an SSD. Once running, it runs fast. The boot logs don't even start until after the problem is over.

This is not the same problem others have listed - it does not hang, and the actual booting goes quickly when it starts going. It just does not start for 5 minutes. Anyone have any ideas on why?

Thanks, Mike

How to create LVM via Calamares for Lubuntu 18.10? https://askubuntu.com/questions/1086266/how-to-create-lvm-via-calamares-for-lubuntu-18-10

This is for an install on a UEFI-based laptop with a GUID partition already in place.

There is only one disk I'm dealing with and it has partitions that I can't erase for provisional reasons (non-Linux). Therefore, manual partitioning has been my way up to this point.

I'm trying to install Lubuntu 18.10 with LUKS using LVM. I want to encrypt the entire partition holding distinct logical volumes (/, home, swap).

Currently, I already have Lubuntu installed with distinct partitions with only my home directory and swap encrypted.

I attempted to reinstall Lubuntu and came to find that the new installer seemingly supports what I'm seeking to do.

Here's what I've done so far:
1) Create boot partition and configure mount point
2) Create LVM2 PV partition and check encryption (inputting passphrase)
3) Attempt to create volume group

That's as far as I get.

I've looked online at Ubuntu's wiki/guide, whatever-you-call-it, and I've understood that to have a LV, you need a volume group—and to have a volume group, you need a physical volume. From what I see on the screen, I've created a physical volume. When I go to create a volume group, it recognizes it but when I hit OK, nothing happens.

I'm just stuck there with nothing to and I cannot proceed.

I've gone to Github and I'm 90% this is a Calamares limitation OR I'm just doing something wrong and I haven't caught on to it yet.

Does Calamares on Lubuntu even support what I'm trying to do and if not is there a way I can get some other GUI utility to do this for me? (yes, I'm that lazy)

TIA

Ubuntu 18.04 install freezes the CPU https://askubuntu.com/questions/1074792/ubuntu-18-04-install-freezes-the-cpu

I'm trying to install Ubuntu 18.04 on a Dell XPS9560 with an Intel Core i7-7700HQ and It was freezing up on the splash screen. I started it again and disabled the splash screen in the GRUB command line and I saw it freeze with these repeated "soft lockups" on several different processes. I'm pretty sure it's not a low-level hardware failure because I have Ubuntu 16.04 and Kubuntu 18.04 installed on two different partitions of this computer and both work fine.

[  *** ] (7 of 7) A start job is running for Set console scheme (10min 1s / no limit)[ 614.960003]
[ 614.963358] s3-...0: (0 ticks this GP) idle=0b2/14000000000000/0 softirq=1369/1369 fqs=74991
[ 614.966724] (detected by 5, t=150018 jiffies, g=207, c=206, q=17491)
[      ] (1 of 7) A start job is running for Network Manager (2min 23s / 3min)[ 616.036004] watch
[  *** ] (2 of 7) A start job is running for Detect the available GPUs and deal with any system ch
[ 628.040004] watchdog: BUG: soft lockup - CPU#6 stuck for 22s! [ModemManager:1291]
[  *** ] (7 of 7) A start job is running for Set console scheme (10min 22s / no limit)[ 636.03600
[ 636.036004] watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [systemd-udevd:1092]
[  *** ] (3 of 7) A start job is running for Holds Snappy daemon refresh (1min 23s / no limit) [
[      ] (5 of 7) A start job is running for Tool to automatically collect and submit kernel cras
[  *** ] (6 of 7) A start job is running for Snappy daemon (1min 39s / 3min) [ 656.036004] watchd
[ 656.040004] watchdog: BUG: soft lockup - CPU#6 stuck for 22s! [ModemManager:1291]
[  *** ] (5 of 7) A start job is running for Tool to automatically collect and submit kernel cras
[ 664.036004] watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [systemd-udevd:1092]
[  *** ] (7 of 7) A start job is running for Set console scheme (10min 54s / no limit) [ 668.0360
[      ] (3 of 7) A start job is running for Holds Snappy daemon refresh (1min 55s / no limit) [
[  *** ] (4 of 7) A start job is running for Wait until snapd is fully seeded (11min 10s / no lim
[ 684.040004] watchdog: BUG: soft lockup - CPU#6 stuck for 23s! [ModemManager:1291]
[  *** ] (2 of 7) A start job is running for Detect the available GPUs and deal with any system c
[ 692.036004] watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [systemd-udevd:1092]
[      ] (5 of 7) A start job is running for Tool to automatically collect and submit kernel cras
[  *** ] (1 of 7) A start job is running for Network Manager (3min 53s / 4min 30s) [ 700.036004]
[  *** ] (1 of 7) A start job is running for Network Manager (4min 5s / 4min 30s) [ 712.036004] w
[ 712.040004] watchdog: BUG: soft lockup - CPU#6 stuck for 23s! [ModemManager:1291]
[ 720.036004] watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [systemd-udevd:1092]
[ 720.036004] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [systemd-udevd:1099]
[ 724.036004] watchdog: BUG: soft lockup - CPU#5 stuck for 23s! [systemd-udevd:1089]
[ 728.036004] watchdog: BUG: soft lockup - CPU#2 stuck for 22s! [set-cpufreq:1327]
[ 740.036004] watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [kworker/1:2:1162]
[ 740.040004] watchdog: BUG: soft lockup - CPU#6 stuck for 23s! [ModemManager:1291]
[ 740.040004] watchdog: BUG: soft lockup - CPU#6 stuck for 23s! [ModemManager:1291]

Do you have any idea what could cause this?

Battery not charging but detected https://askubuntu.com/questions/1051209/battery-not-charging-but-detected

my Lenovo N581 detects the battery, but it doesn't charge it (as soon as I unplug the AC, it turns off).

When i type upower -i /org/freedesktop/UPower/devices/battery_BAT0 into the terminal I get:

native-path:          BAT1
vendor:               LENOVO
  model:                PABAS0241231
  serial:               41167
  power supply:         yes
  updated:              So 01 Jul 2018 14:48:33 CEST (59 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              0 Wh
    energy-empty:        0 Wh
    energy-full:         0 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    percentage:          0%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-caution-charging-symbolic'

What I tried:

  • buy a new battery
  • reset the cmos battery (unplug; remove battery; press power for 30 seconds)
  • appears on windows (8, 10) and ubuntu (16, 18)

Does anyone have an Idea what to do next? Do I have to buy a new mainboard?

Thanks for helping!!

Update to new minecraft launcher https://askubuntu.com/questions/1033296/update-to-new-minecraft-launcher

I have been playing minecraft for a long time on ubuntu but I have always used the old 'java' launcher. Since there is a new launcher I would like to update minecraft to that. I have searched the internet but can't update it whatever I do even reinstalling the game won't fix it. Can anyone help me?

OLED and AMOLED displays https://askubuntu.com/questions/938905/oled-and-amoled-displays

I know in the realm of LCD displays it makes sense to control the brightness of the screen by modulating the brightness of the white backlight that illuminates the screen as a whole. However in case of LED displays, each pixel is lit independently and since this is the case, it doesn't make sense to have the /sys/class/backlight directory and the files and directories in it. My questions are the following:

  1. Do laptops and desktop computers with OLED and AMOLED or any other LED lighting technology have the /sys/class/backlight directory and the files and directories in it.

  2. And is the increasingly ubiquitous problem of lacking the /sys/class/backlight directory in Ubuntu and other related linux distros a result of the systems' having LED based display technologies.

  3. Since most linux systems - and third party software like xrandr control screen brightness by modulating the value of the brightness file in /sys/class/backlight directory, what is to be done for the controlling of screen brightness in systems of this sort.

Microphone isn't working in Ubuntu 16.04 https://askubuntu.com/questions/919153/microphone-isnt-working-in-ubuntu-16-04

Today I decided I would install Ubuntu 16.04 alongside my Windows 10 in a dual boot system. After installing everything, I decided to install Discord to talk with some friends, then I noticed that my microphone wasn't working. I thought that there may be a problem with my Discord install, but there isn't after I checked that my microphone wasn't working in many more programs (including System Settings -> Sound where no sound was showing up).

I also have to mention that my sound is working completely fine. It's just the mic that's not working. The microphone is part of my headset (CREATIVE Sound BlasterX H7).

I checked all the forums and tried many different solutions. Some of them were:

  • Checking that the microphone isn't muted (it isn't);

  • Checking my settings in the pavucontrol panel. Trying to split the channels and lowering each channel at a time to check if the mic will work after that.

  • Looking at the Configuration panel in pavucontrol and setting it to Analog Stereo Duplex

  • Looking at the alsamixer and checking that the mic isn't muted (look at the pictures below) [I may have overlooked this step]

  • Trying to install a new vivid alsa dkms driver

  • Restarting the audio drivers

I am 100% sure my microphone is functioning, since I can use it without any problems on Windows 10 or on any other machine.

Imporant specs [since there may be a problem with my computer's drivers]:

i7-6700k Skylake / z170x gaming 7 Gigabyte / 2 monitors each having its own speakers

enter image description here

Here you can see all the audio devices:

➜  ~ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CA0132 Analog [CA0132 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: CA0132 Digital [CA0132 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
apt-get does not connect to repository for update [duplicate] https://askubuntu.com/questions/870958/apt-get-does-not-connect-to-repository-for-update

When I use sudo apt-get update, I get the following errors:

Err:1 http:/archive.ubuntu.com/ubuntu xenial InRelease
  Could not connect to localhost:4001 (127.0.0.1). - connect (111: Connection refused)
Err:2 http:/archive.ubuntu.com/ubuntu xenial-security InRelease
  Unable to connect to localhost:4001:
Err:3 http:/archive.ubuntu.com/ubuntu xenial-updates InRelease
  Unable to connect to localhost:4001:
Reading package lists... 4%
(process:2389): GLib-GIO-WARNING **: Invalid proxy URI 'http:/localhost:4001 ': Invalid URI 'http:/localhost:4001 '
Reading package lists... Done
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not connect to localhost:4001 (127.0.0.1). - connect (111: Connection refused)
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Unable to connect to localhost:4001:
W: Failed to fetch http:/archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Unable to connect to localhost:4001:
W: Some index files failed to download. They have been ignored, or old ones used instead.

What can I do to fix this?

What is the correct way to completely remove an application? https://askubuntu.com/questions/187888/what-is-the-correct-way-to-completely-remove-an-application

I've searched the net for such information and found different command lines, like these ones:

sudo apt-get remove application
sudo apt-get remove application*

sudo apt-get remove --purge application
sudo apt-get remove --purge application*

sudo apt-get purge application
sudo apt-get purge application*

So, what is the correct way? Is it necessary to use that "*"?

After that, I also found these commands:

sudo updatedb
sudo locate application
sudo rm -rf (file/folder name)
Nautilus is frozen, cannot be used, and cannot be killed https://askubuntu.com/questions/59348/nautilus-is-frozen-cannot-be-used-and-cannot-be-killed

I'm experiencing the weirdest problem right now. Nautilus is essentially not working right now. My desktop is frozen, clicking and right clicking doesn't work, I can't open anything in nautilus, etc. It simply is broken. The problem is that I can't exactly kill it with anything.

while true; sudo killall -9 nautilus ; done doesn't kill it.

I can't log out because I'm right in the middle of a long upload and I'm not going to kill it if I can help it. Is there something I can do to reload nautilus without logging out?