Power drain in Ubuntu 24.04 is much more than in Windows https://askubuntu.com/questions/1564540/power-drain-in-ubuntu-24-04-is-much-more-than-in-windows

I'm currently facing the issue of power-hungry Ubuntu. I have a Lenovo LOQ RTX4050 laptop. I have a dual boot of Windows + Ubuntu 24.04) on this laptop. When I'm in Ubuntu 24.04 the energy rate while discharging (without battery power plugged in or cooling pad) is in the range of ~20-25W while being idle or light browsing, whereas when doing the same when I boot into Windows and do in the WSL Ubuntu it says ~1-3W.

I checked everything. The refresh rate is set to 60Hz, the NVIDIA drivers (nvidia-smi) are disabled and UMA graphics are selected from the boot screen, it's on power save + quiet mode (blue on LOQ), and the brightness in Ubuntu is also 30%-40%.

I saw data from htop, and after 2-3 minutes of monitoring I came to understand that Gnome and the default Firefox (snap package) are the real CPU users, but how do I solve this problem?

My battery on Ubuntu drains from 100% to 10% in ~45-55 minutes.

The command I used is this: upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep energy-rate

24.04 + kernel 6.17 + latest linux-firmware => problematic bluetooth and wifi https://askubuntu.com/questions/1564536/24-04-kernel-6-17-latest-linux-firmware-problematic-bluetooth-and-wifi

I have a Lenovo ThinkPad T14s Gen 6 (AMD) running Ubuntu 24.04.4. After upgrading to kernel 6.17 and the latest linux-firmware yesterday, I still have Wifi connection but there are some other Wireless issues.

  1. My laptop can only discover 2.4G networks. At home I have a dual-band router, but only the 2.4G one is listed.

  2. My MX Master 3S becomes super laggy via bluetooth connection. (It works fine with the bolt connector.)

I am staying on 6.14 for now, where all the problems above don't exist. Any ideas on how to solve these issues? Thanks in advance.

> sudo lshw -class network

  *-network
       description: Ethernet interface
       product: WCN785x Wi-Fi 7(802.11be) 320MHz 2x2 [FastConnect 7800]
       vendor: Qualcomm Technologies, Inc
       physical id: 0
       bus info: pci@0000:c2:00.0
       logical name: wlp194s0
       version: 01
       serial: f4:4e:b4:b3:bb:73
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical
       configuration: broadcast=yes driver=ath12k_pci driverversion=6.14.0-37-generic firmware=N/A ip=10.130.79.53 latency=0 link=yes multicast=yes
       resources: irq:140 memory:b0600000-b07fffff
  *-network
       description: Ethernet interface
       physical id: f
       bus info: usb@8:1.3.1
       logical name: enx8c47be01dbea
       serial: 8c:47:be:01:db:ea
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.12.13 duplex=half firmware=rtl8153b-2 v2 04/27/23 link=no multicast=yes port=MII
> lspci

c2:00.0 Network controller: Qualcomm Technologies, Inc WCN785x Wi-Fi 7(802.11be) 320MHz 2x2 [FastConnect 7800] (rev 01)

With kernel 6.14.0:

> sudo nmcli -f ALL dev wifi
NAME    SSID                        SSID-HEX                                              BSSID              MODE   CHAN  FREQ      RATE        BANDWIDTH  SIGNAL  BARS  SECURITY   WPA-FLAGS                           RSN-FLAGS                           DEVICE    ACTIVE  IN-USE  DBUS-PATH                                        
AP[3]   cycc-2.4G                   637963632D322E3447                                    E4:60:4D:27:FD:F0  Infra  6     2437 MHz  270 Mbit/s  20 MHz     100     ▂▄▆█  WPA2 WPA3  (none)                              pair_ccmp group_ccmp psk sae        wlp194s0  no              /org/freedesktop/NetworkManager/AccessPoint/2945 
AP[7]   ChinaNet-zbFD               4368696E614E65742D7A624644                            10:B3:6F:0D:C3:18  Infra  11    2462 MHz  195 Mbit/s  20 MHz     79      ▂▄▆_  WPA2       (none)                              pair_ccmp group_ccmp psk            wlp194s0  no              /org/freedesktop/NetworkManager/AccessPoint/2953 
AP[8]   cycc                        63796363                                              E4:60:4D:27:FD:F1  Infra  48    5240 MHz  405 Mbit/s  160 MHz    79      ▂▄▆_  WPA2 WPA3  (none)                              pair_ccmp group_ccmp psk sae        wlp194s0  yes     *       /org/freedesktop/NetworkManager/AccessPoint/2910 
AP[11]  ChinaNet-zbFD-5G            4368696E614E65742D7A6246442D3547                      10:B3:6F:0D:C3:1C  Infra  157   5785 MHz  405 Mbit/s  80 MHz     55      ▂▄__  WPA2       (none)                              pair_ccmp group_ccmp psk            wlp194s0  no              /org/freedesktop/NetworkManager/AccessPoint/2947 
> iw reg get
global
country 00: DFS-UNSET
        (755 - 928 @ 2), (N/A, 20), (N/A), PASSIVE-SCAN
        (2402 - 2472 @ 40), (N/A, 20), (N/A)
        (2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
        (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
        (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
        (5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
        (57240 - 63720 @ 2160), (N/A, 0), (N/A)

phy#0 (self-managed)
country 00: DFS-UNSET
        (2402 - 2472 @ 40), (N/A, 20), (N/A)
        (2457 - 2482 @ 20), (N/A, 20), (N/A), PASSIVE-SCAN
        (5170 - 5330 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (5490 - 5730 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
        (5735 - 5895 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
Why is my Settings Menu popping up on its own? https://askubuntu.com/questions/1564535/why-is-my-settings-menu-popping-up-on-its-own

Ubuntu 25.10 Linux 6.17.0-14-generic Gnome 49

It pops up on its own at least once an hour now.

I could not find where to send notifications to Ubuntu on this

Touchpad is ghosting and teleporting https://askubuntu.com/questions/1564534/touchpad-is-ghosting-and-teleporting

I have a Dell laptop that I'm trying to run Ubuntu 24.04 or 25.10 on. My cursor is lagging, jumping, ghosting and teleporting all over the screen. There is extreme lagging, and by the time it catches back up with itself it's on the other side of screen or it's completely gone. My laptop has a touchscreen so I can navigate with that, but after I select something I have to "move" the cursor to get the screen to react. I tried Wayland and Xorg, and the same things happened. I've edited several settings, but there was no change.

Tabs reordering in taskbar on Ubuntu 24.04 https://askubuntu.com/questions/1564531/tabs-reordering-in-taskbar-on-ubuntu-24-04

I have a bunch of Cursor, Chrome and Slack tabs open. When I try reordering the Cursor tabs in the taskbar, after some time there is an animation where the taskbar disappears as if there is a pop-up about to open up, and then the tabs are again arranged to the original random order in the taskbar. I am not sure what could be causing this.

OS information:

kkumargupta@kkumarguptalinux:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
Customize output area of pam_fprintd on the lock screen https://askubuntu.com/questions/1564519/customize-output-area-of-pam-fprintd-on-the-lock-screen

I've recently purchased USB fingerprint scanner and configured fprintd for lock screen and some other authorizations.

Here is my /etc/pam.d/kde file

auth    sufficient      pam_fprintd.so max-tries=10 timeout=10
auth    sufficient      pam_unix.so nullok try_first_pass

The issue is that when fprintd fails to recognize my finger, its messages flush password entry line out of the screen, like in the photo below.

enter image description here

Is there any way to customize the area, where messages from fprintd appear? For example, add scroll-bar?

I use KDE, desktop theme is Breeze.

Versions:

Kubuntu: 24.04.4LTS

package kubuntu-desktop: 1.451.2

package sddm-theme-breeze: 4:5.27.12-0ubuntu0.1

UPD. I understand that I can reduce max-tries. However, matching algorithm is still experimental, it gives too many false negatives. Each false reject appends a new message. Therefore I'd like to enlarge output area.

Reading files in /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/ I've found that this message is accessible in the field root.notification.

Unfortunately, I'm totally newbie in KDE theme development, therefore, I have no idea how to add style to this component.

Text Editor Spaces per Tab setting is not working https://askubuntu.com/questions/1564516/text-editor-spaces-per-tab-setting-is-not-working

I am using Text Editor 46.3 in Ubuntu 24.04. I prefer to keep the "Spaces per Tab" setting at 4, however even after changing the setting, I still get 2 spaces per tab.

Is this a glitch or am I missing something?

Edit: I just realized, this issue is there only for some document types. I checked for C, C++, and Java document types, and for all of them the Spaces per tab setting seems to be ignored and is always 2 (and is also always 4 for Python, but unlike other languages mentioned, Python always needs to have that). The setting works as expected for Plain Text type.

Errors when trying to update Ubuntu 24.04.4 https://askubuntu.com/questions/1564469/errors-when-trying-to-update-ubuntu-24-04-4

First time poster looking for help with errors while attempting to update. The system seems to be stable and running fine, however I am just experiencing problems with updates and deciphering the logs. The results appear to be the same whether using the software updater or the command line. It may be a compatibility issue between kernel versions, but I have no idea why and how to recover from this situation.

System details: Ubuntu 24.04.4 LTS, Kernel 6.14.0-37-generic running on an AMD Ryzen 7 8745HS.

Error logs:

$:/var/log/apt$ sudo apt update
Hit:1 http://gb.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu noble-updates InRelease                  
Hit:3 http://gb.archive.ubuntu.com/ubuntu noble-backports InRelease                
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease                   
Hit:5 https://repo.protonvpn.com/debian stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up-to-date.
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
$:/var/log/apt$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
* synosnap dpkg pre hook check
dumping distro info
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BIO_BI_BDEV - not present
performing configure test: HAVE_BIO_ALLOC_BIOSET_5 - not present
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BDEV_OPEN_BY_PATH - not present
performing configure test: HAVE_BDOPS_OPEN_INT - not present
performing configure test: HAVE_BDEVNAME - not present
performing configure test: HAVE_BDEV_STACK_LIMITS - not present
performing configure test: HAVE_ALLOC_DISK - not present
performing configure test: HAVE_BD_HAS_SUBMIT_BIO - not present
performing configure test: HAVE_BIO_BI_BDEV_BD_DISK - not present
performing configure test: HAVE_BD_SUPER - not present
performing configure test: HAVE_BDOPS_OPEN_GENDISK - not present
performing configure test: HAVE_BIO_ALLOC_2 - not present
performing configure test: HAVE_BIO_BI_OPF - not present
performing configure test: HAVE_BDOPS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present
performing configure test: HAVE_BIO_BI_POOL - not present
performing configure test: HAVE_BIO_ENDIO_1 - not present
performing configure test: HAVE_BIO_BLKG - not present
performing configure test: HAVE_BIO_FREE_PAGES - not present
performing configure test: HAVE_BIO_LIST - not present
performing configure test: HAVE_BIO_REMAPPED - not present
performing configure test: HAVE_BIO_FOR_EACH_SEGMENT_ALL_2 - not present
performing configure test: HAVE_BIO_BI_REMAINING - not present
performing configure test: HAVE_BIOSET_INIT - not present
performing configure test: HAVE_BIOSET_NEED_BVECS_FLAG - not present
performing configure test: HAVE_BIO_ENDIO_INT - not present
performing configure test: HAVE_BIO_COPY_DEV - not present
performing configure test: HAVE_BIO_FOR_EACH_SEGMENT_ALL_1 - not present
performing configure test: HAVE_BIO_SET_DEV - not present
performing configure test: HAVE_BIO_SET_OP_ATTRS - not present
performing configure test: HAVE_BIOSET_CREATE_3 - not present
performing configure test: HAVE_BLK_ALLOC_DISK - not present
performing configure test: HAVE_BIO_THROTTLED - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_1 - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_MK_REQ_FN_NODE_ID - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_2 - not present
performing configure test: HAVE_BLKDEV_GET_BY_PATH - not present
performing configure test: HAVE_BLK_ALLOC_QUEUE_RH_2 - not present
performing configure test: HAVE_BLKDEV_GET_BY_PATH_4 - not present
performing configure test: HAVE_BLK_CLEANUP_QUEUE - not present
performing configure test: HAVE_BLK_MQ_MAKE_REQUEST - not present
performing configure test: HAVE_BLK_MQ_SUBMIT_BIO - not present
performing configure test: HAVE_BVEC_ITER_ALL - not present
performing configure test: HAVE_BLKDEV_PUT_1 - not present
performing configure test: HAVE_BLKDEV_PUT_HOLDER - not present
performing configure test: HAVE_BLK_STATUS_T - not present
performing configure test: HAVE_BLK_SET_STACKING_LIMITS - not present
performing configure test: HAVE_BVEC_ITER - not present
performing configure test: HAVE___DENTRY_PATH - not present
performing configure test: HAVE_COMPOUND_HEAD - not present
performing configure test: HAVE_BVEC_MERGE_DATA - not present
performing configure test: HAVE_DENTRY_PATH_RAW - not present
performing configure test: HAVE_ENUM_REQ_OPF - not present
performing configure test: HAVE_FMODE_T - not present
performing configure test: HAVE_D_UNLINKED - not present
performing configure test: HAVE_ENUM_REQ_OP - not present
performing configure test: HAVE_FILE_INODE - not present
performing configure test: HAVE_FTRACE_REGS - not present
performing configure test: HAVE_FREEZE_SB - not present
performing configure test: HAVE_GD_OWNS_QUEUE - not present
performing configure test: HAVE_GENHD_FL_NO_PART_SCAN - not present
performing configure test: HAVE_GENHD_FL_NO_PART - not present
performing configure test: HAVE_FOPS_FALLOCATE - not present
performing configure test: HAVE_IOPS_FALLOCATE - not present
performing configure test: HAVE_INODE_LOCK - not present
performing configure test: HAVE_HD_STRUCT - not present
performing configure test: HAVE_GET_SUPER - not present
performing configure test: HAVE_KERNEL_READ_PPOS - not present
performing configure test: HAVE_MAKE_REQUEST_FN_IN_QUEUE - not present
performing configure test: HAVE_KERNEL_WRITE_PPOS - not present
performing configure test: HAVE_KERN_PATH - not present
performing configure test: HAVE_MERGE_BVEC_FN - not present
performing configure test: HAVE_MAKE_REQUEST_FN_INT - not present
performing configure test: HAVE_MNT_IDMAP_ARGS - not present
performing configure test: HAVE_MAKE_REQUEST_FN_VOID - not present
performing configure test: HAVE_NONVOID_ADD_DISK - not present
performing configure test: HAVE_NOOP_LLSEEK - not present
performing configure test: HAVE_NONVOID_SUBMIT_BIO_1 - not present
performing configure test: HAVE_MNT_WANT_WRITE - not present
performing configure test: HAVE_PATH_PUT - not present
performing configure test: HAVE_PROC_CREATE - not present
performing configure test: HAVE_NOTIFY_CHANGE_2 - not present
performing configure test: HAVE_SB_START_WRITE - not present
performing configure test: HAVE_PROC_OPS - not present
performing configure test: HAVE_PART_NR_SECTS_READ - not present
performing configure test: HAVE_STRSCPY - not present
performing configure test: HAVE_SUBMIT_BIO_WAIT - not present
performing configure test: HAVE_SUBMIT_BIO_1 - not present
performing configure test: HAVE_SYS_OLDUMOUNT - not present
performing configure test: HAVE_THAW_BDEV_INT - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_CB_HEAD - not present
performing configure test: HAVE_STRUCT_PATH - not present
performing configure test: HAVE_USER_NAMESPACE_ARGS - not present
performing configure test: HAVE_TASK_STRUCT_TASK_WORKS_HLIST - not present
performing configure test: HAVE_UAPI_MOUNT_H - not present
performing configure test: HAVE_VFS_FALLOCATE - not present
performing configure test: HAVE_UUID_H - not present
performing configure test: HAVE_USER_PATH_AT - not present
performing configure test: HAVE_VZALLOC - not present
performing configure test: HAVE_VFS_UNLINK_2 - not present
performing configure test: HAVE_WRITE_ZEROES - not present
performing configure test: HAVE_WITHIN_MODULE - not present
performing sys_mount lookup
performing sys_umount lookup
performing sys_oldumount lookup
performing sys_call_table lookup
performing blk_mq_submit_bio lookup
performing blk_alloc_queue lookup
performing kfree lookup
performing printk lookup
performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
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 -j16 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.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.17.0-14-generic (--configure):
 installed linux-headers-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
Setting up linux-headers-6.8.0-101-generic (6.8.0-101.101) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-101-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
* System map at /boot/System.map-6.8.0-101-generic does not contain valid symbol table, and 
* we are trying to install synosnap driver for a differnt kernel than the one currently running.
* Synosnap driver will encounter error during installation.
* We will try to install/build driver when next booting into new kernel.
* After rebooting into the new kernel, if the backup process still fails,
* please uninstall and reinstall Active Backup for Business Linux Agent.

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.8.0-101-generic -C /lib/modules/6.8.0-101-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.8.0-101-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.8.0-101-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
dkms autoinstall on 6.8.0-101-generic/x86_64 succeeded for virtualbox
dkms autoinstall on 6.8.0-101-generic/x86_64 failed for synosnap(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-101-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.8.0-101-generic (--configure):
 installed linux-headers-6.8.0-101-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however:
  Package linux-headers-6.17.0-14-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            No apport report written because MaxReports has already been reached
                                                                                                                                                                                dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.8.0-101-generic; however:
  Package linux-headers-6.8.0-101-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.17.0-14.14~24.04.1); however:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    Processing triggers for linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BDOPS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present
performing configure test: HAVE_BIO_BI_BDEV - not present
performing configure test: HAVE_BDEV_STACK_LIMITS - not present
performing configure test: HAVE_BIO_BI_OPF - not present
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BD_HAS_SUBMIT_BIO - not present
performing configure test: HAVE_BDOPS_OPEN_GENDISK - not present

{some items removed here to get within body character limit}

performing configure test: HAVE_WRITE_ZEROES - not present
performing sys_mount lookup
performing sys_umount lookup
performing sys_oldumount lookup
performing sys_call_table lookup
performing blk_mq_submit_bio lookup
performing blk_alloc_queue lookup
performing kfree lookup
performing printk lookup
performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
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 -j16 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.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.17.0-14-generic (--configure):
 installed linux-image-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports has already been reached
                                                                    Errors were encountered while processing:
 linux-headers-6.17.0-14-generic
 linux-headers-6.8.0-101-generic
 linux-headers-generic-hwe-24.04
 linux-headers-generic
 linux-generic-hwe-24.04
 linux-image-6.17.0-14-generic
* synosnap dpkg post hook check
dumping distro info
compare distro info
check for file trigger
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)

Update - I have tried to remove the Synology synosnap package but this fails with similar errors:

$ sudo apt-get purge --auto-remove synosnap
[sudo] password for steve: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED
  synosnap*
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
5 not fully installed or removed.
After this operation, 1,292 MB disk space will be freed.
N: Ignoring file 'virtualbox.list.temp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Do you want to continue? [Y/n] y
* synosnap dpkg pre hook check
dumping distro info
(Reading database ... 265747 files and directories currently installed.)
Removing synosnap (0.11.7) ...
removed '/usr/share/initramfs-tools/hooks/synosnap'
removed '/usr/share/initramfs-tools/scripts/init-premount/synosnap'
Found synosnap installed by dkms in the following kernel versions: 6.14.0-37-generic 6.17.0-14-generic 6.8.0-101-generic
Start updating initrd and try to remove backup initrd for these kernel versions...
Configuring update-initramfs for 6.14.0-37-generic, please wait...
update-initramfs: Generating /boot/initrd.img-6.14.0-37-generic
Removing old backup initrd /boot/initrd.img-6.14.0-37-generic.old-syno
removed '/boot/initrd.img-6.14.0-37-generic.old-syno'
Module synosnap-0.11.7 for kernel 6.8.0-101-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.8.0-101-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...
Module synosnap-0.11.7 for kernel 6.14.0-37-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

synosnap.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...
Module synosnap-0.11.7 for kernel 6.17.0-14-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

synosnap.ko.zst:
 - Uninstallation
   - Deleting from: /lib/modules/6.17.0-14-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 synosnap-0.11.7 completely from the DKMS tree.
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Running the pre_build script:
generating configurations for kernel-6.17.0-14-generic
performing configure test: HAVE_BDEV_FREEZE - not present
performing configure test: HAVE_BDOPS_OPEN_INODE - not present

{some items removed here to get within body character limit}

performing x64_sys_call lookup
performing __x64_sys_mount lookup
performing __x64_sys_umount lookup
performing __arm64_sys_mount lookup
performing __arm64_sys_umount lookup
performing __x64_sys_mount_setattr lookup
performing __x64_sys_move_mount lookup
performing __x64_sys_fsconfig lookup
performing __arm64_sys_mount_setattr lookup
performing __arm64_sys_move_mount lookup
performing __arm64_sys_fsconfig lookup
performing namespace_sem lookup

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.17.0-14-generic -C /lib/modules/6.17.0-14-generic/build M=/var/lib/dkms/synosnap/0.11.6/build KVER=6.17.0-14-generic modules...(bad exit status: 2)
ERROR (dkms apport): binary package for synosnap: 0.11.6 not found
Error! Bad return status for module build on kernel: 6.17.0-14-generic (x86_64)
Consult /var/lib/dkms/synosnap/0.11.6/build/make.log for more information.
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 -j16 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.
dkms autoinstall on 6.17.0-14-generic/x86_64 failed for synosnap(10) virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.17.0-14-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.17.0-14-generic (--configure):
 installed linux-headers-6.17.0-14-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however:
  Package linux-headers-6.17.0-14-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.17.0-14.14~24.04.1); however:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                                                                Errors were encountered while processing:
 linux-headers-6.17.0-14-generic
 linux-headers-generic-hwe-24.04
 linux-generic-hwe-24.04
sh: 1: /opt/synosnap/hooks/dpkg-post-hook.sh: not found
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Problem executing scripts DPkg::Post-Invoke '/opt/synosnap/hooks/dpkg-post-hook.sh'
E: Sub-process returned an error code
UFW blocking internet https://askubuntu.com/questions/1541127/ufw-blocking-internet

Of course, everything worked yesterday.

With the command UFW enabled there is no internet connection.

UFW rules:

Added user rules (see 'ufw status' for running firewall):
ufw allow 22
ufw allow 21
ufw allow 80
ufw allow 8080
ufw allow 443

No matter what I try, the status is always UFW is active (exited).

/etc/init.d/UFW status:

root@ubuntu:/etc/init.d# ./ufw status
● ufw.service - Uncomplicated firewall
   Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor preset: enabled)
   Active: active (exited) since Mon 2025-02-10 23:35:14 EST; 1h 45min ago
 Main PID: 390 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ufw.service

Feb 11 01:03:52 ubuntu.domain.com systemd[1]: Started Uncomplicated firewall.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

I've removed UFW, purged UFW, removed iptables, purged iptables and still get active (exited).

The solutions posted for others don't seem to work for me.

gio mount password with special characters https://askubuntu.com/questions/1528662/gio-mount-password-with-special-characters

I want mount using well-known way

gio mount smb://<user>:<password>@<server>/<share>/

In my case

gio mount "smb://WORKGROUP;myuser:+B@e}F)q8tra@@192.168.1.199/"

I get warning Authentication Required Enter password for “192.168.1.199”:

It is because of my password +B@e}F)q8tra@ I try convert it using this converter to %2BB%40e%7DF%29q8tra%40 but without success... I try add symbol \ with different combinations without success.

I read topic. I only found dirty hack here

echo "+B@e}F)q8tra@" | gio mount "smb://WORKGROUP;myuser@192.168.1.199/"

With this hack works.

Ho do without hack?

How to uninstall any pre-installed/system app from Ubuntu? https://askubuntu.com/questions/1510485/how-to-uninstall-any-pre-installed-system-app-from-ubuntu

I am new to linux/ubuntu and I intend to use it forever, so I am learning it bit by bit as I come accross a problem or a task. Your help will always be much appreciated, Thanks 😊.

I want to completely remove/uninstall some pre-installed apps from Ubuntu 22.04 that I don't need, to keep my system clean and customized, such as: libreoffice, thunderbird, rhythmbox, videos, and many more.

What are the steps to select and remove a specific system/preinstalled app from Ubuntu? Thank you 🙏.

How to fix Ubuntu 20.04 not starting error fsck file system https://askubuntu.com/questions/1464869/how-to-fix-ubuntu-20-04-not-starting-error-fsck-file-system

How to fix Ubuntu not starting error fsck file system?

/dev/sda3 contains a file system with errors, check forced.
/dev/sda3:
Unattached inode 4849869

/dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda3 requires a manual fsck

BusyBox v1.30.1 (Ubuntu 1:1.30.1-7ubuntu3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
Failed to connect to https://changelogs.ubuntu.com/meta-release-development https://askubuntu.com/questions/1412384/failed-to-connect-to-https-changelogs-ubuntu-com-meta-release-development

I carefully read the threads about this error. None of the proposed solutions (truncate /var/lib/ubuntu-release-upgrader/release-upgrade-available or changing from https to http in /etc/update-manager/meta-release) worked for me.

[xavier@imladris ~]$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Failed to connect to https://changelogs.ubuntu.com/meta-release-development. Check your Internet connection or proxy settings
Upgrades to the development release are only
available from the latest supported release.

My network is OK, I can even see the meta-release file in a browser.

Fun fact, it worked yesterday, but I had no time for the upgrade. Furthermore, it worked on n Ubuntu VM I have on a BHve host on the very same network

So it seems to be a transient error. Is there a way to fix it permanently ?

FYI, my motd :

Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-33-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

0 updates can be applied immediately.

Thanks, regards,

Xavier

EDIT : I've activated debug mode, an I get

[xavier@imladris ~]$ sudo do-release-upgrade -d -e DEBUG_UPDATE_MANAGER=1
Checking for a new Ubuntu release
MetaRelease.__init__() useDevel=True useProposed=False
/etc/update-manager/meta-release: http://changelogs.ubuntu.com/meta-release
/etc/update-manager/meta-release: http://changelogs.ubuntu.com/meta-release-lts
/etc/update-manager/meta-release: -development
/etc/update-manager/meta-release: -proposed
metarelease-uri: http://changelogs.ubuntu.com/meta-release-development
MetaRelease.download()
result of meta-release download: '<urlopen error [Errno -2] Name or service not known>'
Failed to connect to http://changelogs.ubuntu.com/meta-release-development. Check your Internet connection or proxy settings
NO self.metarelease_information
Upgrades to the development release are only
available from the latest supported release.
[xavier@imladris ~]$ sudo geany /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py
[xavier@imladris ~]$ sudo do-release-upgrade -d -e DEBUG_UPDATE_MANAGER=1
Checking for a new Ubuntu release
MetaRelease.__init__() useDevel=True useProposed=False
/etc/update-manager/meta-release: http://changelogs.ubuntu.com/meta-release
/etc/update-manager/meta-release: http://changelogs.ubuntu.com/meta-release-lts
/etc/update-manager/meta-release: -development
/etc/update-manager/meta-release: -proposed
metarelease-uri: http://changelogs.ubuntu.com/meta-release-development
MetaRelease.download()
result of meta-release download: '<urlopen error [Errno -2] Name or service not known>'
Failed to connect to http://changelogs.ubuntu.com/meta-release-development. Check your Internet connection or proxy settings
NO self.metarelease_information
Upgrades to the development release are only
available from the latest supported release.

A DNS problem ? I put changelogs.ubuntu.com in /etc/hosts file with no success

External USB disk I/O error after sleep/wake https://askubuntu.com/questions/1386130/external-usb-disk-i-o-error-after-sleep-wake

I have a 1TB Toshiba USB HDD connected to the USB 3.0 port in my laptop (Asus X550C). I am using Ubuntu 18.04 (kernel 4.15.0-166-generic).

I used to sleep/wake up the computer with the USB drive attached and everything resumed normally. However, since one Ubuntu update (I cannot tell which one) I get I/O errors from the USB disk after waking up:

user@asus:/media/user/HDD$ ls
ls: reading directory '.': Input/output error

All programs that have a file opened from the USB disk crash after resume because they cannot access the disk.

What I have observed by trial and error:

  • New programs can access the disk successfully. However, those programs that went through the sleep/wake up cycle never recover access, even though the disk is working again
  • There is one exception: if I leave a shell opened and pointing to a directory in the disk, I get I/O errors. However, if I type cd . errors go away and HDD works again (only cd ., any other command results in IO error)
  • If I attach the HDD to the USB 2.0 port, it wakes up successfully
  • If I attach a USB flash drive (not HDD), it wakes up successfully

It is like the current directory is somehow lost for programs that go through the sleep/wake up process. Programs opened after wake up work nicely. This only happens for an HDD connected to the USB 3.0 (like some kind of racing condition).

$ sudo fdisk -l
Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 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: 0x8cc1ecc7

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 440526847 440320000   210G  7 HPFS/NTFS/exFAT
/dev/sda3       440526848 937701375 497174528 237.1G 83 Linux


Disk /dev/sdc: 931.5 GiB, 1000204883968 bytes, 1953525164 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: 0x9b0f78c0

Device     Boot     Start        End   Sectors   Size Id Type
/dev/sdc1            2048  983042047 983040000 468.8G  7 HPFS/NTFS/exFAT
/dev/sdc2       983042048 1953525163 970483116 462.8G 83 Linux
$ lsusb 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b40a Chicony Electronics Co., Ltd 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 021: ID 0480:a00c Toshiba America Inc 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 007: ID 0835:8502 Action Star Enterprise Co., Ltd 
Bus 003 Device 006: ID 0835:8500 Action Star Enterprise Co., Ltd 
Bus 003 Device 005: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 003 Device 004: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse (M-BT58)
Bus 003 Device 003: ID 0835:8501 Action Star Enterprise Co., Ltd 
Bus 003 Device 002: ID 0835:8500 Action Star Enterprise Co., Ltd 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmes output with USB 3.0 (error reproduced):

[   80.707547] wlp2s0: deauthenticating from 54:a0:50:e4:82:30 by local choice (Reason: 3=DEAUTH_LEAVING)
[   83.020979] PM: suspend entry (deep)
[   83.020982] PM: Syncing filesystems ... done.
[   83.034082] Freezing user space processes ... (elapsed 0.002 seconds) done.
[   83.036245] OOM killer disabled.
[   83.036246] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   83.037516] Suspending console(s) (use no_console_suspend to debug)
[   83.056384] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[   83.056445] sd 0:0:0:0: [sda] Stopping disk
[   83.064227] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[   83.225059] ACPI: EC: interrupt blocked
[   83.244915] ACPI: Preparing to enter system sleep state S3
[   83.252323] ACPI: EC: event blocked
[   83.252325] ACPI: EC: EC stopped
[   83.252326] PM: Saving platform NVS memory
[   83.252516] Disabling non-boot CPUs ...
[   83.268409] IRQ 31: no longer affine to CPU1
[   83.269427] smpboot: CPU 1 is now offline
[   83.294105] smpboot: CPU 2 is now offline
[   83.316526] IRQ 23: no longer affine to CPU3
[   83.316533] IRQ 26: no longer affine to CPU3
[   83.316541] IRQ 29: no longer affine to CPU3
[   83.317557] smpboot: CPU 3 is now offline
[   83.319808] ACPI: Low-level resume complete
[   83.319884] ACPI: EC: EC started
[   83.319885] PM: Restoring platform NVS memory
[   83.321732] Enabling non-boot CPUs ...
[   83.321805] x86: Booting SMP configuration:
[   83.321806] smpboot: Booting Node 0 Processor 1 APIC 0x2
[   83.325400]  cache: parent cpu1 should not be sleeping
[   83.325731] CPU1 is up
[   83.325772] smpboot: Booting Node 0 Processor 2 APIC 0x1
[   83.328403]  cache: parent cpu2 should not be sleeping
[   83.329072] CPU2 is up
[   83.329111] smpboot: Booting Node 0 Processor 3 APIC 0x3
[   83.331670]  cache: parent cpu3 should not be sleeping
[   83.332147] CPU3 is up
[   83.336322] ACPI: Waking up from system sleep state S3
[   83.415767] ACPI: EC: interrupt unblocked
[   83.436652] ACPI: EC: event unblocked
[   83.436704] usb usb3: root hub lost power or was reset
[   83.436709] usb usb4: root hub lost power or was reset
[   83.437112] usb usb1: root hub lost power or was reset
[   83.437889] usb usb2: root hub lost power or was reset
[   83.441029] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[   83.441796] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[   83.444014] sd 0:0:0:0: [sda] Starting disk
[   83.552768] r8169 0000:03:00.2 enp3s0f2: link down
[   83.734197] usb 2-1: reset high-speed USB device number 2 using ehci-pci
[   83.734220] usb 1-1: reset high-speed USB device number 2 using ehci-pci
[   83.768919] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   83.768963] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[   83.770066] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[   83.770934] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.770939] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.771145] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.771152] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.772458] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[   83.772534] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.772539] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.772644] ata1.00: configured for UDMA/133
[   83.776606] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.776612] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.778387] ata3.00: configured for UDMA/133
[   84.205989] usb 1-1.3: reset high-speed USB device number 3 using ehci-pci
[   86.415072] OOM killer enabled.
[   86.415075] Restarting tasks ... 
[   86.415368] usb 4-1: USB disconnect, device number 2
[   86.422799] done.
[   86.425772] print_req_error: I/O error, dev sdb, sector 0
[   86.437800] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[   86.437843] sd 6:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[   86.493540] blk_partition_remap: fail for partition 2
[   86.493568] Buffer I/O error on dev sdb2, logical block 60325888, lost sync page write
[   86.493581] JBD2: Error -5 detected when updating journal superblock for sdb2-8.
[   86.493583] Aborting journal on device sdb2-8.
[   86.493587] blk_partition_remap: fail for partition 2
[   86.493588] Buffer I/O error on dev sdb2, logical block 60325888, lost sync page write
[   86.493590] JBD2: Error -5 detected when updating journal superblock for sdb2-8.
[   86.638576] PM: suspend exit
[   86.746072] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[   86.843335] r8169 0000:03:00.2 enp3s0f2: link down
[   86.843517] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[   86.846125] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   86.996625] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   87.053851] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   87.320988] usb 4-1: new SuperSpeed USB device number 3 using xhci_hcd
[   87.344753] usb 4-1: New USB device found, idVendor=0480, idProduct=a00c
[   87.344757] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   87.344759] usb 4-1: Product: External USB 3.0
[   87.344760] usb 4-1: Manufacturer: TOSHIBA
[   87.344762] usb 4-1: SerialNumber: 20140114057420
[   87.345967] usb-storage 4-1:1.0: USB Mass Storage device detected
[   87.347590] usb-storage 4-1:1.0: Quirks match for vid 0480 pid a00c: 800000
[   87.347626] scsi host6: usb-storage 4-1:1.0
[   88.175858] wlp2s0: authenticate with 54:a0:50:e4:82:30
[   88.185166] wlp2s0: send auth to 54:a0:50:e4:82:30 (try 1/3)
[   88.186656] wlp2s0: authenticated
[   88.188952] wlp2s0: associate with 54:a0:50:e4:82:30 (try 1/3)
[   88.192934] wlp2s0: RX AssocResp from 54:a0:50:e4:82:30 (capab=0x1411 status=0 aid=5)
[   88.193029] wlp2s0: associated
[   88.214555] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[   88.377019] scsi 6:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 5438 PQ: 0 ANSI: 6
[   88.381543] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   88.382630] sd 6:0:0:0: [sdb] 1953525164 512-byte logical blocks: (1.00 TB/932 GiB)
[   88.382979] sd 6:0:0:0: [sdb] Write Protect is off
[   88.382982] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[   88.383327] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   90.948674]  sdb: sdb1 sdb2
[   90.960736] sd 6:0:0:0: [sdb] Attached SCSI disk
[   92.224427] EXT4-fs (sdb2): recovery complete
[   92.284931] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)

dmes output with USB 2.0 (no errors):

[  101.037552] wlp2s0: deauthenticating from 54:a0:50:e4:82:30 by local choice (Reason: 3=DEAUTH_LEAVING)
[  103.385167] PM: suspend entry (deep)
[  103.385170] PM: Syncing filesystems ... done.
[  103.397551] Freezing user space processes ... (elapsed 0.002 seconds) done.
[  103.399954] OOM killer disabled.
[  103.399955] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  103.401220] Suspending console(s) (use no_console_suspend to debug)
[  103.433979] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[  103.433981] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  103.434395] sd 0:0:0:0: [sda] Stopping disk
[  103.603845] ACPI: EC: interrupt blocked
[  103.623791] ACPI: Preparing to enter system sleep state S3
[  103.755715] ACPI: EC: event blocked
[  103.755717] ACPI: EC: EC stopped
[  103.755718] PM: Saving platform NVS memory
[  103.755866] Disabling non-boot CPUs ...
[  103.771717] IRQ 31: no longer affine to CPU1
[  103.772734] smpboot: CPU 1 is now offline
[  103.797121] smpboot: CPU 2 is now offline
[  103.819706] IRQ 23: no longer affine to CPU3
[  103.819714] IRQ 26: no longer affine to CPU3
[  103.819719] IRQ 27: no longer affine to CPU3
[  103.820738] smpboot: CPU 3 is now offline
[  103.823007] ACPI: Low-level resume complete
[  103.823087] ACPI: EC: EC started
[  103.823089] PM: Restoring platform NVS memory
[  103.824934] Enabling non-boot CPUs ...
[  103.825037] x86: Booting SMP configuration:
[  103.825038] smpboot: Booting Node 0 Processor 1 APIC 0x2
[  103.828655]  cache: parent cpu1 should not be sleeping
[  103.828991] CPU1 is up
[  103.829030] smpboot: Booting Node 0 Processor 2 APIC 0x1
[  103.831690]  cache: parent cpu2 should not be sleeping
[  103.832340] CPU2 is up
[  103.832389] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  103.834918]  cache: parent cpu3 should not be sleeping
[  103.835416] CPU3 is up
[  103.839605] ACPI: Waking up from system sleep state S3
[  103.902963] ACPI: EC: interrupt unblocked
[  103.923403] ACPI: EC: event unblocked
[  103.923449] usb usb3: root hub lost power or was reset
[  103.923454] usb usb4: root hub lost power or was reset
[  103.925642] usb usb1: root hub lost power or was reset
[  103.927446] usb usb2: root hub lost power or was reset
[  103.929543] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[  103.931347] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[  103.935308] sd 0:0:0:0: [sda] Starting disk
[  104.035971] r8169 0000:03:00.2 enp3s0f2: link down
[  104.225463] usb 1-1: reset high-speed USB device number 2 using ehci-pci
[  104.225473] usb 2-1: reset high-speed USB device number 2 using ehci-pci
[  104.320371] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  104.320409] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  104.321734] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[  104.322970] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.322978] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.323150] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.323158] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.324340] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[  104.324379] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.324383] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.324562] ata1.00: configured for UDMA/133
[  104.328629] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.328647] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.330415] ata3.00: configured for UDMA/133
[  104.341631] usb 3-2: reset high-speed USB device number 2 using xhci_hcd
[  104.697412] usb 1-1.3: reset high-speed USB device number 3 using ehci-pci
[  104.837895] OOM killer enabled.
[  104.837899] Restarting tasks ... done.
[  105.098906] PM: suspend exit
[  105.182497] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[  105.283583] r8169 0000:03:00.2 enp3s0f2: link down
[  105.283671] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[  105.285124] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[  105.433822] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[  105.482910] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[  106.622874] wlp2s0: authenticate with 54:a0:50:e4:82:30
[  106.627239] wlp2s0: send auth to 54:a0:50:e4:82:30 (try 1/3)
[  106.630373] wlp2s0: authenticated
[  106.633249] wlp2s0: associate with 54:a0:50:e4:82:30 (try 1/3)
[  106.649449] wlp2s0: RX AssocResp from 54:a0:50:e4:82:30 (capab=0x1411 status=0 aid=5)
[  106.649543] wlp2s0: associated
[  106.671964] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready

As you can see, the only difference between the two logs is that in the USB 3.0 the HDD gets disconnected from the USB bus:

...
[   86.415368] usb 4-1: USB disconnect, device number 2
...

So when the OS tries to access files from the HDD, the HDD is not ready and the error happens.

Any idea what might be causing this disconnection only under USB 3.0?

Thank you very much in advance.

Unable to ssh to the server using SSSD credentials https://askubuntu.com/questions/1368902/unable-to-ssh-to-the-server-using-sssd-credentials

We are building a new Ubuntu server. Where the server is not accepting SSH connection with SSSD user credentials.

Below is the error we see on the server with the status of the SSSD

sssd.service - System Security Services Daemon
     Loaded: loaded (/lib/systemd/system/sssd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2021-10-12 16:01:27 EDT; 1min 12s ago
   Main PID: 3056 (sssd)
      Tasks: 6 (limit: 4617)
     Memory: 50.9M
     CGroup: /system.slice/sssd.service
             ├─3056 /usr/sbin/sssd -i --logger=files
             ├─3077 /usr/libexec/sssd/sssd_be --domain FORDDIRECT.LOCAL --uid 0 --gid 0 --logger=files
             ├─3078 /usr/libexec/sssd/sssd_nss --uid 0 --gid 0 --logger=files
             ├─3079 /usr/libexec/sssd/sssd_pam --uid 0 --gid 0 --logger=files
             ├─3080 /usr/libexec/sssd/sssd_ssh --uid 0 --gid 0 --logger=files
             └─3081 /usr/libexec/sssd/sssd_autofs --uid 0 --gid 0 --logger=files

Oct 12 16:01:26 XXXXXXXXXXXXXXXXXXXXXXXX systemd[1]: Starting System Security Services Daemon...
Oct 12 16:01:26 XXXXXXXXXXXXXXXXXXXXXXXX sssd[3056]: Starting up
Oct 12 16:01:27 XXXXXXXXXXXXXXXXXXXXXXXX sssd_be[3077]: Starting up
Oct 12 16:01:27 XXXXXXXXXXXXXXXXXXXXXXXX sssd_pam[3079]: Starting up
Oct 12 16:01:27 XXXXXXXXXXXXXXXXXXXXXXXX sssd_autofs[3081]: Starting up
Oct 12 16:01:27 XXXXXXXXXXXXXXXXXXXXXXXX sssd_ssh[3080]: Starting up
Oct 12 16:01:27 XXXXXXXXXXXXXXXXXXXXXXXX sssd_nss[3078]: Starting up
Oct 12 16:01:27 XXXXXXXXXXXXXXXXXXXXXXXX systemd[1]: Started System Security Services Daemon.
Oct 12 16:02:34 XXXXXXXXXXXXXXXXXXXXXXXX sssd_be[3077]: Could not autodiscover AD site value using DNS and ad_site op>
Extremely slow wifi on ubuntu 20.04 https://askubuntu.com/questions/1251341/extremely-slow-wifi-on-ubuntu-20-04

I installed Ubuntu 20.04 yesterday (dual boot with windows 10), and ever since i've been experiencing issues where the wifi is extremely slow. I have an intel wireless AC 9560 adapter. The speed on my windows partition is normal. I have already tried a lot of solutions. sudo modprobe -r iwlwifi && sudo modprobe iwlwifi 11n_disable=1 seems to work but it maxes my speed at 20 MBps, while on windows I can get up to 200. I have no idea what to do, so help would be very much appreciated.

Result when running sudo iwlist scan of my wifi, (there are both 2 Ghz and 5 GHz entry in my terminal).

Cell 21 - Address: XX:XX:XX:XX:XX:XX
                    Channel:108
                    Frequency:5.54 GHz (Channel 108)
                    Quality=49/70  Signal level=-61 dBm  
                    Encryption key:on
                    ESSID:"H369A6B655A"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000002824f11e46d
                    Extra: Last beacon: 56ms ago
                    IE: Unknown: 000B4833363941364236353541
                    IE: Unknown: 01088C129824B048606C
                    IE: Unknown: 07304E4C202401172801172C01173001173401173801173C011740011764011E68011E6C011E70011E84011E88011E8C011E
                    IE: Unknown: 200100
                    IE: Unknown: 23021100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 2D1AEF0917FFFFFF0000000000000000000000000000000000000000
                    IE: Unknown: 3D166C0D1600000000000000000000000000000000000000
                    IE: Unknown: 7F080400000000000040
                    IE: Unknown: BF0CB259820FEAFF0000EAFF0000
                    IE: Unknown: C005016A000000
                    IE: Unknown: C30402020202
                    IE: Unknown: DDA60050F204104A0001101044000102103B00010310470010E44E7AA738D2613B7D9690C1EA15A8E51021001B4B504E20576972656C6573732052616E676520457874656E6465721023001B4B504E20576972656C6573732052616E676520457874656E6465721024000631323334353610420004323034301054000800060050F20400011011000A4B504E5F5752455F4150100800020680103C0001031049000600372A000120
                    IE: Unknown: DD090010180202001C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 46057208010000

and

          Cell 13 - Address: XX:XX:XX:XX:XX:XX
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=58/70  Signal level=-52 dBm  
                    Encryption key:on
                    ESSID:"H369A6B655A"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000011a1dae8653
                    Extra: Last beacon: 1228ms ago
                    IE: Unknown: 000B4833363941364236353541
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 32040C121860
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 46053208010000
                    IE: Unknown: 2D1ABD081BFFFFFF0000000000000000000000000000000000000000
                    IE: Unknown: 3D160B080400000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F080500080000000040
                    IE: Unknown: DD750050F204104A0001101044000102103B0001031047001000000000000000000000000000000000102100035A5445102300035A54451024000631323334353610420004313233341054000800060050F2040001101100095A5445204833363941100800020000103C0001031049000600372A000120
                    IE: Unknown: DD090010180200001C0000
                    IE: Unknown: DD180 050F2020101000003A4000027A4000042435E0062322F00

dmesg | grep iwl: https://paste.ubuntu.com/p/cT38pZpnBV/ sudo dkms status: https://paste.ubuntu.com/p/NRpkgB96kw/

Ubuntu 18 touchpad not working properly https://askubuntu.com/questions/1097055/ubuntu-18-touchpad-not-working-properly

My touchpad is not working properly on Ubuntu 18. I can left-click on buttons etc, but the cursor won't move.

This is the result of my xinput:

⎡ Virtual core pointer                  id=2     [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer        id=4     [slave  pointer  (2)]
⎜   ↳ SYNA7DB5:00 06CB:7DB7 Touchpad    id=12    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver             id=15    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver             id=17    [slave  pointer  (2)]
⎣ Virtual core keyboard                 id=3     [master keyboard (2)]
    ↳ Virtual core XTEST keyboard       id=5     [slave  keyboard (3)]
    ↳ Power Button                      id=6     [slave  keyboard (3)]
    ↳ Video Bus                         id=7     [slave  keyboard (3)]
    ↳ Video Bus                         id=8     [slave  keyboard (3)]
    ↳ Power Button                      id=9     [slave  keyboard (3)]
    ↳ Sleep Button                      id=10    [slave  keyboard (3)]
    ↳ HD WebCam: HD WebCam              id=11    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard      id=13    [slave  keyboard (3)]
    ↳ Acer WMI hotkeys                  id=14    [slave  keyboard (3)]
    ↳ Logitech USB Receiver             id=16    [slave  keyboard (3)]
Ubuntu Terminal Freezes Commands Cannot Execute Until a Reboot https://askubuntu.com/questions/1028442/ubuntu-terminal-freezes-commands-cannot-execute-until-a-reboot

Running Any command for instance sudo service network-manager restart seems just stays idle when i press enter key. I have to reboot to restore the machine. What must i do to stop my terminal from freezing.

How to record stereo sound from Line-In in command line? https://askubuntu.com/questions/997643/how-to-record-stereo-sound-from-line-in-in-command-line

I have plugged my phones into rear Line-In socket of my computer. I want to use it as stereo microphone, I tried this on desktop and it worked.

Now, how can I record sound from it with command line?

For example, if I use ffmpeg, I have no means to configure input socket. If I run

ffmpeg -f alsa -i sysdefault:CARD=MID -t 30 out.wav

but records absolutely silent file.

Alsamixer screen is following:

enter image description here

Areord shows following:

$ arecord -L
default
    Playback/recording through the PulseAudio sound server
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=MID
    HDA Intel MID, VT1708S Analog
    Default Audio Device
front:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    Front speakers
surround40:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    Direct sample mixing device
dsnoop:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    Direct sample snooping device
hw:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    Direct hardware device without any conversions
plughw:CARD=MID,DEV=0
    HDA Intel MID, VT1708S Analog
    Hardware device with all software conversions

UPDATE

After I have configured input in gnome-control-center it started to work.

enter image description here

But I don't want to use GUI tools, I need command-line-only solution.

authentication error ubuntu software center 16.04 LTS https://askubuntu.com/questions/893469/authentication-error-ubuntu-software-center-16-04-lts

Unable to install or uninstall apps in the Ubuntu software center. I get an authentication error, and then a popup says I cannot do this operation since I don't have permission. (Yet i'm administrator.) I do not know what to do. If anyone could please tell me, how can I fix this? (Please explain, i'm still a bit new to Ubuntu. Only starting to figure out new things at a slow pace) Running: Ubuntu 16.04 LTS Toshiba Chromebook 2 Dual-boot (Crouton)

How do I let Ubuntu find the install path for tcl? https://askubuntu.com/questions/844836/how-do-i-let-ubuntu-find-the-install-path-for-tcl

I am running Ubuntu 16.04. I am trying to install the R package tcltk. When I run install.packages('tcltk'), I get the following error:

Installing package into ‘/home/esander/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
  call: fun(libname, pkgname)
  error: Can't find a usable init.tcl in the following directories: 
    /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 ./lib/tcl8.5 ./lib/tcl8.5 ./library ./library ./tcl8.5.18/library ./tcl8.5.18/library

My first thought was to uninstall and reinstall tcl. I did so, and now if I run sudo apt-get install tcl, it says that it is at the newest version (8.6.0+9). Ok, so it seems that R is looking for tcl in strange places (and is looking for tcl 8.5), so I want to find the path and somehow link R to it. But when I run whereis tcl, I get:

tcl:

Apparently Ubuntu can't find the install path. I tried to find it the brute-force way, running find / -name tcl 2> /dev/null, and I got:

/usr/share/ruby-rouge/demos/tcl
/usr/share/doc/tcl
/home/esander/anaconda3/lib/python3.5/site-packages/notebook/static/components/codemirror/mode/tcl
/home/esander/anaconda3/pkgs/notebook-4.2.1-py35_0/lib/python3.5/site-packages/notebook/static/components/codemirror/mode/tcl
/home/esander/.conda/envs/my_root/lib/python3.5/site-packages/notebook/static/components/codemirror/mode/tcl

These locations either seem like documentation, or things specific to ipython notebooks. I don't fully understand this, but clearly there are linking/installation problems of some kind. How do I find tcl or install it so that a normal install path appears?

One single command to update everything in Ubuntu? https://askubuntu.com/questions/733434/one-single-command-to-update-everything-in-ubuntu

I know that there are three command to update and then upgrade the whole system, these are:

Is there a super-upgrade command that combines all these commands to one?

20-nvidia.conf in xorg.conf.d doesnt exist https://askubuntu.com/questions/710390/20-nvidia-conf-in-xorg-conf-d-doesnt-exist

I'm new to GNU/Linux, running xubuntu 15.10 with a GTX 570 graphics card, and am trying to prevent screen tearing in scrolling web pages, videos, and steam games. I get no screen tearing with the PPA version of the nvidia 355.11 drivers, but it requires me to enter the following in the terminal after every boot and during a steam game.

 nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

It seems in order to make the change permanent, I need to add a line to the xorg.conf file (which seems to be deprecated) or the 20-nvidia.conf file in /usr/share/X11/xorg.conf.d/ but neither files exist. In my /usr/share/X11/xorg.conf.d/ directory there are only the following files:

10-evdev.conf         11-evdev-trackpoint.conf  50-wacom.conf
10-quirks.conf        50-synaptics.conf         51-synaptics-quirks.conf
11-evdev-quirks.conf  50-vmmouse.conf           glamoregl.conf

and none of them have a screen section, or serverlayout section. I've tried several workarounds but they either don't fix the tearing or cause lightdm to not start at all. I've made a xorg.conf file with sudo X :1 -configure and placed it in the /etc/X11/ directory then added in the following:

Section "Screen"
Option  "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
EndSection

and tried a shell script in /etc/profile.d/ to run the first terminal command I mentioned earlier. It either doesn't stop the tearing and I have to change the nvidia setting in the terminal to fix it like usual, or lightdm just doesn't display anything and I have to recover through grub loader. If I save the configuration settings in nvidia x server settings it creates a file .nvidia-settings-rc but nowhere in the file can I see it mentioning the current metamode.

Some of this information used to get me where I am seems outdated, but I can't find 20-nvidia.conf or some kind of equivalent on my drive.

Giovanni Toraldo's answer will fix my screen tearing but the permanent solution isn't applicable.

xrandr says that my recently created mode is an unrecognized option when trying to add it to my moniter https://askubuntu.com/questions/707630/xrandr-says-that-my-recently-created-mode-is-an-unrecognized-option-when-trying

my moniter is actually a small tv and does in fact support 1080p although currently uibuntu says that the highest i can go up to is 1360x768. created a mode named 1080p that i can see when using command "xrandr" that does in fact have the correct resolution although im not sure if im just doing some thing stupid cuz this is my first real install not on a vm.

what ive done so far:

1: cvt 1920 1080 60
2: xrandr --newmode "1080p" (I copied the modeline) produced by cvt i can now see my mode when i use xrandr
3: xrandr --addmode Screen 0 1080p OUTPUT: xrandr: unrecognized option '1080p'

How to limit user folder access using VSFTP? https://askubuntu.com/questions/684514/how-to-limit-user-folder-access-using-vsftp

I'm trying to use VSFTPD with the following configuration, using a VM with Ubuntu 14.04. I'm able to login into my virtual sftp server normally but my client user is able to navigate between the folders, where it shouldn't. Does anyone know why this happens ?

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default)
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGH
Move files preserving symbolic links https://askubuntu.com/questions/663990/move-files-preserving-symbolic-links

I have some files on an external hard drive, to which I keep soft symlinks in my home folder (many links, not just one). I need to move some of the original files to another hard drive, and I want to have the symlinks pointing to their new location.

Is there a way to achieve this, other than re-creating the links after moving the files?

Unity doesn't load, no Launcher, no Dash appears in Ubuntu 14.04 https://askubuntu.com/questions/573312/unity-doesnt-load-no-launcher-no-dash-appears-in-ubuntu-14-04

I shut down Ubuntu 14.04 in my laptop, forgetting I was installing software, and now I can't get to Unity desktop environment after logging in. I just see my background wallpaper.

Logging in as a guest works, so I suspect the session in my account is corrupted.

Set wifi txpower from /etc/network/interfaces https://askubuntu.com/questions/380623/set-wifi-txpower-from-etc-network-interfaces

I am trying to configure my wifi to reliably connect at start-up on a headless device.

I currently have done this with a simple entry in /etc/network/interfaces, along the lines of

auto wlan0
iface wlan0 inet static
    wpa-ssid <my ssid>
    wpa-psk <my psk>
    address <address>
    netmaks <netmask>
    gateway <gateway>

Now I also need to set txpower (which also requires me to set the region (reg) as I understand it).

I can do this from the command line with iw reg set ... and iwconfig wlan0 txpower .... However, what I need is for these values to be reliably set on startup.

I have looked in what I believe is the documentation for configuring wifi in /etc/interfaces, which is /usr/share/doc/wpasupplicant/README.modes.gz, but this does not seem to have any information on setting transmit power.

How can I achieve this?

Multiple wireless adapters, which one is being used? https://askubuntu.com/questions/325560/multiple-wireless-adapters-which-one-is-being-used

I'm using Ubuntu 13.04 on a Dell E6410.

  1. Dell E6410 comes with a default WiFi adapter: Intel Centrino Advanced-N 6200.

  2. I additionally plugged in a Realtek rtl8192cu adapter

I can clearly see which adapter is being used from the top-right side of Ubuntu 13.04 ---- the network configuration icon, however I'm wondering, is there a way to show in the bash by using command line that:

  1. How many WiFi adapters on my system for now? ifconfig only shows there are 2 WiFi adapters, and I can see wlan1 is being used, but which adapter corresponds to wlan1 and which adapter corresponds to wlan0?

  2. I can clearly see the MAC addresses of two WiFi adapters, but lsusb only shows the connected USB devices without showing their MAC address, and the default WiFi adapter coming with the laptop is not a USB device. lshw takes me such a long time to show clearly the MAC address for the Centrino Advanced-N 6200 and the MAC address for Realtek rtl8192cu.

Is there a simple but direct way to compare both WiFi devices?

Unable to Boot: error couldn't read file https://askubuntu.com/questions/207565/unable-to-boot-error-couldnt-read-file

I have installed Ubuntu 12.04 LTS on an IBM Thinkpad T41.

Up until Linux 3.2.0-30 generic everything was working fine. I accept all the software update.

With 3.2.0-31 generic the machine freezes and I get the error:

error couldn't read file
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

With 3.2.0-32, the

error: Cannot read the Linux header

then the machine returns to the Grub menu

3.2.0-30 still works fine if I select that.