Dependency failed for swaps https://askubuntu.com/questions/1565085/dependency-failed-for-swaps

I was trying to install a new external hard drive with LUKS and it became a mess. I don't know what happened. I didn't touch my main hard drive, but now I can't access my computer. It says "dependency failed for swaps". I'm afraid because I don't want to lose any data. What can I do ?

I'm on Ubuntu 22.04 LTS Desktop, with a Dell Pavillon computer. And now it says exactly /dev/nvme0n1p2 : clean, 1691456/62480384 files, 221364289/249919744 blocks. Failed. Failed to activate swap /swapfile. Depend. Dependency failed for swaps. [591.007469] USB 3-3: device descriptor read/64, error -32. This happens when I click on "Ubuntu" when I start my computer.

I think the problem started when I touched something while trying to mount the new disk. But I also had trouble with Luks format, it didn't work and I wasn't able to access the external hard drive.

Authentication WiFi - notify [duplicate] https://askubuntu.com/questions/1565082/authentication-wifi-notify

My computer is connected by cable to my switch, but after login, it notifies me to authenticate on Wi-Fi. I don't have any Wi-Fi network saved. How can I solve this problem?

Synchronisation's issues between Trilium Notes desktop app and Trilium mobile frontend via Docker https://askubuntu.com/questions/1565080/synchronisations-issues-between-trilium-notes-desktop-app-and-trilium-mobile-fr

Goal

I've got a Trilium Notes Desktop application already installed on my PC. I want to access and modify it from my smartphone. For now, I just want to access my notes when I am at home connected on the LAN.

Issues

When I do modifications (creating a new note, modifying an existing note, and so on) from the desktop application, on my PC, the mobile frontend does not synchronised quickly (later it does, when I reboot the app sometimes but it's not always reproducible). The inverse is true too. If I do modifications from the mobile frontend, the desktop application does not synchronised.

Environment

  • Trilium Notes Desktop application (app version 0.102.1, DB version 234, Sync version 36) installed and managed with Snap on my PC using Ubuntu 22.04.5 LTS. That's a big point because the data directory is not the same as in official documentation, and I considered it.
  • Docker (28.1.1) to run a server as interface.
  • Mobile FrontEnd via Firefox (148.0.2) on Android 12.

Configuration

  • Trilium Notes Desktop data directory path ~/snap/.../trilium-data

  • Sync configuration in the app Server instance adress : http://localhost:8080 ; Sync timeout : 120000 ms

  • config.ini content

    [General]
    instanceName=
    noAuthentication=true
    noBackup=false
    [Network]
    host=0.0.0.0
    port=8080
    https=false
    
  • Docker for trilium docker-compose.yml content:

    services:
      trilium:
        image: triliumnext/trilium:latest
        restart: unless-stopped
        environment:
          - TRILIUM_DATA_DIR=/home/node/trilium-data
          - TRILIUM_NO_AUTHENTICATION=true
        ports:
          - '8080:8080'
        volumes:
          - ~/snap/.../trilium-data:/home/node/trilium-data
    

Hypothesis

I am not skilled enough in database management, and migration, that's why I am here. But I consulted the documentation and here are my doubts.

How to pass multiple rsync source directories as bash array elements [closed] https://askubuntu.com/questions/1565079/how-to-pass-multiple-rsync-source-directories-as-bash-array-elements

I have a bash script that's attempting to sync multiple sources to a single destination. The idea is to sync the contents of my home folder along with the entire /etc/ssh directory. The script defines my sources array like this:

SOURCES=("/home/$USER/" "/etc/ssh")

and runs the rsync command like this:

/usr/bin/rsync -aAXz -e 'ssh -p 22' \
  --dry-run \
  --verbose --verbose --verbose \
  --delete \
  --exclude-from="$EXC_FILE" \
  --log-file="$LOG_FILE" \
  --log-file-format="$LOG_FMT" \
"${SOURCES[@]}" \
"$DEST"

The result is an error:

backup_script.sh: 4: Syntax error: "(" unexpected

I'm really new to bash scripting and rsync (obviously), so I'm struggling to fix this. Anyone spot where I've messed up the syntax?

Cheers,

How often does Ubuntu and Debian compress packages with XZ Utils? [closed] https://askubuntu.com/questions/1565077/how-often-does-ubuntu-and-debian-compress-packages-with-xz-utils

I have always wondered if Debian and Ubuntu ever considered near the discovery of the XZ backdoor that they would have wanted to compress OpenSSH sshd with the compression package/software XZ Utils on account of it updating?

To activate the backdoor do you just use XZ Utils to inject the infected library into the sshd? Is it as simple as that? Also if systemd has to be started/enabled manually for the backdoor to work

Also I want as simple and clear of an answer on this as possible. I don't want any links to any answers, I just need it to be clear if that's okay.

I don't feel like it's fine to live with poorly paid maintainers adding software packages to critical infrastructure given how used Linux is. That scares me.

how did systemd load liblzma? [closed] https://askubuntu.com/questions/1565076/how-did-systemd-load-liblzma

Genuine question how did systemd load liblzma?

Dual boot issue: Ubuntu 24.04 install stops with "Something went wrong" error https://askubuntu.com/questions/1565075/dual-boot-issue-ubuntu-24-04-install-stops-with-something-went-wrong-error

Unable to install Ubuntu on new NVMe SSD – GRUB install error (grub-efi-amd64-signed failed) on ASUS TUF

I'm trying to install Ubuntu on a new 128GB NVMe SSD in my ASUS TUF laptop, but the installation keeps failing during the final stage with a GRUB error.

I have tried multiple times, completely deleting all partitions on the NVMe drive and reinstalling, but the same error persists.

Error message:

The Ubuntu installer shows:

Something went wrong

ProcessExecutionError:   
Command: install grub-efi-amd64 grub-efi-amd64-signed shim-signed   
Exit code: 100

Unexpected error while running command.  
executing curtin install curthooks step installing system curtin command install.

There is also a black screen which includes error messages.

Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:           return _subp(*args, **kwargs)
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:         File "/snap/ubuntu-desktop-bootstrap/494/
lib/python3.10/site-packages/curtin/util.py", line 175, in _subp
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:           raise ProcessExecutionError(stdout=out,
stderr=err,
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       curtin.util.ProcessExecutionError:
Unexpected error while running command.
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Command: ['unshare', '--fork', '--pid', '--
mount-proc=/target/proc', '--', 'chroot', '/target', 'apt-get', '--quiet', '--assume-yes', '--
option=Dpkg::Options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', '--
download-only', 'efibootmgr', 'grub-efi-amd64', 'grub-efi-amd64-signed', 'shim-signed']
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Exit code: 100
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Reason: -
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Stdout: ''
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Stderr: ''
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Unexpected error while running command.
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Command: ['unshare', '--fork', '--pid', '--
mount-proc=/target/proc', '--', 'chroot', '/target', 'apt-get', '--quiet', '--assume-yes', '--
option=Dpkg::Options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', '--
download-only', 'efibootmgr', 'grub-efi-amd64', 'grub-efi-amd64-signed', 'shim-signed']
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Exit code: 100
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Reason: -
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Stdout: ''
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]:       Stderr: ''
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]: 
Mar 21 16:32:37 ubuntu subiquity_log.4131[9024]: Stderr: ''
Mar 21 16:32:37 ubuntu subiquity_event.4131[4131]: executing curtin install curthooks step
Mar 21 16:32:37 ubuntu subiquity_event.4131[4131]: installing system
Mar 21 16:32:37 ubuntu subiquity_event.4131[4131]:
Mar 21 16:32:37 ubuntu subiquity_event.4131[4131]:   curtin command install  

My setup:

  • Laptop: ASUS TUF Gaming

  • Existing OS: Windows (installed on separate SSD)

  • New drive: 128GB NVMe SSD (dedicated for Ubuntu)

  • Ubuntu version: Latest Ubuntu Desktop ISO

  • Installation type: "Something else" (manual partitioning)

  • Partitions created on NVMe:

  • 512 MB FAT32 → mounted as /boot/efi (EFI System Partition)

  • Remaining space ext4 → mounted as /

  • Bootloader installation device selected: /dev/nvme0n1

  • BIOS SETTINGS:

  • Boot mode: UEFI

  • Secure Boot: Disabled

  • Fast Boot: Disabled

  • Bitlocker encryption: disabled

I have been stuck on this for quite some time.

connectivity check ubuntu issiue [duplicate] https://askubuntu.com/questions/1565073/connectivity-check-ubuntu-issiue

Spotted a strange issue with my Ubuntu 24.04 desktop today and yesterday. I am using Wi-Fi, but the network icon seems to indicate no connectivity, but I can browse,e and it's asking me to sign into the network.

It appears that the connectivity check URL connectivity-check.ubuntu.co,m is not reachable

Wonder if anyone else is experiencing the same?

What is the command line equivalent of gnome-control-center sound in Ubuntu 24.04? https://askubuntu.com/questions/1565069/what-is-the-command-line-equivalent-of-gnome-control-center-sound-in-ubuntu-24-0

When I run the GUI tool gnome-control-center, I can adjust the Output Device between "Headphones - Built in Audio" and "HDMI / Displayport - Built in Audio".

The man page for gnome-control-center states

Note that gnome-control-center is not meant to expose each and every setting that is available. The settings that can be found here represent what is considered useful and commonly needed options. For more exotic or uncommon options, you can look at gnome-tweak-tool or the gsettings commandline utility.

From there, I guessed that maybe gnome-control-settings controls a subset of the full setting exposed by gsettings.

However, when I run the following command, I do not find anything like the above selection:

gsettings list-recursively | grep sound
com.ubuntu.sound allow-amplified-volume false
com.ubuntu.touch.sound incoming-call-sound '/usr/share/sounds/ubuntu/ringtones/Ubuntu.ogg'
com.ubuntu.touch.sound incoming-message-sound '/usr/share/sounds/ubuntu/notifications/Xylo.ogg'
com.ubuntu.touch.sound silent-mode false
org.gnome.Settings last-panel 'sound'
org.gnome.desktop.privacy disable-sound-output false
org.gnome.desktop.sound allow-volume-above-100-percent false
org.gnome.desktop.sound event-sounds true
org.gnome.desktop.sound input-feedback-sounds true
org.gnome.desktop.sound theme-name 'Yaru'

What is the correct command line way to select output device that is equivalent to clicking around in the gnome-control-center sound GUI?

More generally, is there a generic way to find the command line equivalent for the gnome-control-center GUI buttons?


Update: It looks like pactl is close but does not work because gnome-control-center is destroying sinks when they are not used.

# Switch to headphones in the GUI.
$ pactl get-default-sink
alsa_output.pci-0000_00_1f.3.analog-stereo

# Switch to HDMI in the GUI.
$ pactl get-default-sink
alsa_output.pci-0000_00_1f.3.hdmi-stereo

# Attempt to switch back to headphones on the command line
$ pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'
Failure: No such entity
Opening Steam crashes and force restarts my PC https://askubuntu.com/questions/1565064/opening-steam-crashes-and-force-restarts-my-pc

Every time I open Steam from the dock or the icon, my entire PC instantly crashes and restarts. However, opening Steam from terminal seems to work fine. This only started happening a few days ago; I have been using Steam as normal for months before then.

What might be causing this problem? What are some steps for troubleshooting?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.4 LTS
Release:    24.04
Codename:   noble
Why am I constantly asked to be signed into my home wifi? [duplicate] https://askubuntu.com/questions/1565062/why-am-i-constantly-asked-to-be-signed-into-my-home-wifi

I started using Ubuntu on a Dell touchscreen Chromebook nearly for one month. I bought it off of ebay because the seller described it as a windows 11 Dell touchscreen laptop. The seller never mentioned it used to be a Chromebook. When I took it out of its shipping box, I found it was a Chromebook with Windows 11. It ran windows okay, but not great. So, I intended to restore it back to a Chromebook. I found on youtube a method to first install linux and then Chrome OS. After installing Ubuntu I liked it so much, I decided to keep it.

After one month Ubuntu now says I have to sign in to my home wifi, but it also says it's connected to that wifi and works like it is connected. It does also say it is due for a firmware update. Could that be it? No other device in the house has this wifi connectivity issue. So, what is going on and how can I fix it?

(Active Incident) Networking showing as a question mark even though Internet works https://askubuntu.com/questions/1565058/active-incident-networking-showing-as-a-question-mark-even-though-internet-wor

This is an active issue and incident as of March 21, 2026.

I am seeing a question mark on my networking in Desktop and Network Manager but my network is functioning with internet. Sometimes I am told to 'sign in' to my network even though I am already connected. (Or in some cases, people are being asked to sign into wifi when they don't have wifi)

Why is this?

Issues getting wallpaper script to run with (X)Wayland https://askubuntu.com/questions/1564993/issues-getting-wallpaper-script-to-run-with-xwayland

I'm using a script I modified from here to change my wallpaper(and in-terminal colors to match). It works when I run it from the command line, but not when I use crontab trying to make it run automatically.

The script:

#!/bin/bash
[[ "$(uname -s)" = "Darwin" ]] && PATH="/usr/local/bin:${PATH}" && export PATH
command -v gdate >/dev/null 2>&1 && date() { command gdate "${@}"; }

load_prev_weather () {
    w_type=$(sed '1q;d' /tmp/prev_weather.dat)
    t_type=$(sed '2q;d' /tmp/prev_weather.dat)

    rm /tmp/prev_weather.dat
}

get_weather () {
    weatherdata=$(curl -s "wttr.in/?format=j1")

    if jq -e . >/dev/null 2>&1 <<< "$weatherdata"; then
        temp=$(echo "$weatherdata" | jq -r '.data.current_condition[0].temp_F' )
        w_type=$(echo "$weatherdata" | jq -r '.data.current_condition[0].weatherDesc[0].value')
        sunrise=$(echo "$weatherdata" | jq -r '.data.weather[0].astronomy[0].sunrise' | tr -d ":AM[:space:]" | sed 's/^0//')
        sunset=$(echo "$weatherdata" | jq -r '.data.weather[0].astronomy[0].sunset'| tr -d ":PM[:space:]" | sed 's/^0//')
        sunset=$((sunset + 1200))
    else
        echo "wttr.in failure, using previous weather."
        wttr_fail=1
    fi

}

get_time_chunk () {
    time_day=$(date +%-k%M)

    echo "$sunrise ~ $time_day ~ $sunset"

    t_type="Day"

    if (( time_day < sunrise )); then
        t_type="Night"
    elif (( time_day >= sunrise )) && (( time_day < sunrise + 130 )); then
        t_type="Morning"
    elif (( time_day < sunset - 130 )) && (( time_day > sunrise + 130 )); then
        t_type="Day"
    elif (( time_day > sunset - 100 )) && (( time_day < sunset )); then
        t_type="Evening"
    else
        t_type="Night"
    fi
}

get_simple_weather () {
    echo "Temp: $temp"

    if echo "$w_type" | grep -i -q -E "sun|sunny|clear" && (( temp >= 34 )); then
        w_type="Sun"
    elif echo "$w_type" | grep -q -i "snow" || ((temp < 34)); then
        w_type="Snow"
    elif echo "$w_type" | grep -i -q -E "rain|overcast|Light drizzle"; then
        w_type="Rain"
    else
        w_type="Misc"
    fi
}

set_pape () {
    # if ! pape=$(find "$pape_prefix"/"$t_type"/"$w_type"/* "$pape_prefix"/"$t_type"/Misc/* | shuf -n 1); then
    if ! pape=$(find "$pape_prefix"/"$t_type"/"$w_type"/* | shuf -n 1); then
        pape=$(find "$pape_prefix"/"$t_type"/* | shuf -n 1)
    fi

    if [[ $embed -eq 1 ]]; then
        if which osascript; then
            res=$(/usr/sbin/system_profiler SPDisplaysDataType | grep Resolution | awk '{print $2, $4}' | tr " " "x")
        else
        pos_res=$(xrandr | awk '/ connected.*[0-9]+x[0-9]+/ {if ($3 == "primary") {print $4} else {print $3} }' | cut -f 1 -d '+')
            res=$(echo "$pos_res" | head -n 1)
        fi

        echo "Res: $res"
        convert "$pape" -resize "$res" resized_pape.png
        pape="resized_pape.png"

        rm embed_pape_*
        convert <( curl -s "wttr.in/_tqp0.png" ) weather_report.png
        convert "$pape" "weather_report.png" -gravity center -geometry +0+0 -composite "embed_pape.png"
        stamped_pape="embed_pape_$(date +%T).png"
        cp embed_pape.png "$stamped_pape"
        convert <( curl -s "wttr.in/_tqp0.png" ) -resize 175% weather_report.png
        convert "$pape" "weather_report.png" -gravity center -geometry +0+0 -composite "$stamped_pape"
        pape="$stamped_pape"
    fi

    pape=$(realpath $pape)

    if which osascript; then
        rm ~/Pictures/Weather\ Wallpaper/*
        cp "$pape" ~/Pictures/Weather\ Wallpaper/
    else
        case $XDG_CURRENT_DESKTOP in
            *XFCE*)
                export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$UID/bus"
                    xfconf-query -c xfce4-desktop -l | \
                grep --color=never last-image | \
                while read -r path; do xfconf-query --channel xfce4-desktop --property "$path" -s "$pape"; done
                ;;
            *GNOME*)
                export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$UID/bus"
                gsettings set org.gnome.desktop.background picture-uri-dark "file://$pape"
                ;;
            *)
                feh --randomize --bg-center "$pape"
                ;;
        esac

    fi

    if [[ $use_wal -eq 1 ]]; then
        if ! which wal; then
            PATH="$HOME/.local/bin":${PATH} && export PATH
        fi

        if which wal; then
            wal -i "$pape" -n --saturate 1.0
        else
            echo "Trying to use wal but it's not installed"
        fi
    fi

    rm -f weather_report.png
    rm -f resized_pape.png
    #rm "$stamped_pape"
    rm -f /tmp/prev_weather.dat
    echo "$w_type" >> /tmp/prev_weather.dat
    echo "$t_type" >> /tmp/prev_weather.dat
}

exit_help () {
    echo "ERROR: $1"
    echo "USAGE: dynamicWallpaper -p [PAPER_PREFIX]"
    printf "\t-p: The prefix of your wallpaper folder without a trailing /\n"
    printf "\t-e: Embed a little weather preview png in the wallpaper\n"
    printf "\t--wal: Use pywal if it's installed\n"
    exit 1
}

pape_prefix="/home/drift/Pictures/Wallpapers"
use_wal=1
embed=0
wttr_fail=0

while [[ $# -gt 0 ]]; do
    arg="$1"

    case $arg in
        -p)
            pape_prefix="$2"
            shift; shift
            ;;
        --wal)
            use_wal=1
            shift;
            ;;
        -e)
            embed=1
            shift;
            ;;
        *)
            exit_help "Unrecognized argument"
            ;;
    esac
done

if [[ "$pape_prefix" == "0" ]]; then
    exit_help "The paper prefix is unset."
fi

get_weather
echo "Real Weather: $w_type"

if [[ wttr_fail -eq 1 ]]; then
    load_prev_weather
    embed=0
else
    get_time_chunk
    get_simple_weather
fi

echo "Time Type: $t_type, Weather Type: $w_type"

if [[ "$t_type" == "Night" ]] && [[ "$w_type" == "Sun" ]]; then
    w_type="Misc"
fi

set_pape

crontab that's not working:

SHELL=/bin/bash
* * * * * /home/drift/custom-scripts/dynamicWallpaper -p /home/drift/Pictures/Wallpapers --wal
* * * * * /home/drift/custom-scripts/testing-feh
@reboot sleep 30 && /home/drift/custom-scripts/dynamicWallpaper --wal
#Back In Time system entry, this will be edited by the gui:
0 * * * * /usr/bin/nice -n19 /usr/bin/ionice -c2 -n7 /usr/bin/backintime --debug backup-job >/dev/null

(note the newline at the end)

After a lot of troubleshooting, I think this is failing because of one of 3 issues:

  • feh isn't working correctly, which would be a big problem, because ubuntu 25.10 is lacking support to replace it(not supporting X11 anymore). I could switch over to another desktop environment, but not without losing all of the setup I've put into this one (correct me if I'm wrong)

  • cron isn't working correctly, which would also be a big problem. I'm aware I can run it as a systemd service(in theory--more on that later) but the backup app I use, Back in Time, uses cron as well, and I need that to work.

  • I somehow haven't given correct permissions to some file or other?

It might be something else as well, because there's another script that I can't run automatically no matter how hard I try. I'm trying to focus on one problem at a time so I haven't looked into it nearly as much, but it's worth mentioning that this second script also didn't run automatically as a systemd service.

Things I've tried:

  • the entire damn list under Why crontab scripts are not working?, not joking or exaggerating

  • rebuilding the script line by line and seeing where it fails, which is pretty much instantly, and it gives the error:

    (process:65604): dconf-WARNING **: 02:26:01.922: failed to commit changes=
    to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY
    feh ERROR: Can't open X display. It *is* running, yeah?
    

    Then when I provide the display either at the top of the script or in cron itself, it gives me this error instead:

    xrdb: Resource temporarily unavailable
    xrdb: Can't open display ':0'
    

    which is what made me think it's a wayland issue. I messed around with environmental variables a lot before I found the post about X11 not being supported.

  • editing my bashrc with paths (every time something failed to work I removed it again, so it should be back to default state now)

  • went through my entire journalctl from reboot to see if cron runs. Yes it does, and it runs the commands seemingly fine. Notable code:

    Mar 19 02:13:11 DriftPC (cron)[2105]: cron.service: Referenced but unset environment variable evaluates to an empty string: EXTRA_OPTS
    Mar 19 02:13:11 DriftPC cron[2105]: (CRON) INFO (pidfile fd = 3)
    Mar 19 02:13:11 DriftPC cron[2105]: (CRON) INFO (Running @reboot jobs)
    Mar 19 02:13:11 DriftPC CRON[2110]: pam_unix(cron:session): session opened for user drift(uid=1000) by drift(uid=0)
    Mar 19 02:13:11 DriftPC CRON[2111]: pam_unix(cron:session): session opened for user drift(uid=1000) by drift(uid=0)
    Mar 19 02:13:11 DriftPC CRON[2128]: (drift) CMD (dynamicWallpaper --wal)
    Mar 19 02:13:11 DriftPC CRON[2129]: (drift) CMD (/home/drift/custom-scripts/audio-hallelujah.sh)
    Mar 19 02:13:11 DriftPC CRON[2110]: pam_unix(cron:session): session closed for user drift
    

    Note that the cron commands were later edited to include the full path and no periods and a sleep command beforehand, and testing that achieved the same result. Later removed the script audio-hallelujah from crontab to try it as a systemd service instead, which as mentioned also didn't work.

Notably, the full script's --wal does work. Whenever the full script runs through cron, it changes my terminal font colors. (25.10 has Ptyxis as a terminal and I can not find a way to get the background to change too, so I've just accepted it)

Things I don't know how to troubleshoot (if you know please tell me):

  • how can I tell if cron is working correctly for Back in Time?
  • (list may be expanded, my brain is a bit fried at the moment)

Again, it's working fine when I run it as dynamicWallpaper from the terminal. The issue is to make it run automatically at specified intervals.

Bootable usb to format hard drive https://askubuntu.com/questions/1466914/bootable-usb-to-format-hard-drive

Is there any way to boot from USB and completely format the hard drive. The reason I want to do this is because my Ubuntu 22.04 is not able to start anymore.

Screen recorder not working on Ubuntu 22.04 https://askubuntu.com/questions/1410205/screen-recorder-not-working-on-ubuntu-22-04

I just upgraded from 20.04 to 22.04 on a Lenovo IdeaPad 3 15ITL05. I wanted to use the new screen recorder, so I pressed PrtSc, which brought up the normal options. The screenshot function seems to be working fine, but when I choose to record, the symbol at the top of the screen pops up for a split second, then vanishes and nothing happens. Any ideas about how to fix this??

Bluetooth does not work any longer https://askubuntu.com/questions/1375720/bluetooth-does-not-work-any-longer

Bluetooth has worked on my Lenovo W530 equipped with Xubuntu 20.04. When it worked last, lsusb showed the adapter as

Bus 001 Device 005: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]

but now it is missing in the output of lsusb.

$ sudo systemctl status bluetooth
[sudo] Passwort für verwalter:
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:bluetoothd(8)

Nov 15 16:26:49 W530-SSD systemd[1]: Condition check resulted in Bluetooth service being skipped.
$

Looking at /var/log/syslog I found

Nov 15 16:26:49 W530-SSD dbus-daemon[1104]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.39' (uid=110 pid=1406 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo" label="unconfined")
Nov 15 16:26:49 W530-SSD systemd[1]: Condition check resulted in Bluetooth service being skipped.
Nov 15 16:26:49 W530-SSD pulseaudio[1406]: module-rescue-stream is obsolete and should no longer be loaded. Please remove it from your configuration.

Since there is something about pulseaudio in the line above the error message and there is another error message related to it below, they all might be in some relationship.

Where exactly can I find more information on which condition check failed such that Bluetooth was skipped and does not work any longer?

How can I remove the obsolete module-rescue-stream from my configuration?

No media on Usb drive https://askubuntu.com/questions/1323774/no-media-on-usb-drive

I was copying Garuda Linux iso (arch based linux distro) using Ubuntu 20.04 LTS, on my 64Gb pen-drive and the copying stopped at 99%. I tried canceling the operation and copy pasted again, overriding the left over part from previous attempt, operation didn't completed and my pendrive was ejected automatically,i removed the drive and inserted it again and now it shows "No Media" and isn't recognised by ubuntu as well as windows in their respective file managers. It shows as "NAND Drive" in disks in ubuntu and storage management in windows. How can i fix it ? ( it doesn't matter if data on the drive is lost in the process, i need the drive functional again. )

Start iperf3 deamon at startup https://askubuntu.com/questions/1251443/start-iperf3-deamon-at-startup

I want headless server (running Ubuntu Server 19.10) to be listening for iperf3 request constantly, even after reboot. Currently, I can run it on the terminal using the -c and -d flags which runs it as a daemon (which I think just means in the background).

sudo iperf3 -s -D

But I want it start in this mode all the time on boot, so it is always listening in the background.

When I've done this kind of before, it's involved systemd, which I am not familiar with too much. Don't think there was mention of systemd when I read up on iperf3 program, so is it even compatible with it (or is that statement itself nonsensical?)

Only ever used systemd in very limited ways before when been instructed to in tutorials so not up to speed on its scope.

MariaDB: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) https://askubuntu.com/questions/1237797/mariadb-error-2002-hy000-cant-connect-to-local-mysql-server-through-socket

Main purpose

I am trying to install a local version of Prestashop on my ubuntu server 20.04 following those steps.

Issue

I am currently trying to install MariaDB (Step 5 of the guide) and after trying to run the command sudo mysql_secure_installation the terminal returns:

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 

after entering the password:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

What I have tried

I have tried to look around and checking my sockets using sudo find / -type s I found out that there isn't any /var/lib/mysql folders.

the output of sudo find / -type s:

/var/lib/samba/private/msg.sock/995
/var/lib/samba/private/msg.sock/1018
/var/lib/samba/private/msg.sock/1140
/var/lib/samba/private/msg.sock/978
/var/lib/samba/private/msg.sock/774
/var/lib/samba/private/msg.sock/1173
/var/lib/samba/private/msg.sock/1002
/var/lib/samba/private/msg.sock/954
/var/lib/samba/private/msg.sock/1139
/var/lib/samba/private/msg.sock/1211
/var/lib/samba/private/msg.sock/1312
/var/lib/samba/private/msg.sock/1186
/var/lib/samba/private/msg.sock/959
/var/lib/samba/private/msg.sock/937
/var/lib/samba/private/msg.sock/1161
/var/lib/samba/private/msg.sock/1225
/var/lib/samba/private/msg.sock/1009
/var/lib/samba/private/msg.sock/1160
/var/lib/samba/private/msg.sock/19992
/var/lib/samba/private/msg.sock/19790
/var/lib/samba/private/msg.sock/1322
/var/lib/samba/private/msg.sock/1254
/var/lib/samba/private/msg.sock/19755
/var/lib/samba/private/msg.sock/19789
/var/lib/samba/private/msg.sock/20005
/var/lib/samba/private/msg.sock/770
/var/lib/samba/private/msg.sock/26712
/var/lib/samba/private/msg.sock/702
/var/lib/samba/private/msg.sock/1227
/var/lib/samba/private/msg.sock/1200
/var/lib/samba/private/msg.sock/1291
/var/lib/samba/winbindd_privileged/pipe
/var/spool/postfix/private/local
/var/spool/postfix/private/proxymap
/var/spool/postfix/private/trace
/var/spool/postfix/private/error
/var/spool/postfix/private/lmtp
/var/spool/postfix/private/relay
/var/spool/postfix/private/anvil
/var/spool/postfix/private/maildrop
/var/spool/postfix/private/verify
/var/spool/postfix/private/mailman
/var/spool/postfix/private/bounce
/var/spool/postfix/private/smtp
/var/spool/postfix/private/defer
/var/spool/postfix/private/virtual
/var/spool/postfix/private/discard
/var/spool/postfix/private/bsmtp
/var/spool/postfix/private/tlsmgr
/var/spool/postfix/private/rewrite
/var/spool/postfix/private/ifmail
/var/spool/postfix/private/proxywrite
/var/spool/postfix/private/retry
/var/spool/postfix/private/scache
/var/spool/postfix/private/scalemail-backend
/var/spool/postfix/private/uucp
/var/spool/postfix/public/postlog
/var/spool/postfix/public/showq
/var/spool/postfix/public/cleanup
/var/spool/postfix/public/flush
/var/spool/postfix/public/qmgr
/var/spool/postfix/public/pickup
/var/spool/postfix/dev/log
/var/snap/lxd/common/lxd/unix.socket
/run/php/php7.2-fpm.sock
/run/dovecot/master
/run/dovecot/anvil-auth-penalty
/run/dovecot/anvil
/run/dovecot/auth-worker
/run/dovecot/auth-master
/run/dovecot/auth-userdb
/run/dovecot/auth-client
/run/dovecot/auth-login
/run/dovecot/config
/run/dovecot/dict-async
/run/dovecot/dict
/run/dovecot/director-userdb
/run/dovecot/director-admin
/run/dovecot/dns-client
/run/dovecot/doveadm-server
/run/dovecot/imap-hibernate
/run/dovecot/imap-urlauth
/run/dovecot/imap-urlauth-worker
/run/dovecot/imap-master
/run/dovecot/indexer
/run/dovecot/indexer-worker
/run/dovecot/ipc
/run/dovecot/log-errors
/run/dovecot/old-stats
/run/dovecot/replication-notify
/run/dovecot/replicator
/run/dovecot/stats-writer
/run/dovecot/stats-reader
/run/dovecot/token-login/tokenlogin
/run/dovecot/token-login/imap-urlauth
/run/dovecot/login/login
/run/dovecot/login/imap
/run/dovecot/login/ipc-proxy
/run/dovecot/login/pop3
/run/irqbalance/irqbalance767.sock
/run/uuidd/request
/run/snapd-snap.socket
/run/snapd.socket
/run/dbus/system_bus_socket
/run/user/1000/snapd-session-agent.socket
/run/user/1000/pk-debconf-socket
/run/user/1000/gnupg/S.gpg-agent
/run/user/1000/gnupg/S.gpg-agent.ssh
/run/user/1000/gnupg/S.gpg-agent.extra
/run/user/1000/gnupg/S.gpg-agent.browser
/run/user/1000/gnupg/S.dirmngr
/run/user/1000/bus
/run/user/1000/systemd/private
/run/user/1000/systemd/notify
/run/user/1000/inaccessible/sock
/run/samba/winbindd/pipe
/run/samba/nmbd/unexpected
/run/postgresql/.s.PGSQL.5432
/run/lvm/lvmpolld.socket
/run/systemd/journal/io.systemd.journal
/run/systemd/journal/socket
/run/systemd/journal/stdout
/run/systemd/journal/dev-log
/run/systemd/journal/syslog
/run/systemd/userdb/io.systemd.DynamicUser
/run/systemd/private
/run/systemd/notify
/run/systemd/inaccessible/sock
/run/udev/control

Edit

  1. I tried to mkdir /var/lib/mysql and the weirdly the output is:
mkdir: cannot create directory ‘/var/lib/mysql’: File exists
  1. I tried starting MariaDB with systemctl start mariadb and the output is:
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.

I then checked the status of it with systemctl status mariadb.service

● mariadb.service - MariaDB 10.3.22 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; disabled; vendor pres>
     Active: failed (Result: exit-code) since Sun 2020-05-10 12:19:19 UTC; 11s >
       Docs: man:mysqld(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 38200 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /va>
    Process: 38206 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_S>
    Process: 38215 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] &&>
    Process: 38264 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER >
   Main PID: 38264 (code=exited, status=1/FAILURE)

May 10 12:19:18 chale-server systemd[1]: Starting MariaDB 10.3.22 database serv>
May 10 12:19:18 chale-server mysqld[38264]: 2020-05-10 12:19:18 0 [Note] /usr/s>
May 10 12:19:19 chale-server systemd[1]: mariadb.service: Main process exited, >
May 10 12:19:19 chale-server systemd[1]: mariadb.service: Failed with result 'e>
May 10 12:19:19 chale-server systemd[1]: Failed to start MariaDB 10.3.22 databa>

and journalctl -xe output is:

May 10 12:19:19 chale-server systemd[1]: mariadb.service: Main process exited, >
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- An ExecStart= process belonging to unit mariadb.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
May 10 12:19:19 chale-server systemd[1]: mariadb.service: Failed with result 'e>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- The unit mariadb.service has entered the 'failed' state with result 'exit-co>
May 10 12:19:19 chale-server systemd[1]: Failed to start MariaDB 10.3.22 databa>
-- Subject: A start job for unit mariadb.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit mariadb.service has finished with a failure.
-- 
-- The job identifier is 6206 and the job result is failed.
May 10 12:19:19 chale-server polkitd(authority=local)[859]: Unregistered Authen>

Other information

I'm not sure if I should include that I am running the server trough ssh connection using my macbook...

grub bootloader failed to install error when trying to install Ubuntu or Lubuntu - tried to reinstall grub but didn't work https://askubuntu.com/questions/1204041/grub-bootloader-failed-to-install-error-when-trying-to-install-ubuntu-or-lubuntu

I've unsuccessfully been trying to install Ubuntu or Lubuntu for a couple of weekends now. The installation seems to go fine until the end, when I get the "grub bootloader failed to install" error. I dug through the forums and tried all kinds of things, such as re-installing grub, but nothing worked.

Some background info:

  • I did disable securable boot.

  • The laptop formally had Windows 10 on it.

  • I changed the hard disk (since I was planning to upgrade anyway), but this didn't make a difference.

  • Here is the boot info https://paste.ubuntu.com/p/dt2RZgtT5Y/ Unfortunately, this doesn't tell me very much, so I hope someone else can tell me what's wrong!

How to fix the following logcat error message in android studio running on linux https://askubuntu.com/questions/1140147/how-to-fix-the-following-logcat-error-message-in-android-studio-running-on-linux

Whenever i try and run any of my applications via an emulator on android studio i get the following error message in the logcat.

Emulator: Warning: QStandardPaths: XDG_RUNTIME_DIR points to non- 
existing path '/run/user/1000/snap.android-studio', please create it 
with 0700 permissions. ((null):0, (null))

I should mention that at times my applications run perfectly okay but that at other times they do not and i also get he following error message

Emulator: pc_memory_init: above 4g size: 40000000
Will my device work with Ubuntu? https://askubuntu.com/questions/986878/will-my-device-work-with-ubuntu

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?

clean, autoclean, and autoremove --- combining them is a good step? https://askubuntu.com/questions/984797/clean-autoclean-and-autoremove-combining-them-is-a-good-step

Will it be logical by means of Debian oriented logic to unite the three commands apt-get clean and apt-get autoclean, and apt-get autoremove into one single command that does all of them?

System freeze after suspend https://askubuntu.com/questions/882843/system-freeze-after-suspend

Since I installed Ubuntu 16.04 my laptop (HP Probook 450 G2) has issues waking up from suspend. Rarely it manages to properly wake up from suspend, but mostly the screen either stays black or it turns on, and completely freezes after 2 or 3 seconds, followed by a bit louder fan activity in both cases. I cannot switch to a tty shell, or do anything else apart from killing the power by holding the power button.

I tried following different solutions such as disabling USB Legacy, adding acpi_backlight=vendor acpi_osi='!Windows 2013' acpi_osi='!Windows 2012' to GRUB_CMDLINE_LINUX_DEFAULT, but nothing worked.

I switched to Linux Mint yesterday just to test if I have an issue there, but it still persists. Here is the output of /var/log/kern.log which shows the last messages from my previous session.

Feb 13 09:51:55 PC kernel: [  913.345833] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
Feb 13 09:52:22 PC NetworkManager[1004]: <info>  [1486975942.4773] manager: sleep requested (sleeping: no  enabled: yes)
Feb 13 09:52:22 PC NetworkManager[1004]: <info>  [1486975942.4774] manager: sleeping...
Feb 13 09:52:22 PC NetworkManager[1004]: <info>  [1486975942.4774] device (wlo1): state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Feb 13 09:52:22 PC NetworkManager[1004]: <info>  [1486975942.4969] dhcp4 (wlo1): canceled DHCP transaction, DHCP client pid 1440
Feb 13 09:52:22 PC NetworkManager[1004]: <info>  [1486975942.4970] dhcp4 (wlo1): state changed bound -> done
Feb 13 09:52:22 PC kernel: [  940.019586] wlo1: deauthenticating from b4:75:0e:ce:22:bb by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 13 09:52:22 PC NetworkManager[1004]: <info>  [1486975942.5125] dns-mgr: Writing DNS information to /sbin/resolvconf
Feb 13 09:52:22 PC kernel: [  940.034017] cfg80211: World regulatory domain updated:
Feb 13 09:52:22 PC kernel: [  940.034019] cfg80211:  DFS Master region: unset
Feb 13 09:52:22 PC kernel: [  940.034020] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Feb 13 09:52:22 PC kernel: [  940.034022] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 PC kernel: [  940.034024] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 PC kernel: [  940.034025] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 PC kernel: [  940.034026] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 PC kernel: [  940.034027] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Feb 13 09:52:22 PC kernel: [  940.034028] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
Feb 13 09:52:22 PC kernel: [  940.034029] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
Feb 13 09:52:22 PC kernel: [  940.034030] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
Feb 13 09:52:22 PC NetworkManager[1004]: <info>  [1486975942.5423] manager: NetworkManager state is now ASLEEP
Feb 13 09:52:26 PC kernel: [  943.880782] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
Feb 13 09:52:27 PC kernel: [  944.885059] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment

Also

uname -a
Linux PC 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Any info would be helpful, thank you!

Package requirements (glib-2.0 >= 2.37.3 ...-snip-...) were not met https://askubuntu.com/questions/855974/package-requirements-glib-2-0-2-37-3-snip-were-not-met

I'm attempting to compile the Gnome System Monitor and I'm running into an error when executing ./configure. Not sure what packages are required here as I've attempted to apt-get libgtop-2.0 and librsvg-2.0.

configure: error: Package requirements (glib-2.0 >= 2.37.3
  libgtop-2.0 >= 2.28.2
  gtk+-3.0 >= 3.22.0
  gtkmm-3.0 >= 3.3.18
  libxml-2.0 >= 2.0
  librsvg-2.0 >= 2.35
  glibmm-2.4 >= 2.46
  giomm-2.4 >= 2.46
  gmodule-2.0
) were not met:

No package 'libgtop-2.0' found
Requested 'gtk+-3.0 >= 3.22.0' but version of GTK+ is 3.18.9
No package 'librsvg-2.0' found
Boot Problem [No bootable devices found] https://askubuntu.com/questions/702090/boot-problem-no-bootable-devices-found

I have a laptop from dell and recently I reinstalled ubuntu 14.04 and when I turn the laptop on it says "No bootable devices found". I installed it through UEFI DVD.
The boot mode is set to: UEFI; Secure Boot: Off picture1

When I try to open it trough Internal HDD, it says "Selected boot device failed. Press any key to reboot the system." Guys, can you help me ?

Boot Problem: "Boot Loader; /casper/vmlinuz: read error @ 0" https://askubuntu.com/questions/631913/boot-problem-boot-loader-casper-vmlinuz-read-error-0

I have a SanDisk - Cruzer 16GB USB 2.0 Flash Drive - Black as my usb, I used the link http://www.ubuntu.com/download/desktop to download Ubuntu 15.04 64-Bit and I used http://www.linuxliveusb.com/en/download to make my usb live. After I finished making the live usb I booted it up snd it showed the message:

Boot Loader; /casper/vmlinuz: read error @ 0

can anyone help me I have been trying to find a way to fix it for about a month so please help me.

Help running FightCade application? https://askubuntu.com/questions/597385/help-running-fightcade-application

I'm new to Ubuntu and trying to get the application FightCade (fightcade.com) up and running. I followed the directions in the readme file, but have run up against a wall:

I used the terminal to download wine and all the other things, and the readme suggests I should just be able to type ./fightcade to run the application. But I just get the message No such file or directory.

How should I proceed?

nm-applet gives errors https://askubuntu.com/questions/596994/nm-applet-gives-errors

nm-applet always gives me a hard time when connecting to wireless. I often have to restart it and make several attempts till it connects to a network. Sometimes even restarting the computer doesn't help. This time I ran it from CLI and I got this:

** (nm-applet:2950): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-t6ky00XpYq: Connection refused

    ** (nm-applet:2950): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files

    (nm-applet:2950): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files

    (nm-applet:2950): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files

Here is the output of lspci -knn | grep Net -A2

02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 93)
    Subsystem: Intel Corporation Device [8086:5070]
    Kernel driver in use: iwlwifi
Unable to connect to Remote Desktop? https://askubuntu.com/questions/592582/unable-to-connect-to-remote-desktop

am trying to connect to a remote machine (Windows 7 OS) using Remote Desktop Viewer.

The protocol I'm using is RDP and Host is local IP of the machine I am trying to connect to. On Windows I have allowed people to remotely connect to that machine. What protocol should I use ? What other settings do I have to do?
My OS is Ubuntu (12.04)