I can't save sound settings in Ubuntu 24.04 xfce! I tried everything including google searches and chatgpt! https://askubuntu.com/questions/1564230/i-cant-save-sound-settings-in-ubuntu-24-04-xfce-i-tried-everything-including-g

Why can't I save my sound settings in ubuntu xfce? Every time i log out and in the settings are not waht I want! Why is linux sound such a mess! There is alsa pulseaudio pipewire, no wonder it doesn't work! Please help a desperate user before I swicth back to Windows! Normally I want to use the sound icon (xfce4-pulseaudio-plugin) in the taskbar!

Ubuntu 24.04.4 LTS install https://askubuntu.com/questions/1564229/ubuntu-24-04-4-lts-install

I have been trying to install Ubuntu server but to my frustration I end up on the local host login enter the details I set up during the beginning stages of the install and it just won’t accept them. The Login page isLogin Screen

I have redone the install 3-4 times checking that I am not mistyping passwords etc. i have also rebooted in recovery mode and when using passwd username it doesn't recognise the user, nor does it list a user with ls/home command from the root menu.

Now from recovery mode, when root menus is selected and enter is pressed I get this msg- Give root password for maintenance (or press CTRLD)

recoverymode

I’m trying this on an old AMD machine which was running Mint xcfe previously.

Scanner doesn't work on Ubuntu Noble but work on Debian Trixie https://askubuntu.com/questions/1564225/scanner-doesnt-work-on-ubuntu-noble-but-work-on-debian-trixie

On Debian 13 and Fedora 43, my Canon G2770 is basically plug and play. I can just install sane and it's good to go. But when using Ubuntu, even though "sane-fins-scanner" detected a possible scanner (which is my Canon G2770), "scanimage -L" does not. Meanwhile on Debian and Fedora, "scanimage -L" is able to detect my Canon G2770. Running the install.sh provided by Canon website also doesn't help, it said installation successful, but I can't scangearmp2 also unable to find the scanner. The inkjet printer driver works fine (only downside is it cant wake up the printer automatically unlike on Windows). Manually adding usb vendor id and product id in the backend pixma.conf also did nothing. Oh, xsane also cant detect the scanner. Thank you for your help

System program problem detected during fresh installation https://askubuntu.com/questions/1564224/system-program-problem-detected-during-fresh-installation

I'm trying to dual boot Ubuntu 24.04.4 LTS alongside with Windows 11 on my laptop (AMD Ryzen AI9 365 + NVIDIA 5070). I kept having the issue of the pop up message "system program problem detected" right after the GRUB menu and cannot proceed any further, not even choosing the language. I've tried everything I found such as booting in safe graphics mode and decrypt the disk, but turns out nothing works. Can anyone help me out? Thanks!

Hard drive isn't accessible In Kubuntu, but does appear in Windows 10 https://askubuntu.com/questions/1564222/hard-drive-isnt-accessible-in-kubuntu-but-does-appear-in-windows-10

I'm new to Kubuntu and I've been having an issue with one of my hard drives. I dual boot Kubuntu (25.10) and Windows 10 (whatever the latest version was before it went out of service), and I have a 1TB hard drive connected to my computer. I can access it on Windows, but on Kubuntu, it will not show up in Dolphin. My Windows drive's two partitions and my external hard drive appear (and my phone when connected) and can be mounted with a click, but my 1TB hard drive does not appear. I've been having this issue for all of my installations of Kubuntu (~4?) and I've been using Kubuntu for a few months at this point.

I tried sudo fdisk -l, and sda, sdb, sdc, and sdd appeared. I believe sda4 and sda5 (out of 6) are my Windows drive's partitions, while sdc2 (out of 2) is my Kubuntu drive, and sdd1 (out of 1) is my external drive. sda1, sda2, sda3, and sda4 appear to all be related to formatting and file recovery, while sdb and its 3 parts are my 1TB. Curiously, I think the lack of it is tied to the three error messages that appear after sdb's listing in fdisk, Partition 1/2/3 does not start on physical sector boundary. I also do not know if I can access this drive through Konsole, but I doubt it.

Is there a way to fix this issue without formatting my drive entirely? It isn't necessarily difficult to move files over to Linux on this drive, but I don't want to have duplicate files on that drive and my Kubuntu drive if there is a way around it. I want to keep this drive, since it has a lot of things I consider important that are hard to access again.

Please ask me if you need more information.

Using a usb wifi adapter https://askubuntu.com/questions/1564215/using-a-usb-wifi-adapter

I am new to linux and just installed a new system on my computer in a dedicated partition. Everything is good except that I cannot get internet. The AX900 usb wifi adapter works fine with windows but linux does not see a wifi adapter. I downloaded the linux driver, followed the instructions, but still i get "no wifi adapter found." I think it sees the adapter as a flash drive, because it shows up in the left column. Any suggestions?

Ubuntu connects to wifi, but has no internet https://askubuntu.com/questions/1564116/ubuntu-connects-to-wifi-but-has-no-internet

I am using RaspAP with default settings on a raspberry pi 5 with raspberry pi os bookworm

the only thing I changed in RaspAP is the name, password and country code, which I set to US (via RaspAP GUI)

I connected my ubuntu machine to it, and it connected perfectly.

I ran a ping google.com, and got no connection.

I pinged 8.8.8.8, and got a perfect connection

My phone connects to it perfectly, reporting no internet access, but when I go to google.com, it loads fine so I don't know what's up with that.

I checked NetworkManager GUI, and it showed DNS was set to auto

please tell me if you need any more info

Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver is either not loaded or not set up correctly https://askubuntu.com/questions/1564103/kernel-driver-not-installed-rc-1908-the-virtualbox-linux-kernel-driver-is-eit

"Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver is either not loaded or not set up correctly"

"…Please reinstall virtualbox-dkms package and load the kernel module by executing 'modprobe vboxdrv' as root."

$ uname -a
Linux AM5 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

This appears to be a recurring problem with no definitive answer: each time it comes up, a previous solution fails to work and a new answer is needed. I've lost track of how many questions and 'answers' I've read on this.

There must be many thousands of people who rely upon Virtualbox to run other Linux, and especially Windows, on Linux. And many will be on Ubuntu. So I don't understand why there isn't already a fix. I don't even know which update caused it. All of a sudden, VB can't start a virtual machine.

Would subscribing to Ubuntu Pro help?

Perhaps I got a 'phased' update, so most of the rest of you are oblivious of the problem?

NB, I've checked the BIOS: secure boot is DISABLED.


Below is some of what I've tried.

Edit 1, Edit 2, etc, are my responses to @heynnema's heroic efforts to find the solution for me. Our exchange (including help from @nobody) was moved by a moderator from Comments to Chat.

So, first try what it says in the error message:

$ sudo apt reinstall virtualbox-dkms
[sudo] password for alan: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 38 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for virtualbox-dkms:amd64

Keep going — maybe the modprobe will work:

$ sudo modprobe vboxdrv
[sudo] password for alan: 
alan@AM5:~$ 

Restart Virtualbox. Try to start virtual machine. Virtual machine immediately goes from 'Saved' to 'Aborted Saved'.

Powering VM up...
VM Name: ...
The VM session was aborted.
Result code: NS_ERROR_FAILURE (0X80004005)
Component: SessionMachine
Interface: ISession {c044...}

Thank goodness I have a backup.

Edit grub and roll back to old kernel: nothing changes.

Let's try update/upgrade:

sudo apt upgrade  

[...]  

Setting up virtualbox-dkms (7.0.16-dfsg-2ubuntu1.1) ...
Removing old virtualbox-7.0.16 DKMS files...
Module virtualbox-7.0.16 for kernel 6.14.0-37-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.14.0-37-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
Deleting module virtualbox-7.0.16 completely from the DKMS tree.
Loading new virtualbox-7.0.16 DKMS files...
Building for 6.14.0-37-generic 6.17.0-14-generic
Building initial module for 6.14.0-37-generic
Done.

vboxdrv.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.14.0-37-generic/updates/dkms/

vboxnetadp.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.14.0-37-generic/updates/dkms/

vboxnetflt.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.14.0-37-generic/updates/dkms/
depmod...
Building initial module for 6.17.0-14-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
 installed virtualbox-dkms package post-installation script subprocess returned error exit status 10  

[...]  

errors were encountered while processing:
 virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.

I forgot to capture this before attempting to reinstall VB --- it's gone.

Tried to install a later version of VB direct from Oracle: failed.
Now I get: "Failed to acquire the VirtualBox COM object. The application will now terminate."

Yes, I know, I should have taken a more systematic approach. But it's difficult to write this on the machine you're trying to fix. Especially as some 'answers' have such enticing 'solutions'...


To understand the Edits, please see the Chat

Edit 1

Managed to install VB 7.1
Same original problem, but now it says to run /sbin/vboxconfig

$ sudo /sbin/vboxconfig
[sudo] password for alan: 
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
alan@AM5:~$ 

Look at /var/log/vbox-setup.log to find out what went wrong.

Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.17.0-14-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j32
 modules
make[1]: warning: -j32 forced in submake: resetting jobserver mode.
make  -C /tmp/vbox.0 \
-f /usr/src/linux-headers-6.17.0-14-generic/Makefile modules
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0

[...]  
[several "fatal error" messages:]

VBox/cdefs.h: No such file or directory  
VBox/sup.h: No such file or directory  
iprt/string.h: No such file or directory  
internal/iprt.h: No such file or directory  
the-linux-kernel.h: No such file or directory  
$ ll /usr/bin | grep gcc
lrwxrwxrwx  1 root root   23 Sep  4  2024 gcc-13 -> x86_64-linux-gnu-gcc-13*

So it would appear the warning about the compiler is a red herring.

Edit 2

$ dpkg -l *virtualbox*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                           Version                    Architecture Description
+++-==============================-==========================-============-==============================================
ic  virtualbox                     7.0.16-dfsg-2ubuntu1.1     amd64        x86 virtualization solution - base binaries
un  virtualbox-2.0                 <none>                     <none>       (no description available)
un  virtualbox-2.1                 <none>                     <none>       (no description available)
un  virtualbox-2.2                 <none>                     <none>       (no description available)
un  virtualbox-3.0                 <none>                     <none>       (no description available)
un  virtualbox-3.1                 <none>                     <none>       (no description available)
un  virtualbox-3.2                 <none>                     <none>       (no description available)
un  virtualbox-4.0                 <none>                     <none>       (no description available)
un  virtualbox-4.1                 <none>                     <none>       (no description available)
un  virtualbox-4.2                 <none>                     <none>       (no description available)
un  virtualbox-4.3                 <none>                     <none>       (no description available)
un  virtualbox-5.0                 <none>                     <none>       (no description available)
un  virtualbox-5.1                 <none>                     <none>       (no description available)
un  virtualbox-5.2                 <none>                     <none>       (no description available)
un  virtualbox-6.0                 <none>                     <none>       (no description available)
un  virtualbox-6.1                 <none>                     <none>       (no description available)
un  virtualbox-7.0                 <none>                     <none>       (no description available)
ii  virtualbox-7.1                 7.1.8-168469~Ubuntu~noble  amd64        Oracle VirtualBox
rc  virtualbox-7.2                 7.2.6-172322~Ubuntu~plucky amd64        Oracle VirtualBox
un  virtualbox-dkms                <none>                     <none>       (no description available)
rc  virtualbox-ext-pack            7.0.16-1                   all          extra capabilities for VirtualBox, downloader.
un  virtualbox-guest-additions-iso <none>                     <none>       (no description available)
un  virtualbox-guest-modules       <none>                     <none>       (no description available)
un  virtualbox-modules             <none>                     <none>       (no description available)
un  virtualbox-ose                 <none>                     <none>       (no description available)
un  virtualbox-qt                  <none>                     <none>       (no description available)
un  virtualbox-source              <none>                     <none>       (no description available)
alan@AM5:~$ 
$ sudo dkms status
[sudo] password for alan: 
alan@AM5:~$ 

(no output from dkms status)

Yes, linux-headers-6.17.0-14-generic installed:

$ sudo apt show linux-headers-6.17.0-14-generic
Package: linux-headers-6.17.0-14-generic
Version: 6.17.0-14.14~24.04.1
Priority: optional
Section: devel
Source: linux-hwe-6.17
Origin: Ubuntu
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 30.6 MB
Provides: linux-headers, linux-headers-3.0
Depends: linux-hwe-6.17-headers-6.17.0-14, libc6 (>= 2.38), libdw1t64 (>= 0.171), libelf1t64 (>= 0.144), libgcc-s1 (>= 4.2), libssl3t64 (>= 3.0.0), zlib1g (>= 1:1.2.3.3)
Download-Size: 3,979 kB
APT-Manual-Installed: yes
APT-Sources: http://gb.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
Description: Linux kernel headers for version 6.17.0
 This package provides kernel header files for version 6.17.0.
 .
 This is for sites that want the latest kernel headers.  Please read
 /usr/share/doc/linux-headers-6.17.0-14/debian.README.gz for details.

alan@AM5:~$ 

Edit 3

$ sudo apt purge virtualbox=7.0.16-dfsg-2ubuntu1.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED
  virtualbox*
0 to upgrade, 0 to newly install, 1 to remove and 12 not to upgrade.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 479790 files and directories currently installed.)
Purging configuration files for virtualbox (7.0.16-dfsg-2ubuntu1.1) ...

$ sudo apt purge virtualbox-ext-pack=7.0.16-1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED
  virtualbox-ext-pack*
0 to upgrade, 0 to newly install, 1 to remove and 12 not to upgrade.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 479788 files and directories currently installed.)
Purging configuration files for virtualbox-ext-pack (7.0.16-1) ...
$ sudo apt reinstall ./virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'virtualbox-7.1' instead of './virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb'
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 12 not to upgrade.
Need to get 0 B/108 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /tmp/virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb virtualbox-7.1 amd64 7.1.8-168469~Ubuntu~noble [108 MB]
Preconfiguring packages ...        
(Reading database ... 479788 files and directories currently installed.)
Preparing to unpack .../virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb ...
Unpacking virtualbox-7.1 (7.1.8-168469~Ubuntu~noble) over (7.1.8-168469~Ubuntu~noble) ...
Setting up virtualbox-7.1 (7.1.8-168469~Ubuntu~noble) ...
info: The group `vboxusers' already exists as a system group. Exiting.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for mate-menus (1.26.1-1build3) ...
Processing triggers for shared-mime-info (2.4-4) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu5) ...
Rebuilding /usr/share/applications/bamf-2.index...
alan@AM5:/tmp$ 

Same fatal errors: "no such file or directory"

NB 7.1 not in repository, only have .deb from Oracle (sorry, didn't make that clear).

Edit 4

Reinstall of VB 7.1 from within ~/Downloads/Virtualbox/

alan@AM5:~/Downloads/Virtualbox$ sudo apt reinstall ./virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb 
[sudo] password for alan: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'virtualbox-7.1' instead of './virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb'
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 12 not to upgrade.
Need to get 0 B/108 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /home/alan/Downloads/Virtualbox/virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb virtualbox-7.1 amd64 7.1.8-168469~Ubuntu~noble [108 MB]
Preconfiguring packages ...        
(Reading database ... 479788 files and directories currently installed.)
Preparing to unpack .../virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb ...
Unpacking virtualbox-7.1 (7.1.8-168469~Ubuntu~noble) over (7.1.8-168469~Ubuntu~noble) ...
Setting up virtualbox-7.1 (7.1.8-168469~Ubuntu~noble) ...
info: The group `vboxusers' already exists as a system group. Exiting.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for mate-menus (1.26.1-1build3) ...
Processing triggers for shared-mime-info (2.4-4) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu5) ...
Rebuilding /usr/share/applications/bamf-2.index...
N: Download is performed unsandboxed as root, as file '/home/alan/Downloads/Virtualbox/virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
alan@AM5:~/Downloads/Virtualbox$ 

Re-run of /sbin/vboxconfig

alan@AM5:~/Downloads/Virtualbox$ sudo /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
alan@AM5:~/Downloads/Virtualbox$ 
$ grep -i "no such" /var/log/vbox-setup.log
linux/../SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
SUPDrvInternal.h:47:10: fatal error: VBox/cdefs.h: No such file or directory
SUPLibAll.c:41:10: fatal error: VBox/sup.h: No such file or directory
common/string/strformatrt.c:42:10: fatal error: iprt/string.h: No such file or directory
combined-agnostic1.c:38:10: fatal error: internal/iprt.h: No such file or directory
combined-agnostic2.c:38:10: fatal error: internal/iprt.h: No such file or directory
combined-os-specific.c:38:10: fatal error: the-linux-kernel.h: No such file or directory

Edit 5

alan@AM5:~/Downloads/Virtualbox$ ls -al virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb 
-rw-rw-r-- 1 alan alan 108093464 May  3  2025 virtualbox-7.1_7.1.8-168469~Ubuntu~noble_amd64.deb
$ dpkg -l *headers* | grep ii
ii  linux-headers-6.11.0-21-generic  6.11.0-21.21~24.04.1 amd64        Linux kernel headers for version 6.11.0 on 64 bit x86 SMP
ii  linux-headers-6.11.0-29-generic  6.11.0-29.29~24.04.1 amd64        Linux kernel headers for version 6.11.0 on 64 bit x86 SMP
ii  linux-headers-6.14.0-37-generic  6.14.0-37.37~24.04.1 amd64        Linux kernel headers for version 6.14.0
ii  linux-headers-6.17.0-14-generic  6.17.0-14.14~24.04.1 amd64        Linux kernel headers for version 6.17.0
ii  linux-headers-6.8.0-100          6.8.0-100.100        all          Header files related to Linux kernel version 6.8.0
ii  linux-headers-6.8.0-100-generic  6.8.0-100.100        amd64        Linux kernel headers for version 6.8.0 on 64 bit x86 SMP
ii  linux-headers-generic            6.8.0-100.100        amd64        Generic Linux kernel headers
ii  linux-headers-generic-hwe-24.04  6.17.0-14.14~24.04.1 amd64        Generic Linux kernel headers
ii  linux-hwe-6.11-headers-6.11.0-21 6.11.0-21.21~24.04.1 all          Header files related to Linux kernel version 6.11.0
ii  linux-hwe-6.11-headers-6.11.0-29 6.11.0-29.29~24.04.1 all          Header files related to Linux kernel version 6.11.0
ii  linux-hwe-6.14-headers-6.14.0-37 6.14.0-37.37~24.04.1 all          Header files related to Linux kernel version 6.14.0
ii  linux-hwe-6.17-headers-6.17.0-14 6.17.0-14.14~24.04.1 all          Header files related to Linux kernel version 6.17.0
alan@AM5:~/Downloads/Virtualbox$ 
$ sudo apt purge virtualbox-7.1
[sudo] password for alan: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  liblzf1 libqt6core6t64 libqt6dbus6t64 libqt6gui6t64 libqt6help6 libqt6network6t64 libqt6opengl6t64 libqt6printsupport6t64
  libqt6qml6 libqt6qmlmodels6 libqt6quick6 libqt6sql6-sqlite libqt6sql6t64 libqt6statemachine6 libqt6waylandclient6
  libqt6waylandcompositor6 libqt6waylandeglclienthwintegration6 libqt6waylandeglcompositorhwintegration6 libqt6widgets6t64
  libqt6wlshellintegration6 libqt6xml6t64 libsdl-ttf2.0-0 libsdl1.2debian libtpms0 libts0t64 qt6-gtk-platformtheme
  qt6-qpa-plugins qt6-translations-l10n qt6-wayland
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  virtualbox-7.1*
0 to upgrade, 0 to newly install, 1 to remove and 12 not to upgrade.
After this operation, 242 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 479788 files and directories currently installed.)
Removing virtualbox-7.1 (7.1.8-168469~Ubuntu~noble) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for mate-menus (1.26.1-1build3) ...
Processing triggers for shared-mime-info (2.4-4) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu5) ...
Rebuilding /usr/share/applications/bamf-2.index...
(Reading database ... 479039 files and directories currently installed.)
Purging configuration files for virtualbox-7.1 (7.1.8-168469~Ubuntu~noble) ...
dpkg: warning: while removing virtualbox-7.1, directory '/usr/local' not empty so not removed
alan@AM5:~/Downloads/Virtualbox$ 

Synaptic used to install virtualbox 7.0.16-dfsg-2ubuntu1.1
Synaptic also chose and installed virtualbox-dkms and virtualbox-qt

synaptic installing VB 7.0

synaptic error message while trying to install VB 7.0

Virtualbox will run, but I'm back to the original problem.

Edit 6

Synaptic search for "linux-headers-generic":
synaptic: "linux-headers-generic" Looks like the 6.8 headers are still installed.

Uninstall?

From HWE kernels in Ubuntu docs: "HWE (Hardware Enablement) kernels are only enabled on Ubuntu long-term support (LTS) releases...By default, Ubuntu Desktop installations of 24.04 default to tracking the HWE stack.".

alan@AM5:~$ uname -r
6.17.0-14-generic
alan@AM5:~$ 
alan@AM5:~$ dkms status
virtualbox/7.0.16: added
alan@AM5:~$ 

Edit 7

alan@AM5:~$ sudo dkms build virtualbox/7.0.16
[sudo] password for alan: 
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
alan@AM5:~$ 

The resulting make.log:
/var/lib/dkms/virtualbox/7.0.16/build/make.log [pastebin]

Output from:
sudo apt install build-essential dkms linux-headers-$(uname -r) [pastebin]

alan@AM5:~$ sudo /sbin/vboxconfig
[sudo] password for alan: 
sudo: /sbin/vboxconfig: command not found
alan@AM5:~$ 
alan@AM5:~$ sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/6.17.0-14-generic
alan@AM5:~$ 

Edit 8

sudo apt purge virtualbox-7.2 Appears to remove 7.0, then says, "Package virtualbox-7.2 which provides virtualbox is not installed" ! Did I use the wrong command?

@heynnema: "Install virtualbox-source and virtualbox-modules using Synaptic"

Synaptic shows virtualbox-source but no virtualbox-modules.

Install via Synaptic of virtualbox-source:

E: virtualbox-dkms: installed virtualbox-dkms package post-installation script subprocess returned error exit status 10

But Synaptic does show virtualbox-source as installed.

In the description of virtualbox-source: "The source is placed under /usr/src, and after decompression it can be built to produce a virtualbox-modules-KVERS providing "virtualbox-modules" package." So I shall proceed with the source install...

After install, there is /usr/src/virtualbox.tar.bz2.

Extracting that creates /usr/src/modules/virtualbox/, which contains:

alan@AM5:/usr/src$ ll modules/virtualbox/
total 52
drwxr-xr-x 12 root root 4096 Sep  2  2024 ./
drwxr-xr-x  3 root root 4096 Sep  2  2024 ../
drwxr-xr-x 10 root root 4096 Sep  2  2024 common/
drwxr-xr-x  2 root root 4096 Sep  2  2024 debian/
drwxr-xr-x  2 root root 4096 Sep  2  2024 generic/
drwxr-xr-x  5 root root 4096 Sep  2  2024 include/
-rw-r--r--  1 root root   56 Aug 25  2023 Makefile
drwxr-xr-x  3 root root 4096 Sep  2  2024 math/
drwxr-xr-x  4 root root 4096 Sep  2  2024 r0drv/
drwxr-xr-x  2 root root 4096 Sep  2  2024 VBox/
drwxr-xr-x  3 root root 4096 Sep  2  2024 vboxdrv/
drwxr-xr-x  3 root root 4096 Sep  2  2024 vboxnetadp/
drwxr-xr-x  3 root root 4096 Sep  2  2024 vboxnetflt/
alan@AM5:/usr/src$ 

Edit 9

alan@AM5:/usr/src$ dkms status
virtualbox/7.0.16: added
alan@AM5:/usr/src$
alan@AM5:/usr/src$ sudo dkms build virtualbox/7.0.16
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/virtualbox/7.0.16/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
alan@AM5:/usr/src$ 
how to resize /boot partition UBUNTU 24.04 GParted https://askubuntu.com/questions/1564058/how-to-resize-boot-partition-ubuntu-24-04-gparted

I have the following situation:

gparted live image

and need to resize my /boot partition at the very beginning of the drive. Now, unfortunately for some poor design when I installed Ubuntu I set my EFI partition in between the /boot and the root partition (/) of roughly 1TB.

My goal would be to shrink the / for ~650MB to add to the /boot; however, it appears this would necessarily pass through the EFI – which is something I'm aware should not be touched...

So, my question is it safe to do it or I should leave things as they are? I'm asking since I haven't allocated enough space for multiple updates at the same time, and I'm always forced to promptly removed unsed headers in order to update/upgrade the system. Thanks in advance!


Following along the steps below, this is where I'm at: unmount and then forbid edits

in the image above it appears I'm unable to edit the /boot/efi partition size...

Why does the tree command print NBSP on Ubuntu 22.04 https://askubuntu.com/questions/1467494/why-does-the-tree-command-print-nbsp-on-ubuntu-22-04

I installed tree v 2.0.2 and in the terminal it displays the output properly but when I send to output to a .txt file it includes a bunch of NBSP ruining the display. It also happens when copying the terminal output.

This didn't happen before. Is this a new "feature" in version 2? How do I get it to display normal spaces instead of NBSP (which is for HTML)?

Edit: Output from tree ./ | xxd

$ tree ./ | xxd
00000000: 2e2f 0ae2 949c e294 80e2 9480 2063 6830  ./.......... ch0
00000010: 332e 696d 6c0a e294 9ce2 9480 e294 8020  3.iml.......... 
00000020: 646f 630a e294 82c2 a0c2 a020 e294 9ce2  doc........ ....
00000030: 9480 e294 8020 6375 726c 2e74 7874 0ae2  ..... curl.txt..
00000040: 9482 c2a0 c2a0 20e2 949c e294 80e2 9480  ...... .........
00000050: 2064 6966 662e 7478 740a e294 82c2 a0c2   diff.txt.......
00000060: a020 e294 9ce2 9480 e294 8020 7265 6164  . ......... read
00000070: 6d65 2e74 7874 0ae2 9482 c2a0 c2a0 20e2  me.txt........ .
00000080: 949c e294 80e2 9480 2074 7265 652e 6874  ........ tree.ht
00000090: 6d6c 0ae2 9482 c2a0 c2a0 20e2 9494 e294  ml........ .....
000000a0: 80e2 9480 2074 7265 652e 7478 740a e294  .... tree.txt...
000000b0: 9ce2 9480 e294 8020 676f 2e6d 6f64 0ae2  ....... go.mod..
000000c0: 949c e294 80e2 9480 2067 6f2e 7375 6d0a  ........ go.sum.
000000d0: e294 9ce2 9480 e294 8020 6d65 7461 6461  ......... metada
000000e0: 7461 0ae2 9482 c2a0 c2a0 20e2 949c e294  ta........ .....
000000f0: 80e2 9480 2063 6d64 0ae2 9482 c2a0 c2a0  .... cmd........
00000100: 20e2 9482 c2a0 c2a0 20e2 9494 e294 80e2   ....... .......
00000110: 9480 206d 6169 6e2e 676f 0ae2 9482 c2a0  .. main.go......
00000120: c2a0 20e2 949c e294 80e2 9480 2069 6e74  .. ......... int
00000130: 6572 6e61 6c0a e294 82c2 a0c2 a020 e294  ernal........ ..
00000140: 82c2 a0c2 a020 e294 9ce2 9480 e294 8020  ..... ......... 
00000150: 636f 6e74 726f 6c6c 6572 0ae2 9482 c2a0  controller......
00000160: c2a0 20e2 9482 c2a0 c2a0 20e2 9482 c2a0  .. ....... .....
00000170: c2a0 20e2 9494 e294 80e2 9480 206d 6574  .. ......... met
00000180: 6164 6174 610a e294 82c2 a0c2 a020 e294  adata........ ..
00000190: 82c2 a0c2 a020 e294 82c2 a0c2 a020 2020  ..... .......   
000001a0: 2020 e294 94e2 9480 e294 8020 636f 6e74    ......... cont
000001b0: 726f 6c6c 6572 2e67 6f0a e294 82c2 a0c2  roller.go.......
000001c0: a020 e294 82c2 a0c2 a020 e294 9ce2 9480  . ....... ......
000001d0: e294 8020 6861 6e64 6c65 720a e294 82c2  ... handler.....
000001e0: a0c2 a020 e294 82c2 a0c2 a020 e294 82c2  ... ....... ....
000001f0: a0c2 a020 e294 94e2 9480 e294 8020 6874  ... ......... ht
00000200: 7470 0ae2 9482 c2a0 c2a0 20e2 9482 c2a0  tp........ .....
00000210: c2a0 20e2 9482 c2a0 c2a0 2020 2020 20e2  .. .......     .
00000220: 9494 e294 80e2 9480 2068 7474 702e 676f  ........ http.go
00000230: 0ae2 9482 c2a0 c2a0 20e2 9482 c2a0 c2a0  ........ .......
00000240: 20e2 9494 e294 80e2 9480 2072 6570 6f73   ......... repos
00000250: 6974 6f72 790a e294 82c2 a0c2 a020 e294  itory........ ..
00000260: 82c2 a0c2 a020 2020 2020 e294 9ce2 9480  .....     ......
00000270: e294 8020 6572 726f 722e 676f 0ae2 9482  ... error.go....
00000280: c2a0 c2a0 20e2 9482 c2a0 c2a0 2020 2020  .... .......    
00000290: 20e2 9494 e294 80e2 9480 206d 656d 6f72   ......... memor
000002a0: 790a e294 82c2 a0c2 a020 e294 82c2 a0c2  y........ ......
000002b0: a020 2020 2020 2020 2020 e294 94e2 9480  .         ......
000002c0: e294 8020 6d65 6d6f 7279 2e67 6f0a e294  ... memory.go...
000002d0: 82c2 a0c2 a020 e294 94e2 9480 e294 8020  ..... ......... 
000002e0: 706b 670a e294 82c2 a0c2 a020 2020 2020  pkg........     
000002f0: e294 94e2 9480 e294 8020 6d6f 6465 6c0a  ......... model.
00000300: e294 82c2 a0c2 a020 2020 2020 2020 2020  .......         
00000310: e294 94e2 9480 e294 8020 6d65 7461 6461  ......... metada
00000320: 7461 2e67 6f0a e294 9ce2 9480 e294 8020  ta.go.......... 
00000330: 6d6f 7669 650a e294 82c2 a0c2 a020 e294  movie........ ..
00000340: 9ce2 9480 e294 8020 636d 640a e294 82c2  ....... cmd.....
00000350: a0c2 a020 e294 82c2 a0c2 a020 e294 94e2  ... ....... ....
00000360: 9480 e294 8020 6d61 696e 2e67 6f0a e294  ..... main.go...
00000370: 82c2 a0c2 a020 e294 9ce2 9480 e294 8020  ..... ......... 
00000380: 696e 7465 726e 616c 0ae2 9482 c2a0 c2a0  internal........
00000390: 20e2 9482 c2a0 c2a0 20e2 949c e294 80e2   ....... .......
000003a0: 9480 2063 6f6e 7472 6f6c 6c65 720a e294  .. controller...
000003b0: 82c2 a0c2 a020 e294 82c2 a0c2 a020 e294  ..... ....... ..
000003c0: 82c2 a0c2 a020 e294 94e2 9480 e294 8020  ..... ......... 
000003d0: 6d6f 7669 650a e294 82c2 a0c2 a020 e294  movie........ ..
000003e0: 82c2 a0c2 a020 e294 82c2 a0c2 a020 2020  ..... .......   
000003f0: 2020 e294 94e2 9480 e294 8020 636f 6e74    ......... cont
00000400: 726f 6c6c 6572 2e67 6f0a e294 82c2 a0c2  roller.go.......
00000410: a020 e294 82c2 a0c2 a020 e294 9ce2 9480  . ....... ......
00000420: e294 8020 6761 7465 7761 790a e294 82c2  ... gateway.....
00000430: a0c2 a020 e294 82c2 a0c2 a020 e294 82c2  ... ....... ....
00000440: a0c2 a020 e294 9ce2 9480 e294 8020 6572  ... ......... er
00000450: 726f 722e 676f 0ae2 9482 c2a0 c2a0 20e2  ror.go........ .
00000460: 9482 c2a0 c2a0 20e2 9482 c2a0 c2a0 20e2  ...... ....... .
00000470: 949c e294 80e2 9480 206d 6574 6164 6174  ........ metadat
00000480: 610a e294 82c2 a0c2 a020 e294 82c2 a0c2  a........ ......
00000490: a020 e294 82c2 a0c2 a020 e294 82c2 a0c2  . ....... ......
000004a0: a020 e294 94e2 9480 e294 8020 6874 7470  . ......... http
000004b0: 0ae2 9482 c2a0 c2a0 20e2 9482 c2a0 c2a0  ........ .......
000004c0: 20e2 9482 c2a0 c2a0 20e2 9482 c2a0 c2a0   ....... .......
000004d0: 2020 2020 20e2 9494 e294 80e2 9480 206d       ......... m
000004e0: 6574 6164 6174 612e 676f 0ae2 9482 c2a0  etadata.go......
000004f0: c2a0 20e2 9482 c2a0 c2a0 20e2 9482 c2a0  .. ....... .....
00000500: c2a0 20e2 9494 e294 80e2 9480 2072 6174  .. ......... rat
00000510: 696e 670a e294 82c2 a0c2 a020 e294 82c2  ing........ ....
00000520: a0c2 a020 e294 82c2 a0c2 a020 2020 2020  ... .......     
00000530: e294 94e2 9480 e294 8020 6874 7470 0ae2  ......... http..
00000540: 9482 c2a0 c2a0 20e2 9482 c2a0 c2a0 20e2  ...... ....... .
00000550: 9482 c2a0 c2a0 2020 2020 2020 2020 20e2  ......         .
00000560: 9494 e294 80e2 9480 2072 6174 696e 672e  ........ rating.
00000570: 676f 0ae2 9482 c2a0 c2a0 20e2 9482 c2a0  go........ .....
00000580: c2a0 20e2 9494 e294 80e2 9480 2068 616e  .. ......... han
00000590: 646c 6572 0ae2 9482 c2a0 c2a0 20e2 9482  dler........ ...
000005a0: c2a0 c2a0 2020 2020 20e2 9494 e294 80e2  ....     .......
000005b0: 9480 2068 7474 700a e294 82c2 a0c2 a020  .. http........ 
000005c0: e294 82c2 a0c2 a020 2020 2020 2020 2020  .......         
000005d0: e294 94e2 9480 e294 8020 6874 7470 2e67  ......... http.g
000005e0: 6f0a e294 82c2 a0c2 a020 e294 94e2 9480  o........ ......
000005f0: e294 8020 706b 670a e294 82c2 a0c2 a020  ... pkg........ 
00000600: 2020 2020 e294 94e2 9480 e294 8020 6d6f      ......... mo
00000610: 6465 6c0a e294 82c2 a0c2 a020 2020 2020  del........     
00000620: 2020 2020 e294 94e2 9480 e294 8020 6d6f      ......... mo
00000630: 7669 652e 676f 0ae2 949c e294 80e2 9480  vie.go..........
00000640: 2070 6b67 0ae2 9482 c2a0 c2a0 20e2 9494   pkg........ ...
00000650: e294 80e2 9480 2064 6973 636f 7665 7279  ...... discovery
00000660: 0ae2 9482 c2a0 c2a0 2020 2020 20e2 949c  ........     ...
00000670: e294 80e2 9480 2063 6f6e 7375 6c0a e294  ...... consul...
00000680: 82c2 a0c2 a020 2020 2020 e294 82c2 a0c2  .....     ......
00000690: a020 e294 94e2 9480 e294 8020 636f 6e73  . ......... cons
000006a0: 756c 2e67 6f0a e294 82c2 a0c2 a020 2020  ul.go........   
000006b0: 2020 e294 9ce2 9480 e294 8020 6469 7363    ......... disc
000006c0: 6f76 6572 792e 676f 0ae2 9482 c2a0 c2a0  overy.go........
000006d0: 2020 2020 20e2 9494 e294 80e2 9480 206d       ......... m
000006e0: 656d 6f72 790a e294 82c2 a0c2 a020 2020  emory........   
000006f0: 2020 2020 2020 e294 94e2 9480 e294 8020        ......... 
00000700: 6d65 6d6f 7279 2e67 6f0a e294 94e2 9480  memory.go.......
00000710: e294 8020 7261 7469 6e67 0a20 2020 20e2  ... rating.    .
00000720: 949c e294 80e2 9480 2063 6d64 0a20 2020  ........ cmd.   
00000730: 20e2 9482 c2a0 c2a0 20e2 9494 e294 80e2   ....... .......
00000740: 9480 206d 6169 6e2e 676f 0a20 2020 20e2  .. main.go.    .
00000750: 949c e294 80e2 9480 2069 6e74 6572 6e61  ........ interna
00000760: 6c0a 2020 2020 e294 82c2 a0c2 a020 e294  l.    ....... ..
00000770: 9ce2 9480 e294 8020 636f 6e74 726f 6c6c  ....... controll
00000780: 6572 0a20 2020 20e2 9482 c2a0 c2a0 20e2  er.    ....... .
00000790: 9482 c2a0 c2a0 20e2 9494 e294 80e2 9480  ...... .........
000007a0: 2072 6174 696e 670a 2020 2020 e294 82c2   rating.    ....
000007b0: a0c2 a020 e294 82c2 a0c2 a020 2020 2020  ... .......     
000007c0: e294 94e2 9480 e294 8020 636f 6e74 726f  ......... contro
000007d0: 6c6c 6572 2e67 6f0a 2020 2020 e294 82c2  ller.go.    ....
000007e0: a0c2 a020 e294 9ce2 9480 e294 8020 6861  ... ......... ha
000007f0: 6e64 6c65 720a 2020 2020 e294 82c2 a0c2  ndler.    ......
00000800: a020 e294 82c2 a0c2 a020 e294 94e2 9480  . ....... ......
00000810: e294 8020 6874 7470 0a20 2020 20e2 9482  ... http.    ...
00000820: c2a0 c2a0 20e2 9482 c2a0 c2a0 2020 2020  .... .......    
00000830: 20e2 9494 e294 80e2 9480 2068 7474 702e   ......... http.
00000840: 676f 0a20 2020 20e2 9482 c2a0 c2a0 20e2  go.    ....... .
00000850: 9494 e294 80e2 9480 2072 6570 6f73 6974  ........ reposit
00000860: 6f72 790a 2020 2020 e294 82c2 a0c2 a020  ory.    ....... 
00000870: 2020 2020 e294 9ce2 9480 e294 8020 6572      ......... er
00000880: 726f 722e 676f 0a20 2020 20e2 9482 c2a0  ror.go.    .....
00000890: c2a0 2020 2020 20e2 9494 e294 80e2 9480  ..     .........
000008a0: 206d 656d 6f72 790a 2020 2020 e294 82c2   memory.    ....
000008b0: a0c2 a020 2020 2020 2020 2020 e294 94e2  ...         ....
000008c0: 9480 e294 8020 6d65 6d6f 7279 2e67 6f0a  ..... memory.go.
000008d0: 2020 2020 e294 94e2 9480 e294 8020 706b      ......... pk
000008e0: 670a 2020 2020 2020 2020 e294 94e2 9480  g.        ......
000008f0: e294 8020 6d6f 6465 6c0a 2020 2020 2020  ... model.      
00000900: 2020 2020 2020 e294 94e2 9480 e294 8020        ......... 
00000910: 7261 7469 6e67 2e67 6f0a 0a34 3120 6469  rating.go..41 di
00000920: 7265 6374 6f72 6965 732c 2033 3020 6669  rectories, 30 fi
00000930: 6c65 730a                                les.
How to switch between Gnome & MATE desktops? https://askubuntu.com/questions/1459096/how-to-switch-between-gnome-mate-desktops

When I reinstalled the OS, I had only one, Ubuntu 22.04 Gnome desktop, option. I got used to MATE desktop. Therefore I installed MATE desktop too. Having two desktop environments, MATE & Gnome, how to switch between them? I cannot just remove Gnome as it affects LibreOffice. Do you have any suggestions?

Why does my Ubuntu 20.04.5 freeze / hang during boot? https://askubuntu.com/questions/1450731/why-does-my-ubuntu-20-04-5-freeze-hang-during-boot

OS: Ubuntu 20.04

kernel: 5.15.0-58-generic

Symptoms: system freezes or hangs at boot at exactly the same location. The cursor blinks about 30 times, and then freezes. The boot screen output is shown below.

[    0.157844] x86/cpu: SGX disabled by BIOS.
[    0.380956] ACPI BIOS Error (bug): Could not resolve symbol [\_PR.CPU0._CPC],
AE_NOT_FOUND (20210730/psargs-330)
[    0.380972] ACPI Error: Aborting method \_PR.CPU1._CPC due to previous error
(AE_NOT_FOUND) (20210730/psparse-529)
[    0.381018] ACPI BIOS Error (bug): Could not resolve symbol [\_PR.CPU0._CPC],
AE_NOT_FOUND (20210730/psargs-330)
[    0.381028] ACPI Error: Aborting method \_PR.CPU2._CPC due to previous error
(AE_NOT_FOUND) (20210730/psparse-529)
[    0.381070] ACPI BIOS Error (bug): Could not resolve symbol [\_PR.CPU0._CPC],
AE_NOT_FOUND (20210730/psargs-330)
[    0.381080] ACPI Error: Aborting method \_PR.CPU3._CPC due to previous error
(AE_NOT_FOUND) (20210730/psparse-529)
[    1.594362] device-mapper: table: 253:0: raid: unknown target type
/dev/sda8: clean, 204252/56958976 files, 6741691/227812608 blocks
_

Ctrl-Alt-Del works fine. The network is fine after recovery menu. Mounted USBs work fine. The "entire" log is included at the bottom of this post. likely culprits Nvidia, Wayland, gdm3 , GNOME issues, or some combination of those.

Wayland:

journalctl errors related to gdm-wayland-session.

Jan 17 20:31:50 Tower /usr/lib/gdm3/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=125 pid=1523] Activating service name='org.freedesktop.systemd1' requested by ':1.1' (uid=125 pid=1524 comm="/usr/libexec/gnome-session-binary --systemd --auto" label="unconfined")
Jan 17 20:31:50 Tower /usr/lib/gdm3/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=125 pid=1523] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=125 pid=1524 comm="/usr/libexec/gnome-session-binary --systemd --auto" label="unconfined")
Jan 17 20:31:50 Tower gnome-session[1524]: gnome-session-binary[1524]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
Jan 17 20:31:50 Tower gnome-session[1524]: gnome-session-binary[1524]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
Jan 17 20:31:50 Tower gnome-session-binary[1524]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
Jan 17 20:31:50 Tower /usr/lib/gdm3/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=125 pid=1523] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=125 pid=1524 comm="/usr/libexec/gnome-session-binary --systemd --auto" label="unconfined")
Jan 17 20:31:50 Tower /usr/lib/gdm3/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=125 pid=1523] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=125 pid=1524 comm="/usr/libexec/gnome-session-binary --systemd --auto" label="unconfined")
Jan 17 20:31:50 Tower /usr/lib/gdm3/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=125 pid=1523] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=125 pid=1524 comm="/usr/libexec/gnome-session-binary --systemd --auto" label="unconfined")
Jan 17 20:31:50 Tower /usr/lib/gdm3/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=125 pid=1523] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=125 pid=1524 comm="/usr/libexec/gnome-session-binary --systemd --auto" label="unconfined")
Jan 17 20:31:50 Tower /usr/lib/gdm3/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=125 pid=1523] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=125 pid=1524 comm="/usr/libexec/gnome-session-binary --systemd --auto" label="unconfined")
Jan 17 20:31:56 Tower gnome-session[1524]: gnome-session-binary[1524]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan 17 20:31:56 Tower gnome-session[1524]: gnome-session-binary[1524]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan 17 20:31:56 Tower gnome-session-binary[1524]: Unrecoverable failure in required component org.gnome.Shell.desktop
Jan 17 20:31:56 Tower gnome-session-binary[1524]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1

Gnome:

journalctl errors related to gnome-shell and gnome-session-binary

Jan 17 20:31:54 Tower systemd[1487]: Started Tracker metadata database store and lookup manager.
Jan 17 20:31:54 Tower systemd[1487]: Startup finished in 9.657s.
Jan 17 20:31:55 Tower gnome-shell[1594]: Failed to create backend: No GPUs with outputs found
Jan 17 20:31:56 Tower systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Jan 17 20:31:56 Tower gnome-session[1524]: gnome-session-binary[1524]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan 17 20:31:56 Tower gnome-session-binary[1524]: Unrecoverable failure in required component org.gnome.Shell.desktop
Jan 17 20:31:56 Tower gnome-session-binary[1524]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan 17 20:31:56 Tower gdm-launch-environment][1480]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Jan 17 20:31:56 Tower gdm3[1473]: GdmDisplay: Session never registered, failing
Jan 17 20:31:56 Tower systemd[1]: session-c1.scope: Succeeded.
Jan 17 20:31:56 Tower systemd-logind[1270]: Session c1 logged out. Waiting for processes to exit.
Jan 17 20:31:56 Tower systemd-logind[1270]: Removed session c1.
Jan 17 20:31:56 Tower gdm3[1473]: Child process -1515 was already dead.
Jan 17 20:31:56 Tower systemd[1]: plymouth-start.service: Succeeded.
Jan 17 20:31:56 Tower systemd[1]: plymouth-quit-wait.service: Succeeded.
Jan 17 20:31:56 Tower systemd[1]: Finished Hold until boot process finishes up.

Errors related to gdm3:

Jan 17 20:31:56 Tower gdm3[1473]: GdmDisplay: Session never registered, failing
Jan 17 20:31:56 Tower gdm3[1473]: Child process -1515 was already dead.
Jan 17 20:31:56 Tower gdm3[1672]: modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.15.0-58-generic
Jan 17 20:32:06 Tower gdm3[1697]: modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.15.0-58-generic
Jan 17 20:32:16 Tower gdm3[1473]: Child process -1515 was already dead.
Jan 17 20:32:18 Tower gdm3[1473]: Tried to look up non-existent conversation gdm-launch-environment
Jan 17 20:32:18 Tower gdm3[1825]: modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.15.0-58-generic
Jan 17 20:32:28 Tower gdm3[1473]: Freeing conversation 'gdm-launch-environment' with active job
Jan 17 20:32:28 Tower gdm3[1860]: modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.15.0-58-generic
mtd device must be supplied (device name is empty) https://askubuntu.com/questions/1423843/mtd-device-must-be-supplied-device-name-is-empty

On Friday 12th August, When trying to upgrade UbuntuStudio 20.04.4 to 22.04.1 by the network:

  • download was done correctly
  • Upgrading progession was correct.progression

After restarting:

  • the message "mtd device must be supplied (device name is empty)" was displayederror message
  • the login window doesn't appear, it stucks on the Ubuntustudio first display.ubuntustudio

Most of answer on the forum does not match to solve the issue.

What does mean this message "mtd device must be supplied (device name is empty)"?

Does Anyone have a solution to fix it?

Regards

Raerband

Updated node to 16.16.0, says 12.22.9 when I 'nodejs --version' https://askubuntu.com/questions/1422916/updated-node-to-16-16-0-says-12-22-9-when-i-nodejs-version

I'm trying to update nodejs in a fresh installation of Ubuntu 22.04 in a VM.

When I run this:

nodejs --version

It outputs:

v12.22.9

I've seen in many places that to update Node to the latest version you execute these commands:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

When I do it it appears to work and states:

copying: node/16.16.0

However, when I nodejs --version again it still says v12.22.9

What am I doing wrong?

All I've found online tells me to do the above.

How can I update nodejs and have it update to the latest version?

How to update Mutter to a new version in Ubuntu 22.04 https://askubuntu.com/questions/1421687/how-to-update-mutter-to-a-new-version-in-ubuntu-22-04

I am currently using Ubuntu 22.04. I am trying to update libmutter-10-0 to version 42.2-0ubuntu1, but even after doing apt update and apt show mutter it shows:

Package: libmutter-10-0
Version: 42.0-3ubuntu2

I want to specifically update this package as there is a bug in the existing package. I am not sure how to update it as the package is very much available, if I see online here.

Ubuntu 20.04 - Headset mic not working https://askubuntu.com/questions/1349404/ubuntu-20-04-headset-mic-not-working

I'm using Ubuntu 20.04 on an HP da0077tx laptop and my headset's mic is not working on ubuntu. The same headset is working fine with other devices.

Audio Codec: Realtek ALC236

This Audio codec is not available on https://www.kernel.org/doc/html/latest/sound/hd-audio/models.html

I have my interviews next week and this issue can create a problem. Any help will be greatly appreciated.

Only built-in mic is detected

Nvidia video driver can't play fullscreen after Ubuntu 20.04 upgrade https://askubuntu.com/questions/1279654/nvidia-video-driver-cant-play-fullscreen-after-ubuntu-20-04-upgrade

I just upgraded from 18.04 to 20.04 (LTS), but now I can't play full-screen videos, whether from web browser of even VLC. Whenever I select full screen video. It creates a "picture in picture" effect in the upper left hand corner.

https://i.sstatic.net/kKaWq.jpg

My machine is a Windows 10 dual boot, Acre Aspire 5. The output of sudo lshw -C video is:

 *-display                 
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:600-5ff iomemory:400-3ff irq:131 memory:6012000000-6012ffffff memory:4000000000-400fffffff ioport:6000(size=64) memory:c0000-dffff
  *-display UNCLAIMED
       description: 3D controller
       product: GP107M [GeForce MX350]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: iomemory:600-5ff iomemory:600-5ff memory:50000000-50ffffff memory:6000000000-600fffffff memory:6010000000-6011ffffff ioport:5000(size=128)

Installed Ubuntu drivers:

https://i.sstatic.net/MTXxx.png

The seems to be a bug in the 18.04 to 20.04 update that prevents the installation of some key drivers / software.

  1. Using ubuntu-drivers devices to figure out what driver was missing and (recommended)...

  2. Then using sudo ubuntu-drivers autoinstall

Which actually FAILED.... with the following error:

Setting up linux-modules-nvidia-450-5.4.0-48-generic (5.4.0-48.52) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package linux-modules-nvidia-450-5.4.0-48-generic (--configure):
 installed linux-modules-nvidia-450-5.4.0-48-generic package post-installation script subprocess returned error exit status 1
Setting up libnvidia-cfg1-450:amd64 (450.66-0ubuntu0.20.04.1) ...
Setting up screen-resolution-extra (0.18build1) ...
Setting up libnvidia-extra-450:amd64 (450.66-0ubuntu0.20.04.1) ...
Setting up nvidia-settings (440.82-0ubuntu0.20.04.1) ...
Setting up libnvidia-decode-450:amd64 (450.66-0ubuntu0.20.04.1) ...
Setting up libnvidia-decode-450:i386 (450.66-0ubuntu0.20.04.1) ...
Setting up libnvidia-fbc1-450:amd64 (450.66-0ubuntu0.20.04.1) ...
Setting up libnvidia-fbc1-450:i386 (450.66-0ubuntu0.20.04.1) ...
Setting up xserver-xorg-video-nvidia-450 (450.66-0ubuntu0.20.04.1) ...
Setting up nvidia-kernel-common-450 (450.66-0ubuntu0.20.04.1) ...
update-initramfs: deferring update (trigger activated)
Setting up libnvidia-gl-450:amd64 (450.66-0ubuntu0.20.04.1) ...
Setting up libnvidia-gl-450:i386 (450.66-0ubuntu0.20.04.1) ...
Setting up libnvidia-encode-450:amd64 (450.66-0ubuntu0.20.04.1) ...
Setting up libnvidia-encode-450:i386 (450.66-0ubuntu0.20.04.1) ...
dpkg: dependency problems prevent configuration of linux-modules-nvidia-450-generic-hwe-20.04:
 linux-modules-nvidia-450-generic-hwe-20.04 depends on linux-modules-nvidia-450-5.4.0-48-generic (= 5.4.0-48.52); however:
  Package linux-modules-nvidia-450-5.4.0-48-generic is not configured yet.

dpkg: error processing package linux-modules-nvidia-450-generic-hwe-20.04 (--configure):
 dependency problems - leaving unconfigured
Setting up libnvidia-ifr1-450:amd64 (450.66-0ubuntu0.20.04.1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up libnvidia-ifr1-450:i386 (450.66-0ubuntu0.20.04.1) ...
dpkg: dependency problems prevent configuration of nvidia-driver-450:
 nvidia-driver-450 depends on nvidia-dkms-450 (<= 450.66-1); however:
  Package nvidia-dkms-450 is not installed.
  Package linux-modules-nvidia-450-generic-hwe-20.04 which provides nvidia-dkms-450 is not configured yet.
 nvidia-driver-450 depends on nvidia-dkms-450 (>= 450.66); however:
  Package nvidia-dkms-450 is not installed.
  Package linux-modules-nvidia-450-generic-hwe-20.04 which provides nvidia-dkms-450 is not configured yet.

dpkg: error processing package nvidia-driver-450 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-48-generic
I: The initramfs will attempt to resume from /dev/nvme0n1p6
I: (UUID=5fc4b948-a7d5-454c-a0d8-7160f260d09f)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
 linux-modules-nvidia-450-5.4.0-48-generic
 linux-modules-nvidia-450-generic-hwe-20.04
 nvidia-driver-450
E: Sub-process /usr/bin/dpkg returned an error code (1)

However I was able to immediately fix it using the same solution to the problem of not being able to install Shutter. The answer is in this post. Once I did this, I was able to finish the installation of the correct Nvidia driver, rebooted, and verified that it was installed in Softwatre & Updates.

After all this I still had the same problem. This is definitely an Ubuntu 20.04 bug. I had 18.04 on this machine with no problems. The result of sudo lshw -C video is still display: UNKNOWN

I went back and tried all of the suggested solutions by @hyttysmyrkky listed below, but none of them worked. The result of sudo lshw -C video is ALWAYS display: UNKNOWN. This includes using the -47 kernel and the 440.100 driver. None of the solutions worked. I still had the same picture in picture, full screen mode problem. In addition to this error, under 20.04 I had the following problems:

  1. Unable to power off my machine from system menu. The screen goes dark, but the shutdown process would literally just hang no matter how long I waited, finally required a hard shutdown of holding down the power button.

  2. The recognition of my intel WiFi card was hit or miss at boot time. If failed, I needed to reboot to in order get the WiFi working because restarting network-manager had zero effect

  3. On a very annoyingly frequent basis, at boot my I would receive MOK messages (machine owner key) messages asking me to select boot systems even before grub. This would happen no matter how many times I had previously done the same thing.

  4. Often the BIOS settings would revert to system defaults, completely bypassing grub and loading Windows 10, which created the need to:

    1. Reboot Windows in safe mode.

    2. Enter BIOS, change "SATA settings" to from "RAID with array" to "AHCI", Disable Fast Boot.

    3. Log back into Windows 10 turn off safe mode and reboot. (i.e. It was a giant waste of time)

I finally "fixed" the problem, by reverting back to 18.04 in which the "manually installed driver" option seems to work perfectly with the Nvidia driver. 20.04 is "eye-candy", but I will wait year before attempting to upgrade again. I just switched to the nvidia-driver-450-server on 18.04 and it too works perfectly.

Mic device not working on Ubuntu 18.04 https://askubuntu.com/questions/1138408/mic-device-not-working-on-ubuntu-18-04

I already installed pavucontrol and checked alsamixer for further verification, but I don't see an end to my problem. This is my Alsa Info

I already reinstalled alsa-pulseaudio, and force-realod.

Did

killall pulseaudio; rm -r ~/.config/pulse/* ; rm -r ~/.pulse*

pulseaudio -k

did

sudo apt-get remove --purge alsa-base pulseaudio

sudo apt-get install alsa-base pulseaudio

sudo apt-get install alsa-base pulseaudio

But none of the above solved the problem.

Install Windows 10 alongside Ubuntu 18.04 https://askubuntu.com/questions/1072563/install-windows-10-alongside-ubuntu-18-04

I'm trying to install Windows 10 alongside Ubuntu 18.04 because I want to try some games on my laptop, and then go back to Ubuntu.

I have two USB Flash Drives, one with Windows 10 and the other with Ubuntu 18.04.

These are the steps I've done after following some answers here on Ask Ubuntu:

  1. Booted on Live Ubuntu, and shrank my 1TB HDD into a 500 GB NTFS partition with GParted;

  2. Booted on my Windows 10 USB Flash (on UEFI) and installing Windows without deleting the partition or formatting it, just by pressing next ( I also tried deleting it and make a new one with Windows, but I encounter the same issue);

  3. After install, it was directly booting into windows, probably installing other stuff, and this is the annoying part, Windows froze at

    Getting devices ready

    or something like this. I forced it to shut down and then .. continuing to step 4;

  4. I booted again on my Live Ubuntu USB, and I have installed boot-repair, doing the recommended installation.

  5. After installing boot-repair, I restarted my laptop, booted on Ubuntu OS redirecting me to GRUB Boot Loader, I selected Windows everything loaded then I got this error that Windows isn't installed properly and I have to restart and reinstall it.

I really don't know what to do any more, I deleted the NTFS partition and extended my ext4 partition, everything is normal now, but I really need Windows 10, I also need an answer on how to uninstall it and go back to normal.

This is one of the questions I was following, but it doesn't work for me: Install Windows 10 alongside Ubuntu 14.04

And this is the second question, and I was following the first and the second answer, except doing the mount /boot thing because I didn't know what to do exactly: How can I install Windows after I've installed Ubuntu?

EDIT : Here's the summary of boot-repair

PCI bus ID and GPU ID https://askubuntu.com/questions/1062659/pci-bus-id-and-gpu-id

I have 3 graphics cards installed on Ubuntu 16.04, and when I checked the PCI bus IDs by using three different commands:

  1. nvidia-smi,
  2. lspci | grep VGA
  3. nvidia-settings
  1. and 2) gave the same IDs, but 3) gave different IDs. It turned out that 3) was correct, which worked fine for another program while the others didn't. I was wondering why they gave different bus IDs in the first place.

Another problem was GPU IDs (0, 1, 2), where none of the GPU IDs reported were correct (commands 1)/2) and 3)), and I had to find the correct IDs by trying random combinations. Below are the results of nvidia-settings_GPU0, nvidia-settings_GPU01, and nvidia-settings_GPU2.

Results of nvidia-smi:

(a) nvidia-smi

Results of lspci:

08:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
42:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
43:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)

Results of nvidia-settings_GPU0:

Bus Type:                PCI Express x16 Gen3
Bus ID:                  PCI:66:0:0

Results of nvidia-settings_GPU1:

Bus Type:                PCI Express x16 Gen3
Bus ID:                  PCI:8:0:0

Results of nvidia-settings_GPU2:

Bus Type:                PCI Express x16 Gen3
Bus ID:                  PCI:67:0:0
Why is Ubuntu 18.04 battery life superior to Lubuntu 18.04 in a Dell 7577? https://askubuntu.com/questions/1049597/why-is-ubuntu-18-04-battery-life-superior-to-lubuntu-18-04-in-a-dell-7577

I'm struggling with the battery life of this laptop while running Lubuntu. In Windows 10 I'm able to get up to 9.5 hours of life in power save mode, but in Lubuntu a 100% charge lasts about 2.5 hours.

The laptop specs are:

  • Nvidia GTX 1060 Max-Q
  • Intel i7 7700hq (8 threads)

(Yeah, I know, I'm using Lubuntu in this machine. I just like Lubuntu very much)

I have display brightness at absolute minimum, tlp installed, powertop auto-tuned. When running prime-select query it returns intel so I'm supposedly using only the intel GPU. I even tried decreasing the maximum speed of the processor to 800Mhz with cpufreq frequency-set -u 800mhz. With all this settings the laptop lives at maximum something like 3 hours, but not more than that. Powertop reporst a discharge rate between 17W and 22W

However, when running plain Ubuntu 18.04 with gnome, in a live USB, with nothing installed, it drains so less battery, I get around 5 to 7 hours of estimated life, powertop reports a discharge rate of 11W or less.

I don't install Ubuntu simply because I really dislike Gnome take on UX (nautilus type-ahead removal, no shutdown without prompt option, etc), and I already have Lubuntu set up with all my necessities.

I tried another distros (Mint, Elementary, KDE Neon, Budgie) in Live USB but none of them consumed so little battery as Ubuntu did, they were around 10W and 15W. My theory is that since Dell supports Ubuntu in many of their laptops (this one at least you can get it with Ubuntu), they made some fine tunning with Canonical, that didn't go directly to Ubuntu derivatives like Lubuntu.

Also I have to note that powertop reports are really weird, saying that Display Backlight consumes up to 18W at times even though the display is at minimimum brightness, I think the nvidia drivers could be a possible cause (maybe the two gpus are working simultaneusly somehow?). Also it reports that the ethernet port is draining 1W o 2W when I'm using only wifi.

In the hardware side of things, I'm pretty sure my laptop is taking a lot of heat even when it is doing nothing (like 50°C), and I'm seeing the "fully charged" capacity of my battery going down in these days to 87% in less than two months.

Here is a powertop overview screenshot.

Lubuntu Powertop Overview (tlp, powertop autotuned, nvidia propietary driver, using intel gpu)
Click the image to enlarge it.

Immediately after posting I rebooted the PC into the live CD to take the next powertop screenshot, this is right after the previous screenshot with almost the same amount of battery.

Ubuntu Live CD Powertop Overview (powertop settings on good only) Click the image to enlarge it.

SD card content not showing up in Ubuntu https://askubuntu.com/questions/1009900/sd-card-content-not-showing-up-in-ubuntu

I have burned OS image (.img) into a new SD card (Sandisk 16GB) use LibreELEC USB-SD creator tool on Ubuntu laptop. I assume I don't need to format SD card before writing. Then I tried browse SD card for files, but Ubuntu not able to show the contents of sd card. It only show space available on SD card. I tried also to browse SD card on Windows PC, but it don't recognized it, when click on SD card drive icon, Windows show alert that SD card first need be formatted. There is also listed volume 537 MB, it can't be opened, when try click to mount it, error message is displayed:

Unable to access "537 MB Volume"

Error mounting /dev/mmcblk0p1 at /media/venitek/3463-3434: Command  line 'mount -t "vfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,shortname=mixed,utf8=1,showexec,flush"
"/dev/mmcblk0p1" "/media/venitek/3463-3434"' exitedd with non-zero exit status 32: mount: /dev/mmcblk0p1: can't read superblock

Edit: here is output fdisk -l command:

$ sudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xb45e11b8

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048    718847    716800   350M de Dell Utility
/dev/sda2          718848   7010303   6291456     3G  c W95 FAT32 (LBA)
/dev/sda3  *      7010304 960389119 953378816 454.6G 83 Linux
/dev/sda4       960391166 976771071  16379906   7.8G  5 Extended
/dev/sda5       960391168 976771071  16379904   7.8G 82 Linux swap / Solaris

Partition 4 does not start on physical sector boundary.


Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbe03dce7

Device         Boot   Start     End Sectors  Size Id Type
/dev/mmcblk0p1 *       8192 1056767 1048576  512M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      1056768 1122303   65536   32M 83 Linux

I tried also commmand dd if=/dev/sdb1 bs=1024k count=10 | less, it show just vertical list of tilde ~ chars, not sure if it's readable.

lm-sensors not showing voltages https://askubuntu.com/questions/916305/lm-sensors-not-showing-voltages

I've done as suggested here: https://help.ubuntu.com/community/SensorInstallHowto and run sudo sensors-detect and entered yes for everything.

Still I only get this:

:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +105.0°C)
temp2:        +29.8°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +34.0°C  (high = +80.0°C, crit = +100.0°C)
Core 0:         +31.0°C  (high = +80.0°C, crit = +100.0°C)
Core 1:         +34.0°C  (high = +80.0°C, crit = +100.0°C)
Core 2:         +28.0°C  (high = +80.0°C, crit = +100.0°C)
Core 3:         +28.0°C  (high = +80.0°C, crit = +100.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:        0 RPM

System Information

  PROCESSOR:          Intel Core i7-4790K @ 4.40GHz (8 Cores)
    Core Count:       4
    Thread Count:     8
    Extensions:       SSE 4.2 + AVX2 + AVX + RDRAND + FSGSBASE
    Cache Size:       8192 KB
    Microcode:        0x1e
    Scaling Driver:   intel_pstate powersave

  GRAPHICS:           Intel HD 4600 (1250MHz)
    Display Driver:   intel 2.99.917
    Monitor:          S27C750
    Screen:           1920x1080

  MOTHERBOARD:        ASUS Z97I-PLUS
    Memory:           16384MB
    Chipset:          Intel 4th Gen Core DRAM
    Network:          Intel Connection + Broadcom BCM4352 802.11ac Wireless

  DISK:               240GB Kingston SHPM228
    File-System:      ext4
    Mount Options:    data=ordered errors=remount-ro relatime rw
    Disk Scheduler:   DEADLINE

  OPERATING SYSTEM:   Ubuntu 16.04
    Kernel:           4.4.0-78-generic (x86_64)
    Desktop:          GNOME Shell 3.18.5
    Compiler:         GCC 5.4.0 20160609
14.04 no internet connection when I up the bridge interface (for LXC container) https://askubuntu.com/questions/678260/14-04-no-internet-connection-when-i-up-the-bridge-interface-for-lxc-container

I have VM Ubuntu 14.04 32bit running in VMware Workstation on Win 10.

I'm trying to set up the LXC container having its own IP address so I set the bridge interface in /etc/network/interfaces (tried static and dhcp):

 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo   
 iface lo inet loopback 

 auto br0
 iface br0 inet dhcp
        bridge_ports eth0
        bridge_fd 0
        bridge_maxwait 0

But then I reboot it and have no internet on my host mashine Ubuntu.

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
pipe 3

But it can connect to the router and I can ssh it from my main OS (win 10)

my host ifconfig:

root@ubuntu:~# ifconfig
br0       Link encap:Ethernet  HWaddr 00:0c:29:68:f1:39
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe68:f139/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:483 errors:0 dropped:0 overruns:0 frame:0
          TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:39212 (39.2 KB)  TX bytes:28823 (28.8 KB)

eth0      Link encap:Ethernet  HWaddr 00:0c:29:68:f1:39
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:488 errors:0 dropped:0 overruns:0 frame:0
          TX packets:268 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:46338 (46.3 KB)  TX bytes:39955 (39.9 KB)
          Interrupt:19 Base address:0x2000

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

I read all the similar posts but did not help. Any thoughts?

Ubuntu samba file server using ldap https://askubuntu.com/questions/653464/ubuntu-samba-file-server-using-ldap

I am quite new to samba. I have an ldap server already setup with users. I am now setting up a new samba file server that they will be accessing through the ldap. Has anyone done this before? I am trying to follow a few guides online but they are confusing. Could someone give me a link or a guide of how to do this?

Get Qualcomm Atheros AR93xx Wireless Network Adapter to work under Ubuntu 14.04 https://askubuntu.com/questions/572516/get-qualcomm-atheros-ar93xx-wireless-network-adapter-to-work-under-ubuntu-14-04

I'm trying to install TP-Link TL-WDN4800 Adapter with Ath9k under trusty. It should work just out of the box for windows and linux. On windows it works, but on ubuntu 14.04 (same computer) it doesn't. Sometimes I am able to connect, but then the internet is still veeeery slow.

I also changed the bandwidth of the router from "20/40 MHz (auto)" to "20 MHz". After that, I wasn't able to connect to the wlan at all. So I changed it back.

From all solutions I have read in the internet so far, nothing works.

Network manager can see the ssids of different networks, but fails to connect.

$ uname -r
3.13.0-43-generic


$ sudo lshw -C network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: eth0
       version: 0c
       serial: 44:8a:5b:a0:12:03
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.0.110 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:91 ioport:e000(size=256) memory:fea00000-fea00fff memory:d0800000-d0803fff
  *-network
       description: Wireless interface
       product: AR93xx Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 01
       serial: c4:6e:1f:1f:b0:78
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=3.13.0-43-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
       resources: irq:36 memory:fe900000-fe91ffff memory:fe920000-fe92ffff


$ lspci -nn | grep -i net 
    01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
    02:00.0 Network controller [0280]: Qualcomm Atheros AR93xx Wireless Network Adapter [168c:0030] (rev 01)

Just in case someone wants to point me to firmware-atheros:

E: Unable to locate package firmware-atheros

any help would be appreciated

EDIT:

I tried what was suggested:

$ cat /etc/modprobe.d/ath9k.conf 
  options ath9k nohwcrypt=1

But that did not help. So I tried to understand the output of dmesg

[ 1835.890681] wlan0: authenticate with f0:7d:68:83:97:82
[ 1835.903235] wlan0: send auth to f0:7d:68:83:97:82 (try 1/3)
[ 1836.449019] wlan0: send auth to f0:7d:68:83:97:82 (try 2/3)
[ 1836.905084] wlan0: authenticated
[ 1840.903373] wlan0: deauthenticating from f0:7d:68:83:97:82 by local choice (reason=3)
[ 1860.900842] wlan0: authenticate with 64:70:02:5c:0c:56
[ 1860.908795] wlan0: send auth to 64:70:02:5c:0c:56 (try 1/3)
[ 1862.399231] wlan0: send auth to 64:70:02:5c:0c:56 (try 2/3)
[ 1862.911212] wlan0: authenticated
[ 1865.907029] wlan0: deauthenticating from 64:70:02:5c:0c:56 by local choice (reason=3)
[ 1885.899599] wlan0: authenticate with 64:70:02:5c:0c:56
[ 1885.907701] wlan0: send auth to 64:70:02:5c:0c:56 (try 1/3)
[ 1887.398561] wlan0: send auth to 64:70:02:5c:0c:56 (try 2/3)
[ 1887.906374] wlan0: authenticated
[ 1890.907982] wlan0: deauthenticating from 64:70:02:5c:0c:56 by local choice (reason=3)

Right after authentication, wlan is deauthenticated (what is reason=3?). I dn't know why.

EDIT2: I also tried this answer: sudo killall wpa_supplicant Oddly, that helped me to connect, but it didn't really work (veeery slow connection).

This time dmesg says:

[ 3166.968051] cfg80211: Calling CRDA to update world regulatory domain
[ 3166.976276] cfg80211: World regulatory domain updated:
[ 3166.976281] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 3166.976284] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 3166.976286] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 3166.976289] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 3166.976291] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 3166.976293] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 3168.753735] wlan0: authenticate with 64:70:02:5c:0c:56
[ 3168.764904] wlan0: send auth to 64:70:02:5c:0c:56 (try 1/3)
[ 3169.764107] wlan0: authenticated
[ 3169.771922] ath9k 0000:02:00.0 wlan0: disabling HT/VHT due to WEP/TKIP use
[ 3169.779500] wlan0: associate with 64:70:02:5c:0c:56 (try 1/3)
[ 3171.081643] wlan0: associate with 64:70:02:5c:0c:56 (try 2/3)
[ 3171.777353] wlan0: RX AssocResp from 64:70:02:5c:0c:56 (capab=0x431 status=0 aid=1)
[ 3171.777634] wlan0: associated

UPDATE: With EDIMAX WLan Stick (8€) everything works out of the box. But with TP-Link TL-WDN4800 (35€) I have these problems...

As stated in the answer and comments the solution could be to remove TKIP. But I have a secondary router in repeater mode and that doesn't work with AES (don't know why). However, I don't see why removing TKIP would help, when connection is possible with different wlan adapters.

But still I'd love to get the TP-Link Wlan adapter to work under Ubuntu.

failed to idle channel https://askubuntu.com/questions/491139/failed-to-idle-channel

I run ubuntu 14.04 on a acer aspire 5742g and for some reason after a while my screen goes black and i get this error messages:

Jul  2 21:01:44 steven-pc kernel: [ 1591.975086] nouveau E[Xorg[1078]] failed to idle channel 0xcccc0000 [Xorg[1078]]
Jul  2 21:01:44 steven-pc kernel: [ 1592.066902] nouveau E[Xorg[1078]] failed to idle channel 0xcccc0000 [Xorg[1078]]
Jul  2 21:01:46 steven-pc kernel: [ 1594.066097] nouveau E[   PFIFO][0000:01:00.0] channel 2 [Xorg[1078]] kick timeout

i found the error log in : /var/log/kern.log So far i know i haven't made any change to the kernel. Does anyone any idea what is wrong? if more information is required let me know.

DIALux alternative for linux? https://askubuntu.com/questions/244720/dialux-alternative-for-linux

I'm wondering if an alternative for DIALux lighting simulation software exists? It's really important for me as I replaced Autocad with Draftsight I still need DIALux without running it with Virtualbox to fully move to Ubuntu (finally!). Tried Wine, but it's not working. Google also doesn't know any software for my needs. Any electrical enineers on Ubuntu that can help me out?

Cheers

Most appropriate setup to share music and playlists accross a network? https://askubuntu.com/questions/188141/most-appropriate-setup-to-share-music-and-playlists-accross-a-network

I have a home network with the following setup:

A QNAP NAS (has a DAAP server)
A server/media center with XBMC
2 laptops (Linux)
1 desktop (Linux)
Android phone
iPod

For a couple of years I haven't been able to find a good solution to my music sharing that allows for the following:

  1. Centralized location for music
  2. Centralized location for playlists (ie, define the playlist once, be able to play it everywhere)
  3. Sync with mobile devices (Android and iPod)

My current setup is having my music on the NAS and either use an NFS share or the built in firefly DAAP to share it. This takes care of 1, but not of 2 and 3.

Do you have any suggestions or set-up ideas for how to achieve 2 and 3? Ideally I'd like to: - Create playlists on my linux laptop/desktops that could then be automatically added anywhere: on that laptop/desktop, on XBMC and iPod/android - Have an easy way of plugging and auto-syncing my iPod and android to either the complete music collection (iPod) or partial (android)

Ubuntu One Music - Music folder won't sync https://askubuntu.com/questions/96402/ubuntu-one-music-music-folder-wont-sync

I'm running Ubuntu 11.10, and just signed up for Ubuntu One and Ubuntu One Music. Generally file sync is working fine, but music has been a complete failure so far. Here's what I'm looking at:

  • After 24 hours, not a single mp3 or ogg file from my laptop has sync'd to the Cloud Music folder.
  • I have 4 gigs of data used, which is definitely not enough to include music files. That's about the right amount for my docs and photos. With music, it should be more like 13 gigs.
  • No music shows up on the Ubuntu One Music app on my phone, nor on the web view of my Ubuntu One Cloud folder
  • I followed all the online instructions I could find. Basically, on my laptop, right click on the Music folder and select "Ubuntu One > Synchronize this folder"
  • The Music folder now has a green check mark on it indicating its sync'd
  • The Ubuntu One app on my laptop says "File Sync is up to date"
  • I did provide credit card information, and on the Ubuntu One website "Music Streaming" is listed as one of my services.

So what am I doing wrong?