What are my options? Dual Boot system https://askubuntu.com/questions/1564707/what-are-my-options-dual-boot-system

Trying to upgrade (from rel 18) to current release of Ubuntu - I didn't do an Umount before booting - Now I'm getting error: file '/boot/grub/i386-pc/normal.mod' not found Entering rescue mode... grub rescue>

Ubuntu disappeared from Boot Manager https://askubuntu.com/questions/1564705/ubuntu-disappeared-from-boot-manager

For context, I have had Ubuntu 22 dual-booted with Windows for a while (partitioned on the same drive), and then Windows gave me the screen where I needed to enter a Bitlocker recovery key, so I've been working in Ubuntu instead. However, the other day, I decided to try changing some BIOS settings to see if I could undo what led to Bitlocker activating, but instead I ended up accidentally removing Ubuntu from the Boot Manager. I want to regain my ability to access Ubuntu without losing any of my files if at all possible. Here's my PasteBin from the Boot Repair tool: https://paste.ubuntu.com/p/4J8ZxStGy8/. Additionally, if it is helpful, here is the information I get when I enter "sudo fdisk -l" into the Terminal (I am using Try Ubuntu from a USB): https://pastebin.com/vdFHeMc1. Please help me figure out how to proceed.

Havuing this isseu when installing virtualbox [duplicate] https://askubuntu.com/questions/1564703/havuing-this-isseu-when-installing-virtualbox

virtualbox-dkms

virtualbox

virtualbox-qt

E: Sub-process /usr/bin/dpkg returned an error code (1)

Extraneous data in command line prompt via SSH https://askubuntu.com/questions/1564702/extraneous-data-in-command-line-prompt-via-ssh

I recently installed Ubuntu 24.04LTS on my iMac and today I noticed that there are extraneous characters in the command line prompt when I log in via ssh from my laptop: 35uuuuu@hhhhh:~$ (user and hostnames are here obfuscated for security. the '35' are not there when I use Terminal. It's not quite a showstopper, but I'd like to fix that if possible, Here's my PS1:

$ echo $PS1
${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
daryl@tigger:~$ ```
Evolution Microsoft 365 calendar error: 'Could not find a property named contentBytes on type microsoft.graph.attachment' on Ubuntu 24.04 https://askubuntu.com/questions/1564699/evolution-microsoft-365-calendar-error-could-not-find-a-property-named-content

Environment:

- Ubuntu 24.04.3 LTS (GNOME, Wayland)

- evolution-data-server 3.52.3-0ubuntu1.2

- evolution-ews 3.52.0-1build1

- gnome-online-accounts 3.50.4-0ubuntu2

Setup:
I added my corporate Microsoft 365 / Exchange account in Evolution using Edit → Accounts → Add, selecting "Microsoft 365" as the server type. Email works fine, but the calendar fails to sync with the error:

The calendar backend servicing "Calendar" encountered an error.
The reported error was "BadRequest: Parsing OData Select and Expand failed: Could not find a property named 'contentBytes' on type 'microsoft.graph.attachment'."

How can I fix this and get my Exchange/Microsoft 365 calendar working in Evolution?

Spectacle screenshot tool is not working in Ubuntu Cinnamon (module "QtQuick.Shapes" is not installed). How to fix it? https://askubuntu.com/questions/1564697/spectacle-screenshot-tool-is-not-working-in-ubuntu-cinnamon-module-qtquick-sha

I installed KDE's spectacle tool for capturing screenshots in Ubuntu Cinnamon (24.04) as the default screenshot tool does not have all the features I need.

sudo apt install kde-spectacle

However, when I try try to capture a screenshot, the app crashes.

Here is the error message in terminal:

$ spectacle 
kf.kirigami: Failed to find a Kirigami platform plugin 
qrc:/src/Gui/ScreenshotView.qml:167:9: Type AnnotationEditor unavailable 
qrc:/src/Gui/Annotations/AnnotationEditor.qml:31:9: Type HoverOutline unavailable 
qrc:/src/Gui/Annotations/HoverOutline.qml:25:22: Type SelectionBackground unavailable 
qrc:/src/Gui/Annotations/SelectionBackground.qml:6:1: module "QtQuick.Shapes" is not installed 
qrc:/src/Gui/ImageCaptureOverlay.qml:36:5: Type AnnotationEditor unavailable AnnotationEditor { ^ 

qrc:/src/Gui/Annotations/AnnotationEditor.qml:31:9: Type HoverOutline unavailable HoverOutline { ^ 

qrc:/src/Gui/Annotations/HoverOutline.qml:25:22: Type SelectionBackground unavailable sourceComponent: SelectionBackground { ^ 

qrc:/src/Gui/Annotations/SelectionBackground.qml:6:1: module "QtQuick.Shapes" is not installed import QtQuick.Shapes 1.15 ^

How to fix it?

Timeshift restore to new drive not working - /home and /boot folders empty https://askubuntu.com/questions/1564696/timeshift-restore-to-new-drive-not-working-home-and-boot-folders-empty

As per advice provided here, on YouTube and elsewhere, I used Timeshift for backups to my system files and sometimes for backing up data files, though I sometimes use another program for the data alone.

Lately my main SSD drive had the initramfs startup error.

Following the advice of others online with this issue, I did a file system check for the afflicted drive, following the prompts offered for fixing or ignoring and then rebooted.

Unfortunately, the reboot got stuck halfway through.

So I tried a system restore to the affected drive. Unfortunately I chose the leave /boot on root drive option so it didn't boot on restarting.

Subsequent efforts at restoring have failed and at this stage the Live USB Ubuntu 24.04.4 that I am using to admin things simply no longer "sees" the main SSD drive.

I have tried to restore to a new HDD drive (2 TB) but all I see at the end of this process is two empty folders in the partition that was to hold the restored system and data files. One is called home, the other is called boot.

Q1. Is Timeshift even intended for the eventuality of a main drive failing and restoring to be done onto a new drive ?

Q2. If yes to Q1. then why isn't it even trying to copy the system and boot files onto the new drive ?

In setting the restore, I set every part of the restore to sdb1 - the partition of the new HDD that is dedicated to my system and data.

How to change the UUID of an EFI partition https://askubuntu.com/questions/1564692/how-to-change-the-uuid-of-an-efi-partition

I cloned a bootable volume which has resulted in the EFI partitions having the same UUID. This is causing confusion in FSTAB so I want to change one of them. The recommended way is to use tune2fs but this doesn't support vfat. How do I do it?

EDIT

This shows the UUID I want to change:

chris@Home:~$ blkid
...
/dev/nvme0n1p2: UUID="9AB6-F33F" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI boot partition" PARTUUID="4145ac94-fa18-4c5e-816f-2d54fc0db201"
...
Cannot run, install, update, or uninstall python3 from ubuntu 24.04 https://askubuntu.com/questions/1564673/cannot-run-install-update-or-uninstall-python3-from-ubuntu-24-04

I'm currently trying to install python3 onto ubuntu24.04.3. I only realized that python came preinstalled with ubuntu after attempting sudo apt install python3.

I have now seemed to have permanently borked python and apt on my system. When I try to run any python operation, the system cannot find the python3command. When I try to run sudo apt install python3, I get the following output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : Depends: libpython3-stdlib (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I tried to run sudo apt install libpython3-stdliband got the following output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : PreDepends: python3-minimal (= 3.12.3-0ubuntu2) but 3.12.3-0ubuntu2.1 is to be installed
           Depends: libpython3-stdlib (= 3.12.3-0ubuntu2) but 3.12.3-0ubuntu2.1 is to be installed
 python3-dev : Depends: python3 (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
 python3-venv : Depends: python3 (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I thought that there might have been an issue with my apt repos, so I ran a sudo apt update. It resulted in this error:

Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Fetched 6,581 B in 1s (11.3 kB/s)
sh: 1: /usr/lib/cnf-update-db: Permission denied
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code

Getting pretty frustrated at this point, I decided I'd try to run --fix-broken as it suggested.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libllvm19
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libpython3-stdlib python3
Suggested packages:
  python3-doc python3-tk
The following packages will be upgraded:
  libpython3-stdlib python3
2 upgraded, 0 newly installed, 0 to remove and 347 not upgraded.
3 not fully installed or removed.
Need to get 0 B/33.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python3-minimal (3.12.3-0ubuntu2.1) ...
/var/lib/dpkg/info/python3-minimal.postinst: 5: py3compile: Permission denied
dpkg: error processing package python3-minimal (--configure):
 installed python3-minimal package post-installation script subprocess returned error exit status 126
Errors were encountered while processing:
 python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm completely stuck at this point. And I'd much rather avoid doing a completely fresh ubuntu install. Does anyone know of a fix for this?

Thanks in advance!

Edit:

Here is my list of installed python packages:

libpython3-dev/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,automatic]
libpython3-stdlib/now 3.12.3-0ubuntu2 amd64 [installed,upgradable to: 3.12.3-0ubuntu2.1]
libpython3.12-dev/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12-minimal/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12-stdlib/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
libpython3.12t64/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python-apt-common/now 2.7.7ubuntu5 all [installed,upgradable to: 2.7.7ubuntu5.2]
python-babel-localedata/noble,now 2.10.3-3build1 all [installed,automatic]
python3-apport/noble-updates,noble-security,now 2.28.1-0ubuntu3.8 all [installed,automatic]
python3-apt/now 2.7.7ubuntu5 amd64 [installed,upgradable to: 2.7.7ubuntu5.2]
python3-aptdaemon.gtk3widgets/noble,now 1.1.1+bzr982-0ubuntu44 all [installed,automatic]
python3-aptdaemon/noble,now 1.1.1+bzr982-0ubuntu44 all [installed,automatic]
python3-attr/noble,now 23.2.0-2 all [installed,automatic]
python3-babel/noble,now 2.10.3-3build1 all [installed,automatic]
python3-blinker/noble,now 1.7.0-1 all [installed,automatic]
python3-bpfcc/noble,now 0.29.1+ds-1ubuntu7 all [installed,automatic]
python3-brlapi/noble,now 6.6-4ubuntu5 amd64 [installed,automatic]
python3-cairo/noble,now 1.25.1-2build2 amd64 [installed,automatic]
python3-certifi/noble,now 2023.11.17-1 all [installed,automatic]
python3-cffi-backend/noble,now 1.16.0-2build1 amd64 [installed,automatic]
python3-chardet/noble,now 5.2.0+dfsg-1 all [installed,automatic]
python3-click/noble,now 8.1.6-2 all [installed,automatic]
python3-colorama/noble,now 0.4.6-4 all [installed,automatic]
python3-commandnotfound/noble,now 23.04.0 all [installed,automatic]
python3-configobj/noble,now 5.0.8-3 all [installed,automatic]
python3-cryptography/noble-updates,noble-security,now 41.0.7-4ubuntu0.1 amd64 [installed,automatic]
python3-cups/noble,now 2.0.1-5build6 amd64 [installed,automatic]
python3-cupshelpers/noble,now 1.5.18-1ubuntu9 all [installed,automatic]
python3-dateutil/noble,now 2.8.2-3ubuntu1 all [installed,automatic]
python3-dbus/noble,now 1.3.2-5build3 amd64 [installed,automatic]
python3-debconf/noble,now 1.5.86ubuntu1 all [installed,automatic]
python3-debian/noble,now 0.1.49ubuntu2 all [installed,automatic]
python3-defer/noble,now 1.0.6-2.1ubuntu1 all [installed,automatic]
python3-dev/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,automatic]
python3-distro-info/noble,now 1.7build1 all [installed,automatic]
python3-distro/noble,now 1.9.0-1 all [installed,automatic]
python3-distupgrade/now 1:24.04.27 all [installed,upgradable to: 1:24.04.28]
python3-dnspython/noble,now 2.6.1-1ubuntu1 all [installed,automatic]
python3-gdbm/noble,now 3.12.3-0ubuntu1 amd64 [installed,automatic]
python3-gi/noble,now 3.48.2-1 amd64 [installed,automatic]
python3-gpg/noble,now 1.18.0-4.1ubuntu4 amd64 [installed,automatic]
python3-httplib2/noble,now 0.20.4-3 all [installed,automatic]
python3-ibus-1.0/noble,now 1.5.29-2 all [installed,automatic]
python3-idna/noble-updates,noble-security,now 3.6-2ubuntu0.1 all [installed,automatic]
python3-jinja2/noble-updates,noble-security,now 3.1.2-1ubuntu1.3 all [installed,automatic]
python3-json-pointer/noble,now 2.0-0ubuntu1 all [installed,automatic]
python3-jsonpatch/noble,now 1.32-3 all [installed,automatic]
python3-jsonschema/noble,now 4.10.3-2ubuntu1 all [installed,automatic]
python3-jwt/noble,now 2.7.0-1 all [installed,automatic]
python3-launchpadlib/noble,now 1.11.0-6 all [installed,automatic]
python3-lazr.restfulclient/noble,now 0.14.6-1 all [installed,automatic]
python3-lazr.uri/noble,now 1.0.6-3 all [installed,automatic]
python3-ldb/now 2:2.8.0+samba4.19.5+dfsg-4ubuntu9.3 amd64 [installed,upgradable to: 2:2.8.0+samba4.19.5+dfsg-4ubuntu9.4]
python3-louis/noble,now 3.29.0-1build1 all [installed,automatic]
python3-markdown-it/noble,now 3.0.0-2 all [installed,automatic]
python3-markdown/noble,now 3.5.2-1 all [installed,automatic]
python3-markupsafe/noble,now 2.1.5-1build2 amd64 [installed,automatic]
python3-mdurl/noble,now 0.1.2-1 all [installed,automatic]
python3-minimal/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed,auto-removable]
python3-netaddr/noble,now 0.8.0-2ubuntu1 all [installed,automatic]
python3-netifaces/noble,now 0.11.0-2build3 amd64 [installed]
python3-netplan/now 1.1.2-2~ubuntu24.04.2 amd64 [installed,upgradable to: 1.1.2-8ubuntu1~24.04.1]
python3-oauthlib/noble,now 3.2.2-1 all [installed,automatic]
python3-olefile/noble,now 0.46-3 all [installed,automatic]
python3-pexpect/noble,now 4.9-2 all [installed,automatic]
python3-pil/noble-updates,noble-security,now 10.2.0-1ubuntu1 amd64 [installed,automatic]
python3-pip-whl/noble-updates,noble-security,now 24.0+dfsg-1ubuntu1.3 all [installed,automatic]
python3-pip/noble-updates,noble-security,now 24.0+dfsg-1ubuntu1.3 all [installed]
python3-pkg-resources/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-problem-report/noble-updates,noble-security,now 2.28.1-0ubuntu3.8 all [installed,automatic]
python3-ptyprocess/noble,now 0.7.0-5 all [installed,automatic]
python3-pygments/noble,now 2.17.2+dfsg-1 all [installed,automatic]
python3-pyparsing/noble,now 3.1.1-1 all [installed,automatic]
python3-pyrsistent/noble,now 0.20.0-1build2 amd64 [installed,automatic]
python3-requests/noble-updates,noble-security,now 2.31.0+dfsg-1ubuntu1.1 all [installed,automatic]
python3-rich/noble,now 13.7.1-1 all [installed,automatic]
python3-samba/now 2:4.19.5+dfsg-4ubuntu9.3 amd64 [installed,upgradable to: 2:4.19.5+dfsg-4ubuntu9.4]
python3-serial/noble,now 3.5-2 all [installed,automatic]
python3-setuptools-whl/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-setuptools/noble-updates,noble-security,now 68.1.2-2ubuntu1.2 all [installed,automatic]
python3-six/noble,now 1.16.0-4 all [installed,automatic]
python3-software-properties/now 0.99.49.3 all [installed,upgradable to: 0.99.49.4]
python3-speechd/noble,now 0.12.0~rc2-2build3 all [installed,automatic]
python3-sss/noble-updates,now 2.9.4-1.1ubuntu6.3 amd64 [installed,automatic]
python3-systemd/noble,now 235-1build4 amd64 [installed,automatic]
python3-talloc/noble,now 2.4.2-1build2 amd64 [installed,automatic]
python3-tdb/noble,now 1.4.10-1build1 amd64 [installed,automatic]
python3-typing-extensions/noble,now 4.10.0-1 all [installed,automatic]
python3-tz/noble,now 2024.1-2 all [installed,automatic]
python3-update-manager/noble-updates,now 1:24.04.12 all [installed,automatic]
python3-urllib3/now 2.0.7-1ubuntu0.2 all [installed,upgradable to: 2.0.7-1ubuntu0.6]
python3-venv/noble-updates,noble-security,now 3.12.3-0ubuntu2.1 amd64 [installed]
python3-wadllib/noble,now 1.3.6-5 all [installed,automatic]
python3-wheel/noble,now 0.42.0-2 all [installed,automatic]
python3-xdg/noble,now 0.28-2 all [installed,automatic]
python3-xkit/noble,now 0.5.0ubuntu6 all [installed,automatic]
python3-yaml/noble,now 6.0.1-2build2 amd64 [installed,automatic]
python3.12-dev/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12-minimal/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12-venv/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3.12/now 3.12.3-1ubuntu0.8 amd64 [installed,upgradable to: 3.12.3-1ubuntu0.11]
python3/now 3.12.3-0ubuntu2 amd64 [installed,upgradable to: 3.12.3-0ubuntu2.1]

Edit 2:

I was referred to this post and tried running sudo apt install --reinstall python3 python python3-minimal --fix-broken. After which I got this error:

Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  2to3 python-is-python3

So I tried running the same command without python sudo apt install --reinstall python3 python3-minimal --fix-broken and got the following error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3 : Depends: libpython3-stdlib (= 3.12.3-0ubuntu2.1) but 3.12.3-0ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Still stuck on this.

Edit 3:

Here is the result of ls -l /usr/bin/python3; ls -lL /usr/bin/python3:

lrwxrwxrwx 1 root root 10 Nov 12 07:15 /usr/bin/python3 -> python3.12
-rw-r--r-- 1 root root 8021824 Aug 14  2025 /usr/bin/python3
ASCII characters missing from Gnome Characters app on Ubuntu 24.04 https://askubuntu.com/questions/1564670/ascii-characters-missing-from-gnome-characters-app-on-ubuntu-24-04

I'm running stock Ubuntu 24.04 LTS and am having a problem with Gnome Characters version 46. For some reason, I can find special/exotic characters but can't find 'normal' characters like the ASCII characters in it. For instance, when searching equal sign in the app I see variants of the equal sign character, but not the base character with code U+003D (screenshot below).

Screenshot of Characters App

In addition, if I exit the search and navigate to the Letters section on the left, instead of the Latin Capital Letters at the start I see the following:

GNOME Characters app Letters screenshot

Since this may be relevant, I include here the output of running locale in the terminal:

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_ZA.UTF-8
LC_TIME=en_ZA.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_ZA.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_ZA.UTF-8
LC_NAME=en_ZA.UTF-8
LC_ADDRESS=en_ZA.UTF-8
LC_TELEPHONE=en_ZA.UTF-8
LC_MEASUREMENT=en_ZA.UTF-8
LC_IDENTIFICATION=en_ZA.UTF-8
LC_ALL=

Please help! Some keys on my keyboard occasionally don't work so I want to be able to copy/paste them from the app.

Okular snap won't start, gives error https://askubuntu.com/questions/1564653/okular-snap-wont-start-gives-error

When I try to start Okular to view PDFs, I get this error:

/snap/okular/173/usr/bin/okular: error while loading shared libraries: libPlasmaActivities.so.6: cannot open shared object file: No such file or directory

Also, I'm not sure if this is related, but when I start the Snap Store and click on "Installed" to try to view the installed applications, the page is completely blank. Nothing ever loads.

If I run

snap list

on the command line I can see all the installed applications and okular shows up.

I tried running

sudo snap refresh
sudo snap remove okular && sudo snap install okular

to fix ocular, but it still gives the error above. On the command line after running that last command I get:

okular removed (snap data snapshot saved)
okular 25.04.3 from KDE✓ installed 
Recent upgrade to 6.17.0-14 yields kernel panic. How do I remove that kernel from GRUB? https://askubuntu.com/questions/1564321/recent-upgrade-to-6-17-0-14-yields-kernel-panic-how-do-i-remove-that-kernel-fro

A recent auto-upgrade from 6.14.0-37 to 6.17.0-14 yields a kernel panic at boot: Unable to mount root fs Unknown Block (0,0)

To get the machine up I have to select 6.14.0-37 from the GRUB boot menu. I can no longer do a normal boot/reboot because GRUB auto boots the newest (bad) kernel. I want to remove 6.17.0-14 from the GRUB menu.

All the help articles I've found instruct how to remove old kernel versions. How do I remove the NEWEST kernel version and retain the oldest in GRUB?

In reply to @heynnema:

ls -al /boot | grep init
lrwxrwxrwx  1 root root       28 Feb 22 08:04 initrd.img -> initrd.img-6.17.0-14-generic
-rw-r--r--  1 root root 75369010 Feb 22 08:00 initrd.img-6.14.0-37-generic
lrwxrwxrwx  1 root root       28 Feb 22 06:24 initrd.img.old -> initrd.img-6.14.0-37-generic

In reply to guiverc:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.4 LTS
Release:    24.04
Codename:   noble

In reply to david, looks like a DKMS build issue: etting 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

Building module: Cleaning build area... make -j24 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 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 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 Building module: Cleaning build area... make -j24 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 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 Errors were encountered while processing: linux-headers-6.17.0-14-generic linux-headers-generic-hwe-24.04 linux-generic-hwe-24.04 linux-image-6.17.0-14-generic

DKMS issue relates to building the VirtulBox 7.0.16 kernel module

How can I remove Ubuntu Pro (Advantage) software? [duplicate] https://askubuntu.com/questions/1563765/how-can-i-remove-ubuntu-pro-advantage-software

The Ubuntu Pro (formerly known as Ubuntu Advantage) client software may be undesirable for users who do not wish to utilize the associated services. While installed, these packages may do such things as;

  • Consume resources on an intermittent (12 hours, for example) or cumulative basis
  • Write to a log file found in /var/log/ubuntu-advantage.log
  • Insert messages into MOTD and APT output

How can this software be removed?

See also

Remove notification emblems on Ubuntu Dock 23.04 https://askubuntu.com/questions/1464485/remove-notification-emblems-on-ubuntu-dock-23-04

I recently upgraded from Ubuntu 22.10 to Ubuntu 23.04 and it seems nice. The only thing I do not like is the new emblem which counts the notifications. Is it possible to remove it but keep the notifications in the notification area?

enter image description here

sddm not starting - Failed to read display number from pipe https://askubuntu.com/questions/1417031/sddm-not-starting-failed-to-read-display-number-from-pipe

I have a problem that is driving me crazy and could not find a solution in the web jet, so I would appreciate if anyone can point me in the right direction. I have a laptop MSI prestige running kubuntu 22.04. I had to install kernel 5.18 so that the wifi work. I also installed nvidia drivers 515.48 (this solved some heating problems that I had). So now it seems that everything runs good, but for a small random problem: plasma does not always start automatically. Usually, when the computer boots sddm fails so I have to change to another console, restart sddm and everything works fine. That is the usual procedure, but sometimes sddm starts good by itself on boot and sometimes everything is stuck and I have to reboot the computer. The error I see in syslo is

sddm[1002]: Failed to read display number from pipe 
sddm[1002]: Could not start Display server on vt 1

Some of the parameters I have in grub that I read could help:

ibt=off rd.driver.blacklist=nouveau nvidia-drm.modeset=1

I read that it could be related to the fact sddm is launched prior to GPU being properly initialised, but not sure if it is really that and how to correct it.

So if anyone has some ideas, that would be great

journalctl -b0 -u sddm.service

gives

jul 03 13:33:44 valinor systemd[1]: Starting Simple Desktop Display Manager...
jul 03 13:33:44 valinor systemd[1]: Started Simple Desktop Display Manager.
jul 03 13:33:44 valinor sddm[1002]: Initializing...
jul 03 13:33:44 valinor sddm[1002]: Starting...
jul 03 13:33:44 valinor sddm[1002]: Logind interface found
jul 03 13:33:44 valinor sddm[1002]: Adding new display on vt 1 ...
jul 03 13:33:44 valinor sddm[1002]: Loading theme configuration from ""
jul 03 13:33:44 valinor sddm[1002]: Display server starting...
jul 03 13:33:44 valinor sddm[1002]: Adding cookie to "/var/run/sddm/{025b077b-f1fd-44f3-8b88-0a9cb7b3af50}"
jul 03 13:33:44 valinor sddm[1002]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{025b077b-f1fd-44f3-8b88-0a9cb7b3af50} -background none -noreset -displayfd 17 -seat seat0 vt1
jul 03 13:33:44 valinor sddm[1002]: Failed to read display number from pipe
jul 03 13:33:44 valinor sddm[1002]: Could not start Display server on vt 1
jul 03 13:34:39 valinor sddm[1002]: Signal received: SIGTERM
jul 03 13:34:39 valinor systemd[1]: Stopping Simple Desktop Display Manager...
jul 03 13:34:39 valinor systemd[1]: sddm.service: Deactivated successfully.
jul 03 13:34:39 valinor systemd[1]: Stopped Simple Desktop Display Manager.
jul 03 13:34:40 valinor systemd[1]: Starting Simple Desktop Display Manager...
jul 03 13:34:40 valinor systemd[1]: Started Simple Desktop Display Manager.
jul 03 13:34:40 valinor sddm[1384]: Initializing...
jul 03 13:34:40 valinor sddm[1384]: Starting...
jul 03 13:34:40 valinor sddm[1384]: Logind interface found
jul 03 13:34:40 valinor sddm[1384]: Adding new display on vt 1 ...
jul 03 13:34:40 valinor sddm[1384]: Loading theme configuration from ""
jul 03 13:34:40 valinor sddm[1384]: Display server starting...
jul 03 13:34:40 valinor sddm[1384]: Adding cookie to "/var/run/sddm/{be1b0a15-08c9-4487-9982-0b6bfe194842}"
jul 03 13:34:40 valinor sddm[1384]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{be1b0a15-08c9-4487-9982-0b6bfe194842} -background none -noreset -displayfd 17 -seat seat0 vt1
jul 03 13:34:41 valinor sddm[1384]: Setting default cursor
jul 03 13:34:42 valinor sddm[1384]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
jul 03 13:34:44 valinor sddm[1384]: Display server started.
jul 03 13:34:44 valinor sddm[1384]: Socket server starting...
jul 03 13:34:44 valinor sddm[1384]: Socket server started.
jul 03 13:34:44 valinor sddm[1384]: Loading theme configuration from "/usr/share/sddm/themes/ubuntu-theme/theme.conf"
jul 03 13:34:44 valinor sddm[1384]: Greeter starting...
jul 03 13:34:44 valinor sddm-helper[1473]: [PAM] Starting...
jul 03 13:34:44 valinor sddm-helper[1473]: [PAM] Authenticating...
jul 03 13:34:44 valinor sddm-helper[1473]: [PAM] returning.
jul 03 13:34:44 valinor sddm-helper[1473]: pam_unix(sddm-greeter:session): session opened for user sddm(uid=119) by (uid=0)
jul 03 13:34:44 valinor sddm[1384]: Greeter session started successfully
jul 03 13:34:44 valinor sddm[1384]: Message received from greeter: Connect
jul 03 13:34:48 valinor sddm[1384]: Message received from greeter: Login
jul 03 13:34:48 valinor sddm[1384]: Reading from "/usr/share/xsessions/plasma.desktop"
jul 03 13:34:48 valinor sddm[1384]: Reading from "/usr/share/xsessions/plasma.desktop"
jul 03 13:34:48 valinor sddm[1384]: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startplasma-x11"
jul 03 13:34:48 valinor sddm-helper[1548]: [PAM] Starting...
jul 03 13:34:48 valinor sddm-helper[1548]: [PAM] Authenticating...
jul 03 13:34:48 valinor sddm-helper[1548]: [PAM] Preparing to converse...
jul 03 13:34:48 valinor sddm-helper[1548]: [PAM] Conversation with 1 messages
jul 03 13:34:48 valinor sddm-helper[1548]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
jul 03 13:34:48 valinor sddm-helper[1548]: [PAM] returning.
jul 03 13:34:48 valinor sddm[1384]: Authenticated successfully
jul 03 13:34:48 valinor sddm-helper[1548]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
jul 03 13:34:48 valinor sddm-helper[1548]: pam_unix(sddm:session): session opened for user morales(uid=1000) by (uid=0)
jul 03 13:34:48 valinor sddm-helper[1548]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
jul 03 13:34:48 valinor sddm-helper[1548]: Starting: "/etc/sddm/Xsession \"/usr/bin/startplasma-x11\""
jul 03 13:34:48 valinor sddm[1384]: Session started
jul 03 13:34:48 valinor sddm[1384]: Auth: sddm-helper exited successfully
jul 03 13:34:48 valinor sddm[1384]: Greeter stopped.

remark that it fails at start and the I manually restarted sddm

egrep 'EE|WW' /var/log/Xorg.0.log

[    60.502] Current Operating System: Linux valinor 5.18.0-051800-generic #202205222030 SMP PREEMPT_DYNAMIC Sun May 22 20:33:46 UTC 2022 x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    60.503] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    60.503] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    60.503] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    60.503] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    60.503] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    60.693] (WW) Falling back to old probe method for fbdev
[    61.194] (WW) NVIDIA(G0): Unable to get display device for DPI computation.
[    61.324] (II) Initializing extension MIT-SCREEN-SAVER
[    77.145] (WW) Option "xkb_variant" requires a string value
[    77.145] (WW) Option "xkb_options" requires a string value
[  2414.441] (EE) event10 - MSNB0001:00 06CB:CDAA Touchpad: kernel bug: Touch jump detected and discarded.
[  2545.249] (EE) event10 - MSNB0001:00 06CB:CDAA Touchpad: kernel bug: Touch jump detected and discarded.
[  2550.256] (EE) modeset(0): Failed to set CTM property: -13
[  2550.257] (EE) modeset(0): failed to set mode: No such file or directory
[  2583.546] (WW) Option "xkb_variant" requires a string value
[  2583.546] (WW) Option "xkb_options" requires a string value

I add cat /var/log/gpu-manager.log

log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.18.0-051800-generic/kernel
Looking for nvidia modules in /lib/modules/5.18.0-051800-generic/updates/dkms
Found nvidia.ko module in /lib/modules/5.18.0-051800-generic/updates/dkms/nvidia.ko
Looking for amdgpu modules in /lib/modules/5.18.0-051800-generic/kernel
Looking for amdgpu modules in /lib/modules/5.18.0-051800-generic/updates/dkms
Is nvidia loaded? yes
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? yes
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:46a6
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:25a2
BusID "PCI:1@0:0:0"
can't open /sys/bus/pci/devices/0000:01:00.0/boot_vga
Is boot vga? no
can't open /sys/bus/pci/devices/0000:01:00.0/boot_vga
Chassis type: "10"
Laptop detected
can't access /etc/u-d-c-nvidia-runtimepm-override file
Found json file: /usr/share/doc/nvidia-driver-515-server/supported-gpus.json
File /usr/share/doc/nvidia-driver-515-server/supported-gpus.json not found
Is nvidia runtime pm supported for "0x25a2"? yes
Trying to create new file: /run/nvidia_runtimepm_supported
Checking power status in /proc/driver/nvidia/gpus/0000:01:00.0/power
Runtime D3 status:          Enabled (fine-grained)
Is nvidia runtime pm enabled for "0x25a2"? yes
Trying to create new file: /run/nvidia_runtimepm_enabled
Skipping "/dev/dri/card1", driven by "i915"
Skipping "/dev/dri/card0", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "i915"
Skipping "/dev/dri/card0", driven by "nvidia-drm"
Skipping "/dev/dri/card1", driven by "i915"
Skipping "/dev/dri/card0", driven by "nvidia-drm"
Found "/dev/dri/card1", driven by "i915"
output 0:
        card1-eDP-1
output 1:
        card1-DP-1
Number of connected outputs for /dev/dri/card1: 2
Does it require offloading? no
last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Has the system changed? No
Takes 0ms to wait for nvidia udev rules completed.
Intel IGP detected
NVIDIA hybrid system
Creating /usr/share/X11/xorg.conf.d/11-nvidia-offload.conf
Setting power control to "auto" in /sys/bus/pci/devices/0000:01:00.0/power/control

and dkms status

nvidia/515.48.07, 5.15.0-39-generic, x86_64: installed
nvidia/515.48.07, 5.18.0-051800-generic, x86_64: installed
How to change 2-finger touchpad scroll speed on Ubuntu 22.04 https://askubuntu.com/questions/1413750/how-to-change-2-finger-touchpad-scroll-speed-on-ubuntu-22-04

Is there a way to change how quickly (or how far) a laptop touchpad scrolls?

This question is specific to 22.04 (Jammy Jellyfish). Although there are many similar questions, none asks specifically about 22.04. The answers for 22.04 will likely differ from past answers because 22.04 (I think) uses Wayland instead of X.org (whatever that means).

Related questions:

VirtualBox guest additions crashes and fails to fully install on Ubuntu 20.04 guest https://askubuntu.com/questions/1309581/virtualbox-guest-additions-crashes-and-fails-to-fully-install-on-ubuntu-20-04-gu

My virtualbox 6.1.4 vm with Ubuntu 20.04 guest on Windows 10 Pro fails to install:

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.4 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.8.0-38-generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what 
went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted

When I look at that log file, it shows this:

Building the main Guest Additions 6.1.4 module for kernel 5.8.0-38-generic.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.8.0-38-gene
ric/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (    
    \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are 
missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.
";  \
echo >&2 ;
...

I checked for include/generated/autoconf.h or include/config/auto.conf, both exist from /usr/src/linux-headers-5.8.0-38-generic, so I think this top part of log runs fine.

After the above output there are a few gcc commands that complete and then one that fails, causing guest additions to abort:

...
gcc -Wp,-MMD,/tmp/vbox.0/.combined-agnostic.o.d  ... -c
 -o /tmp/vbox.0/combined-agnostic.o /tmp/vbox.0/combined-agnostic.c
In file included from /tmp/vbox.0/VBoxGuestR0LibHGCMInternal.c:44,
                 from /tmp/vbox.0/combined-agnostic.c:34:
/tmp/vbox.0/include/iprt/time.h: In function ‘RTTimeSpecGetTimeval’:
/tmp/vbox.0/include/iprt/time.h:379:13: error: dereferencing pointer to incomple
te type ‘struct timeval’
  379 |     pTimeval->tv_sec = (time_t)i64;
      |             ^~
/tmp/vbox.0/include/iprt/time.h:379:25: error: ‘time_t’ undeclared (first use in
 this function); did you mean ‘ktime_t’?
  379 |     pTimeval->tv_sec = (time_t)i64;
      |                         ^~~~~~
      |                         ktime_t
/tmp/vbox.0/include/iprt/time.h:379:25: note: each undeclared identifier is repo
rted only once for each function it appears in
/tmp/vbox.0/include/iprt/time.h:379:32: error: expected ‘;’ before ‘i64’
  379 |     pTimeval->tv_sec = (time_t)i64;
      |                                ^~~
      |                                ;
/tmp/vbox.0/include/iprt/time.h: In function ‘RTTimeSpecSetTimeval’:
/tmp/vbox.0/include/iprt/time.h:393:67: error: dereferencing pointer to incomple
te type ‘const struct timeval’
  393 |     return RTTimeSpecAddMicro(RTTimeSpecSetSeconds(pTime, pTimeval->tv_s
ec), pTimeval->tv_usec);
      |                                                                   ^~
make[2]: *** [scripts/Makefile.build:290: /tmp/vbox.0/combined-agnostic.o] Error
 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1780: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:114: vboxguest] Error 2

I'm guessing this is a gcc version issue or headers issue but there are no further upgrades available. I just found a comment on Problem installing virtualBox Guest Additions suggesting known issues so I will first try upgrading. I will post answer if this works, stay tuned.

MariaDB fails despite apparmor profile https://askubuntu.com/questions/1185710/mariadb-fails-despite-apparmor-profile

Starting MariaDB fails on my Ubuntu 19 installation after this:

nov 02 16:40:51 farnsworth systemd[1]: Starting MariaDB 10.3.17 database server...
nov 02 16:40:51 farnsworth mysqld[5328]: 2019-11-02 16:40:51 0 [Note] /usr/sbin/mysqld (mysqld 10.3.17-MariaDB-1) starting as process 5328 ...
nov 02 16:40:52 farnsworth audit[5328]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=5328 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=123 ouid=0
nov 02 16:40:52 farnsworth audit[5328]: AVC apparmor="ALLOWED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="run/systemd/notify" pid=5328 comm="mysqld" requested_mask="w" denied_mask="w" fsuid=123 ouid=0
nov 02 16:40:52 farnsworth systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE

I have created an apparmor profile where I'm trying to make it allow /usr/sbin/mysqld writing rights on run/systemd/notify:

# Last Modified: Fri Nov  1 22:57:29 2019
#include <tunables/global>

# vim:syntax=apparmor
# AppArmor policy for mysqld
# ###AUTHOR###
# Redacted
# ###COPYRIGHT###
# 2019
# ###COMMENT###
# Ubuntu 19/MariaDB
# No template variables specified

/usr/sbin/mysqld flags=(complain) {
  #include <abstractions/base>
  #include <abstractions/evince>
  #include <abstractions/nameservice>

  /etc/mysql/conf.d/ r,
  /etc/mysql/conf.d/mysql.cnf r,
  /etc/mysql/conf.d/mysqldump.cnf r,
  /etc/mysql/mariadb.cnf r,
  /etc/mysql/mariadb.conf.d/ r,
  /etc/mysql/mariadb.conf.d/50-client.cnf r,
  /etc/mysql/mariadb.conf.d/50-mysql-clients.cnf r,
  /etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf r,
  /etc/mysql/mariadb.conf.d/50-server.cnf r,
  /run/systemd/notify w,
  /usr/sbin/mysqld rk,
  /var/lib/mysql/** rw,
  /var/log/mysql/** r,
  owner /var/lib/mysql/ r,
  owner /var/lib/mysql/** rwk,
  owner /var/log/mysql/** rw,
}

The funny thing is, the file MariaDB needs is /run/systemd/notify (absolute path) while it requests writing rights to run/systemd/notify (no starting slash, so relative path). But removing the slash makes the profile fail:

$ sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld 
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 29: syntax error, unexpected TOK_ID, expecting TOK_MODE

However, when I put the profile in complain mode and then let apparmor find out if any changes are needed, it doesn't find any problems:

$ sudo aa-complain mysqld
Setting /usr/sbin/mysqld to complain mode.

$ sudo aa-logprof
Reading log entries from /var/log/audit/audit.log.
Updating AppArmor profiles in /etc/apparmor.d.
Complain-mode changes:

Does anyone know where the path to this this file is set?

Issue with oh-my-zsh theme not being fully applied https://askubuntu.com/questions/1160577/issue-with-oh-my-zsh-theme-not-being-fully-applied

I'm new to both zsh and askubuntu, so please be gentle. :)

I'm going through this tutorial and have gotten stuck on the section "Changing Oh-My-ZSH Theme". I can apply the theme by editing my .zshrc and changing ZSH_THEME to my desired theme (wuffers), and some things change, like what shows up as soon as I create a new terminal (the first line, not sure what it's called). The little arrow will change to a smiley face, or some other little symbol. But the colors, background, and font never change, so when I "ls", the font and color is the same every time. I've checked via "echo $ZSH_THEME", and that gives me back what I applied (wuffers).

Here is a list of everything that I've tried:

  • Sourcing my .zshrc file
  • Setting theme to random and trying out several in a row to see if wuffers in particular is funky (which it wasn't isolated, it happened for every theme I tried)
  • Removing my extra syntax highlighting plugin at the end of the file
  • Completely wiping out my .zshrc file and starting from scratch

I found this issue on the GitHub page where it seems their issue was solved, but I'm not sure what exactly they meant by package ("apt-get remove grml-zsh-config"?). So it very well may be the answer to my problem.

I'm running up-to-date Ubuntu 18.04.2.

The only plugin I have right now is git (and I've tried removing it to see if it made any difference - it didn't).

Here is my .zshrc file:

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH="/home/legate/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="random"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

source $ZSH/oh-my-zsh.sh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

Any help would be greatly appreciated!

sudo add-apt-repository hangs with no error Ubuntu 19.04 https://askubuntu.com/questions/1143570/sudo-add-apt-repository-hangs-with-no-error-ubuntu-19-04

Whenever I try to run sudo add-apt-repository ppa:docky-core/ppa(for any ppa, not just this one) it just hangs indefinitely, without giving any sort of error, even with the -m flag. After I terminate it with ctrl+c it shows the following:

^CTraceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 136, in <module>
    shortcut = shortcut_handler(line)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 864, in shortcut_handler
    ret = factory(shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 469, in shortcut_handler
    return PPAShortcutHandler(shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 426, in __init__
    info = get_ppa_info(self.shortcut)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 380, in get_ppa_info
    ret = get_ppa_info_from_lp(user, ppa)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 110, in get_ppa_info_from_lp
    return get_info_from_lp(lp_url)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 104, in get_info_from_lp
    return get_info_from_https(lp_url, True)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 96, in get_info_from_https
    data = func(lp_url=url, accept_json=accept_json, retry_delays=retry_delays)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 139, in _get_https_content_py3
    cafile=LAUNCHPAD_PPA_CERT)
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 1360, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.7/urllib/request.py", line 1317, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/usr/lib/python3.7/http/client.py", line 1384, in connect
    super().connect()
  File "/usr/lib/python3.7/http/client.py", line 928, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib/python3.7/socket.py", line 716, in create_connection
    sock.connect(sa)
KeyboardInterrupt

Any ideas what could be causing this? Thanks.

How to tune xrdp + remmina for best performance https://askubuntu.com/questions/1051452/how-to-tune-xrdp-remmina-for-best-performance

Starting with 18.04 on both ends I want to access my remote machine via RDP.

I have verified that the client using remmina works very fast using GFX RFX colour depth connecting to a Windows 10 RDP server. Please note that neither of GFX AVC variants works as there seems that libfreerdp doesn't come prebuilt with their support on 18.04 (remmina installed by apt, not manually from their repo).

When I connect to an Ubuntu 18.04 server running xrdp, performance is not nearly the same: the entire experience is laggy, especially at resolutions above full HD. It is clearly not using the advanced codecs.

I tried installing Remmina from their repo to test the AVC depths, but the only thing that changes is removing the AVC depths from the list altogether so now I can't even select them (previously they just didn't work). Apt didn't touch the libfreerdp libraries though when I upgraded Remmina from their repo.

How can I set up my systems such that I will have good performance?

Restore kernel from live usb https://askubuntu.com/questions/1024116/restore-kernel-from-live-usb

while installing another distro (Arch) I accidentally formatted my efi system partition. I then grabbed the chance and switched to systemd-boot. Arch boots fine now, but I want to add Ubuntu again and dual boot. Ubuntus root partition should be fine but since I wiped the efi system partition I guess I have to reinstall the kernel.

I tried chrooting from a live usb and install the kernel via apt-get but it says the kernel is on newest version.

sudo su
mount /dev/sdb5 /mnt      # ubuntu root
mount /dev/sdb2 /mnt/boot # esp
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
cp /etc/resolv.conf /mnt/etc/resolv.conf
chroot /mnt

Then trying to install the kernel:

apt-get install linux-image-generic

Output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-generic is already the newest version (4.13.0.38.41).
0 upgaded, 0 newly installed, 0 to remove and 39 not upgraded.

Am I wrong, is the Kernel still there? How can I add Ubuntu to systemd-boot if the efi program is not on the esp?

Thanks a lot

A start job is running for wait for network to be configured. Ubuntu server 17.10 https://askubuntu.com/questions/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1

i just installed ubuntu server on my laptop and everything works fine except for the fact that at boot if the laptop is not connected to ethernet or in range of my wi-fi i get this message "A start job is running for wait for network to be configured" that stays for about 2 minutes. I looked up online for solutions and i tried to:

  • Disable network manager
  • Edit timeout settings in /etc/systemd/system.conf
  • Disable systemd.networkd-wait-online.service

None of these solutions worked for me. Any possible fixes?

Create link to file on Desktop or in Folder https://askubuntu.com/questions/941706/create-link-to-file-on-desktop-or-in-folder

Ubuntu 16.04 I have 2 instances of Nautilus (file explorer) open - in different drives and or folders.

I want to create a LINK to a file. It doesn't appear to be easily done - if I drag & drop the file it makes a copy. If I right-click the file the menu does have a 'Make Link', but it makes the link in the folder the file already is in (why would I want that?) - and I have to then drag the link to the place I want, which makes a copy of the link, and then I have to delete the link made in the place I don't want. Seems like very inefficient way. So, I'm probably missing something....?

Stuck at a blue screen while booting Ubuntu 16.04 [duplicate] https://askubuntu.com/questions/839279/stuck-at-a-blue-screen-while-booting-ubuntu-16-04

I am using Ubuntu 16.04, and I'm stuck at a blue screen with no message.

First it boots to the Ubuntu logo.

booting

Then it's just showing a blue screen with a mouse cursor and nothing else.

Screenshot

RSA certificate configured for localhost.localdomain:443 does NOT include an ID which matches the server name https://askubuntu.com/questions/521854/rsa-certificate-configured-for-localhost-localdomain443-does-not-include-an-id

I got this error when setting up ssl on Ubuntu 14.04.1 LTS (apache2, openssl)

AH01909: RSA certificate configured for localhost.localdomain:443 does NOT include an ID which matches the server name

Any thoughts on what might be going on here?

Thanks!

Add printer Epson L110 https://askubuntu.com/questions/439818/add-printer-epson-l110

I have been using kubuntu 13.10 now,. but I have problem,.

when I have installed driver epson L110 on my kubuntu I dont know how to print on my kubuntu,. i cant printer device in my kubuntu)

can somebody help me please?

Software raid - mdadm - re-find my array https://askubuntu.com/questions/247981/software-raid-mdadm-re-find-my-array

Description

Today I plugged in another hard drive and unplugged my raid drives to ensure when I wiped the drive, I would not accidentally pick the wrong drives.

Now that I have re-plugged in my drives, the software raid 1 array is no longer being mounted/recognized/found. Using disk utility, I could see that the drives are /dev/sda and /dev/sdb so I tried running sudo mdadm -A /dev/sda /dev/sdb Unfortunately I keep getting an error message stating mdadm: device /dev/sda exists but is not an md array


Specifications:

OS: Ubuntu 12.04 LTS Desktop (64 bit)

Drives: 2 x 3TB WD Red (same models brand new) OS installed on third drive (64GB ssd) (many linux installs)

Motherboard: P55 FTW

Processor: Intel i7-870 Full Specs


Result of sudo mdadm --assemble --scan

mdadm: No arrays found in config file or automatically

When I boot from recovery mode I get a zillion 'ata1 error' codes flying by for a very long time.

Can anyone let me know the proper steps for recovering the array?

I would be happy just recover the data if that is a possible alternative to rebuilding the array. I have read about 'test disk' and it states on the wiki that it can find lost partitions for Linux RAID md 0.9/1.0/1.1/1.2 but I am running mdadm version 3.2.5 it seems. Has anyone else had experience with using this to recover software raid 1 data?


Result of sudo mdadm --examine /dev/sd* | grep -E "(^\/dev|UUID)"

mdadm: No md superblock detected on /dev/sda.
mdadm: No md superblock detected on /dev/sdb.
mdadm: No md superblock detected on /dev/sdc1.
mdadm: No md superblock detected on /dev/sdc3.
mdadm: No md superblock detected on /dev/sdc5.
mdadm: No md superblock detected on /dev/sdd1.
mdadm: No md superblock detected on /dev/sdd2.
mdadm: No md superblock detected on /dev/sde.
/dev/sdc:
/dev/sdc2:
/dev/sdd:

Contents of mdadm.conf:

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays

# This file was auto-generated on Tue, 08 Jan 2013 19:53:56 +0000
# by mkconf $Id$

Result of sudo fdisk -l as you can see sda and sdb are missing.

Disk /dev/sdc: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 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
Disk identifier: 0x0009f38d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048     2000895      999424   82  Linux swap / Solaris
/dev/sdc2         2002942    60594175    29295617    5  Extended
/dev/sdc3        60594176   125044735    32225280   83  Linux
/dev/sdc5         2002944    60594175    29295616   83  Linux

Disk /dev/sdd: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 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
Disk identifier: 0x58c29606

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sdd2          206848   234455039   117124096    7  HPFS/NTFS/exFAT

Disk /dev/sde: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 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
Disk identifier: 0x00000000

Disk /dev/sde doesn't contain a valid partition table

The output of dmesg | grep ata was very long so here is a link: http://pastebin.com/raw.php?i=H2dph66y


The output of dmesg | grep ata | head -n 200 after setting bios to ahci and having to boot without those two discs.

[    0.000000]  BIOS-e820: 000000007f780000 - 000000007f78e000 (ACPI data)
[    0.000000] Memory: 16408080k/18874368k available (6570k kernel code, 2106324k absent, 359964k reserved, 6634k data, 924k init)
[    1.043555] libata version 3.00 loaded.
[    1.381056] ata1: SATA max UDMA/133 abar m2048@0xfbff4000 port 0xfbff4100 irq 47
[    1.381059] ata2: SATA max UDMA/133 abar m2048@0xfbff4000 port 0xfbff4180 irq 47
[    1.381061] ata3: SATA max UDMA/133 abar m2048@0xfbff4000 port 0xfbff4200 irq 47
[    1.381063] ata4: SATA max UDMA/133 abar m2048@0xfbff4000 port 0xfbff4280 irq 47
[    1.381065] ata5: SATA max UDMA/133 abar m2048@0xfbff4000 port 0xfbff4300 irq 47
[    1.381067] ata6: SATA max UDMA/133 abar m2048@0xfbff4000 port 0xfbff4380 irq 47
[    1.381140] pata_acpi 0000:0b:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    1.381157] pata_acpi 0000:0b:00.0: setting latency timer to 64
[    1.381167] pata_acpi 0000:0b:00.0: PCI INT A disabled
[    1.429675] ata_link link4: hash matches
[    1.699735] ata1: SATA link down (SStatus 0 SControl 300)
[    2.018981] ata2: SATA link down (SStatus 0 SControl 300)
[    2.338066] ata3: SATA link down (SStatus 0 SControl 300)
[    2.657266] ata4: SATA link down (SStatus 0 SControl 300)
[    2.976528] ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.979582] ata5.00: ATAPI: HL-DT-ST DVDRAM GH22NS50, TN03, max UDMA/100
[    2.983356] ata5.00: configured for UDMA/100
[    3.319598] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.320252] ata6.00: ATA-9: SAMSUNG SSD 830 Series, CXM03B1Q, max UDMA/133
[    3.320258] ata6.00: 125045424 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    3.320803] ata6.00: configured for UDMA/133
[    3.324863] Write protecting the kernel read-only data: 12288k
[    3.374767] pata_marvell 0000:0b:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    3.374795] pata_marvell 0000:0b:00.0: setting latency timer to 64
[    3.375759] scsi6 : pata_marvell
[    3.376650] scsi7 : pata_marvell
[    3.376704] ata7: PATA max UDMA/100 cmd 0xdc00 ctl 0xd880 bmdma 0xd400 irq 18
[    3.376707] ata8: PATA max UDMA/133 cmd 0xd800 ctl 0xd480 bmdma 0xd408 irq 18
[    3.387938] sata_sil24 0000:07:00.0: version 1.1
[    3.387951] sata_sil24 0000:07:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[    3.387974] sata_sil24 0000:07:00.0: Applying completion IRQ loss on PCI-X errata fix
[    3.388621] scsi8 : sata_sil24
[    3.388825] scsi9 : sata_sil24
[    3.388887] scsi10 : sata_sil24
[    3.388956] scsi11 : sata_sil24
[    3.389001] ata9: SATA max UDMA/100 host m128@0xfbaffc00 port 0xfbaf0000 irq 19
[    3.389004] ata10: SATA max UDMA/100 host m128@0xfbaffc00 port 0xfbaf2000 irq 19
[    3.389007] ata11: SATA max UDMA/100 host m128@0xfbaffc00 port 0xfbaf4000 irq 19
[    3.389010] ata12: SATA max UDMA/100 host m128@0xfbaffc00 port 0xfbaf6000 irq 19
[    5.581907] ata9: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[    5.618168] ata9.00: ATA-8: OCZ-REVODRIVE, 1.20, max UDMA/133
[    5.618175] ata9.00: 117231408 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    5.658070] ata9.00: configured for UDMA/100
[    7.852250] ata10: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[    7.891798] ata10.00: ATA-8: OCZ-REVODRIVE, 1.20, max UDMA/133
[    7.891804] ata10.00: 117231408 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    7.931675] ata10.00: configured for UDMA/100
[   10.022799] ata11: SATA link down (SStatus 0 SControl 0)
[   12.097658] ata12: SATA link down (SStatus 0 SControl 0)
[   12.738446] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)

Smart tests on drives both came back 'healthy' however I cannot boot the machine with the drives plugged in when the machine is in AHCI mode (I dont know if this matters but these are 3tb WD reds). I hope this means the drives are fine as they were quite a bit to buy and brand new. Disk utility shows a massive grey 'unknown' shown below:

Image of disk utility showing healthy drives

I have since removed my RevoDrive to try and make things simpler/clearer.


As far as I can tell, the motherboard doesn't have two controllers. Perhaps the Revodrive that I have since removed, which plugs in through pci was confusing things?


Has anyone got any suggestions for how to recover the data from the drive rather than rebuilding the array? I.e. a step-by-step on using testdisk or some other data recovery program....


I have tried putting the drives in another machine. I had the same issue where the machine would not get past the bios screen, but this one would constantly reboot itself. The only way to get the machine to boot would be to unplug the drives. I tried using different sata cables as well with no help. I did once manage to get it to discover the drive but again mdadm --examine revealed no block. Does this suggest my disks themselves are #@@#$#@ even though the short smart tests stated they were 'healthy'?


It appears the drives are truly beyond rescue. I cant even format the volumes in disk utility. Gparted wont see the drives to put a partition table on. I cant even issue a secure erase command to fully reset the drives. It was definitely a software raid that I had set up after discvering that the hardware raid I had initially tried was actually 'fake' raid and slower than software raid.

Thank you for all your efforts to trying to help me. I guess the 'answer' is there is nothing you can do if you somehow manage to kill both your drives simultaneously.


I retried SMART tests (this time in command line rather than disk utility) and the drives do respond successfully 'without error'. However, I am unable to format the drives (using disk utility) or have them recognized by Gparted in that machine or another. I am also unable to run hdparm secure erase or security-set-password commands on the drives. Perhaps I need to dd /dev/null the entire drives? How on earth are they still responding to SMART but two computers are unable to do anything with them? I am running long smart tests on both drives now and will post results in 255 minutes (that's how long it said it was going to take).

I have put the processor information up with the other technical specs (by motherboard etc) It turns out to be a pre-sandy architecture.


Output of Extended SMART scan of one drive:

smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-36-generic] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD30EFRX-68AX9N0
Serial Number:    WD-WMC1T1480750
LU WWN Device Id: 5 0014ee 058d18349
Firmware Version: 80.00A80
User Capacity:    3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   9
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun Jan 27 18:21:48 2013 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                    without error or no self-test has ever 
                    been run.
Total time to complete Offline 
data collection:        (41040) seconds.
Offline data collection
capabilities:            (0x7b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                    General Purpose Logging supported.
Short self-test routine 
recommended polling time:    (   2) minutes.
Extended self-test routine
recommended polling time:    ( 255) minutes.
Conveyance self-test routine
recommended polling time:    (   5) minutes.
SCT capabilities:          (0x70bd) SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   196   176   021    Pre-fail  Always       -       5175
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       29
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       439
 10 Spin_Retry_Count        0x0032   100   253   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       29
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       24
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       4
194 Temperature_Celsius     0x0022   121   113   000    Old_age   Always       -       29
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%       437         -
# 2  Short offline       Completed without error       00%       430         -
# 3  Extended offline    Aborted by host               90%       430         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

It said completed without error. Does that mean the drive should be fine or just that the test was able to complete? Should I start a new question as I'm more concerned about getting the use of the drives back rather than the data/raid array at this point...


Well today I was looking through my filesystem to see if there was any data to keep before setting up centOS instead. I noticed a folder called dmraid.sil in my home folder. I am guessing this is from when I had initially set up the raid array with the fake raid controller? I had made sure to remove the device (quite some time ago way before this problem) and just before using mdadm to create 'software raid'. Is there any way I have missed a trick somewhere and this was somehow running 'fake' raid without the device and that is what this dmraid.sil folder is all about? So confused. There are files in there like sda.size sda_0.dat sda_0.offset etc. Any advice on what this folder represents would be helpful.


Turns out the drives were locked! I unlocked them easily enough with hdparm command. This is probably what caused all the Input Output errors. Unfortunately I now have this problem:

enter image description here

I have managed to mount the md device. Is it possible to unplug one drive, format it to a normal drive and copy the data to that? Ive had enough 'fun' with raid and am going to go down an automated backups route with rsync I think. I want to ask before I do anything that may cause data integrity issues.


How to make ZSH the default shell? https://askubuntu.com/questions/131823/how-to-make-zsh-the-default-shell

I am trying to set ZSH as my default shell, however it keeps reverting back to bash.

I have tried this code:

sudo chsh -s $(which zsh)

I've also tried:

sudo chsh -s /bin/zsh 

Also tried these commands without sudo. Any ideas on what else I need to do. When running ZSH from within bash it loads up and works fine but I'd like to set it as the default shell.

"ldap_add: Naming violation (64)" error when configuring OpenLDAP https://askubuntu.com/questions/29595/ldap-add-naming-violation-64-error-when-configuring-openldap

I am following the Ubuntu server guide to configure OpenLDAP on an Ubuntu 10.04 server, but can not get it to work.

When I try to use sudo ldapadd -x -D cn=admin,dc=don,dc=com -W -f frontend.ldif I'm getting the following error:

Enter LDAP Password: <entered 'secret' as password>
adding new entry "dc=don,dc=com"
ldap_add: Naming violation (64)
      additional info: value of single-valued naming attribute 'dc' conflicts with value present in entry

Again when I try to do the same, I'm getting the following error:

root@avy-desktop:/home/avy# sudo ldapadd -x -D cn=admin,dc=don,dc=com -W -f frontend.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

Here is the backend.ldif file:

# Load dynamic backend modules
dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulepath: /usr/lib/ldap
olcModuleload: back_hdb

# Database settings
dn: olcDatabase=hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcSuffix: dc=don,dc=com
olcDbDirectory: /var/lib/ldap
olcRootDN: cn=admin,dc=don,dc=com
olcRootPW: secret
olcDbConfig: set_cachesize 0 2097152 0
olcDbConfig: set_lk_max_objects 1500
olcDbConfig: set_lk_max_locks 1500
olcDbConfig: set_lk_max_lockers 1500
olcDbIndex: objectClass eq
olcLastMod: TRUE
olcDbCheckpoint: 512 30
olcAccess: to attrs=userPassword by dn="cn=admin,dc=don,dc=com" write by anonymous auth by self write by * none
olcAccess: to attrs=shadowLastChange by self write by * read
olcAccess: to dn.base="" by * read
olcAccess: to * by dn="cn=admin,dc=don,dc=com" write by * read

frontend.ldif file:

# Create top-level object in domain
dn: dc=don,dc=com
objectClass: top
objectClass: dcObject
objectclass: organization
o: Example Organization
dc: Example
description: LDAP Example 

# Admin user.
dn: cn=admin,dc=don,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword: secret

dn: ou=people,dc=don,dc=com
objectClass: organizationalUnit
ou: people

dn: ou=groups,dc=don,dc=com
objectClass: organizationalUnit
ou: groups

dn: uid=john,ou=people,dc=don,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: john
sn: Doe
givenName: John
cn: John Doe
displayName: John Doe
uidNumber: 1000
gidNumber: 10000
userPassword: password
gecos: John Doe
loginShell: /bin/bash
homeDirectory: /home/john
shadowExpire: -1
shadowFlag: 0
shadowWarning: 7
shadowMin: 8
shadowMax: 999999
shadowLastChange: 10877
mail: john.doe@don.com
postalCode: 31000
l: Toulouse
o: Example
mobile: +33 (0)6 xx xx xx xx
homePhone: +33 (0)5 xx xx xx xx
title: System Administrator
postalAddress:
initials: JD

dn: cn=example,ou=groups,dc=don,dc=com
objectClass: posixGroup
cn: example
gidNumber: 10000

Can anyone help me?