Latest Ubuntu related questions

Score: 1
Chuck avatar
list items correctly in bash with a space in their name
bn flag

I have for example following Files:

test1.txt
test2.txt
test space.txt

I use the following command:

output=$(ls -l --time-style=long-iso | awk '{print $8, $6}')

And I get following output:

test1.txt 
test2.txt 
test YYYY-MM-DD

because of the space in its name, I get the wrong output.

Is it possible to get output like this?

"text1.txt" 
"text2.txt" 
"text space.txt"
Score: 1
user892837 avatar
High CPU usage (gnome shell, firefox)
cn flag

This is a 4 cores 8 threads cpu machine which i monitor with Htop, Ubuntu 22.04, updated. Firefox is opened with a LAARRGGE number of windows and tabs (do not ask how many); Thunderbird is running, libreoffice, and a few other programs, all showing below 2% in htop (most below 0.2%, in fact).

with Htop gnome-shell showing typically 45% cpu while overall load is 8-9% and other top processes show a ...

Score: 0
Jin K avatar
Can't install software-properties-common on Ubuntu 20.04 docker image
ki flag

Trying to do a docker build using Dockerfile to install software-properties-common package on hashicorp/tfc-agent:latest docker image which is based on Ubuntu 20.04.

When I attempt to run docker build, I get the following error message.

I have tried with apt-get install -f, apt-get install --fix-broken, and also apt-get --reinstall install systemd.timesyncd. None of these have worked.

I would really  ...

Score: 0
Kevin avatar
Netplan 2 Interfaces, same IP Load Balance?
cn flag

Is there a way to load balance with netplan between 2 interfaces that have the same IPs in my machine?

My current configuration is like this:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      optional: true
      dhcp4: false
      dhcp6: false
      addresses:
        - 192.168.3.9/24
        - "2601:19b:4700:17c::1002/128"
      nameservers:
        addresses:
          - 1.1 ...
Score: 0
Nexgn Technologies avatar
disable swap partitions completely
cu flag

How to disable all swap partitions completely. I have applied the following tasks on the server.

  1. sudo swapoff -a
  2. deleted line (/swap.img none swap sw 0 0) from /etc/fstab.

I still can see.

Server2-2@server2-2:~$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                               13G  2.7M   13G   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv   ...
Score: 0
user_767_ avatar
PCI wifi card waking pc from sleep
at flag

maybe some of you saw my message from yesterday about my pc not wanting to go to sleep. So I found the issue, but idk how to solve it. Here's the problem : my pc wont go to sleep mode because of my PCI(idk if it's pcie but whatever) wifi card. Whenever I unplug my wifi card, my pc goes to sleep, but when it's plugged in, my pc turn on sleep mode for a sec and turn on again. I tried disabling every param ...

Score: 0
mushroomhunter avatar
Bootup into white abyss after loading screen
in flag

my machine started acting up last night. there was an update at some point which may or may not have something to do with it...

I tried to open settings & was met with a glitched panel. mainly white with a little colour if I remember correctly. diagonal lines reminiscent of fractured glass...

I rebooted in an attempt to fix the problem. the machine instead defied me. booted up into the white aby ...

Score: 0
keldorn avatar
Secure Boot with Ubuntu
gb flag

I would like to ask about Secure Boot feature in UEFI especially in Ubuntu context.

I know that Ubuntu official ISO images are signed with Secure Boot signature.

Let's assume we have PC with Secure boot enabled. My questions are as follows:

  1. Will Secure Boot or Ubuntu Installer notice and terminate if I change a random single bit in Iso Image, burn such image to DVD and then try to boot?

  2. Same ques ...

Score: 0
void master avatar
Customizing Ubuntu 22.04 installer
ge flag

INSTALLATION OS PIC

I just finished remastering Ubuntu 22.04. Inside the customized OS, I installed a new Plymouth, changed the kernel, and changed the desktop environment from GNOME to KDE. I also modified the Ubiquity slideshow. Why does the installer show up named Kubuntu 22.04 and how to modify it?

Score: 0
Nautilus avatar
Error on installing OpenStack
ci flag

I'm going to install new OpenStack infrastructure as below. The instructions are located at https://ubuntu.com/openstack/install#single-multi-large-cluster . 3 HP server DL380 G7, each one has 2 CPU and 128 GB RAM, Ubuntu 22.04 with the latest updates. For controller I have installed the requirements and do the 2 steps as shown below.

sudo snap install openstack --channel 2023.1
sunbeam prepare-nod ...
Score: 0
Caesar01 avatar
Ubuntu 22.04 shutdown freeze
mn flag

A fey days ago, I found a problem with my laptop. When I tried to shutdown my laptop, the shutdown screen appears. A few seconds later, this screen is frozen and nothing happens.

I tried to shutdown the laptop and wait for around an hour, but unfortunately this problem is still here. I also tried the swap off solution, but here again it failed to resolve the problem. I tried a clean os reinstall  ...

Score: 2
pauls33 avatar
Remove "$vt_handoff" from GRUB menu?
st flag

Hey I am very unexperienced so I hope this is not a question that I could have been answering myself by further research.

I forgot the password to my own machine and found out that there's a workaround by entering the Grub-menu and adding init=/bin/bash at the end of the "linux-line", and then booting with F10. I have the problem, that my machine freezes after that showing Loading initial ramdisk ...

Score: 0
jave.web avatar
Disable autocheck of keyring's unlock "Automatically unlock this keyring whenever I'm logged in"
cn flag

Everytime I am unlocking a keyring (seahorse), there is a checkbox
"Automatically unlock this keyring whenever I'm logged in".

Now the issue is that I most certainly don't want this to be autochecked or pre-checked.

I am looking for a way to either:

  1. disable the auto check (so the checkbox is NOT checked by default)
  2. remove this option to automatically unlock completely

I only found answers/questions rela ...

Score: 0
Why does xrdp service fail to start?
kr flag

xrdp service fails to start:

john@Demonstrator:~$ systemctl status xrdp.service

× xrdp.service - xrdp daemon Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: > Active: failed (Result: exit-code) since Tue 2023-08-15 08:44:54 BST; 28s > Docs: man:xrdp(8) man:xrdp.ini(5) Process: 186632 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited> Process: 186640 ExecSt ...

Score: 0
Saeed Neamati avatar
How to know a JSON array is an empty array in bash?
cn flag

I use this code to consume GitHub API and automate some tasks:

curl --silent -H 'Authorization: token github_access_token' 'https://api.github.com/orgs/OrganizationName/repos?per_page=100'

Sometimes I get this as the response:

[

]

I want to know if the response is an empty array or not.

I thought of using jq like echo $Response | jq -r ".[]" but I don't know how to continue from there.

How can I fi ...

Score: 0
lame name avatar
Can't Install or remove Bluetooth Ubuntu 22.04
bo flag

Upon using this

sudo apt-get purge blueman bluez-utils bluez bluetooth && sudo apt-get autoremove && sudo apt-get autoclean

or

sudo apt -y install bluetooth

I get this error Terminal screenshot error

Score: 1
Karim avatar
"Gave up waiting for root file system device" after an upgrade to Ubuntu 22
cn flag

This issue started when I upgraded to Ubuntu version 22. I've followed various methods and solutions given on this platform, including adjusting the BIOS settings, but the issue persists. Furthermore, it alerts;

After some boot messages have appeared, the process stops at this point:

Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
  - Check rootdelay= (di ...
Score: 1
NansOnUbuntu avatar
Bluetooth suddenly stopped to work with 22.04 on Dell XPS 13 9310
na flag

I've been using Ubuntu for more than one year without any problem. But now I'm facing two !

I was able to normally turn ON/OFF my bluetooth and to connect my computer to any device. But now, if the bluetooth parameter is still available, there is no way I can turn it ON. The switcher switcher, but does not turn orange and the bluetooth stays OFF.

I tried to boot on a flas drive with Ubuntu on it, the pr ...

Score: 0
lame name avatar
Can't install or remove Bluetooth on Ubuntu 22.04
bo flag

I get this win I try to remove or install bluetooth using these commands:

sudo apt-get purge blueman bluez-utils bluez bluetooth && sudo apt-get autoremove && sudo apt-get autoclean
sudo apt -y install bluetooth

I get this message:

Removing bluetooth (5.64-0ubuntu1) ...
Removing bluez (5.64-0ubuntu1) ...
Failed to stop bluetooth.service: Unit bluetooth.service not loaded. invoke- ...
Score: 0
Matteo Marin avatar
Huawei Matebook Xpro 2021 Fingerprint issue
gr flag

I was wondering does anyone could use the fingerprint on their Huawei laptop? I tried in different ways but the fingerprint never display in the user setting. Any help will be much appreciated. Thanks in Advance

Score: 0
Sudarshan avatar
How to remove Unity from Ubuntu?
mk flag

I recently installed Ubuntu unity flavor using a partition. I now want to remove the partition and give all the space back to regular Ubuntu. I am fine if Unity is completely erased. I do not have any files stored on the partition. Is there any command that will help me to remove Unity, without damaging regular Ubuntu?

Score: 2
mario_user28404 avatar
jammy does not reproduce 2.7K and beyond
br flag

I have a Dell Inspiron 5559 laptop with

  • 8GB of memory
  • Intel® Core™ i5-6200U CPU @ 2.30GHz × 4
  • HAINAN graphics (, LLVM 15.0.7, DRM 2.50, 6.2.0-26-generic) / Mesa Intel ® HD Graphics 520 (SKL GT2) Wayland graphics system.

The machine is dual booted with Windows 10.

I tried playing GoPro11 clips at 5.3K, 4K, 2.7K, and 1080p. Both using "Video" and using VLC, only 1080p is reproduced — in all other ...

Score: 0
Remmina connect to another Ubuntu PC fails with "Could not find address for the RDP Server"
kr flag

Remmina connect from Ubuntu 22.04 Desktop PC (i.e. Client) to another Ubuntu 22.04 Desktop PC (i.e. Server) on LAN fails with "Could not find address for the RDP Server". The Server in the Remote Connection Profile is "ms-rd://Demonstrator.local". My router shows the Server is named DEMONSTRATOR with a static NAT address of 192.168.1.13, DEMONSTRATOR being 'defined' by the router even though /etc/hosts  ...

Score: 0
Robert Aslin avatar
No Audio after Booting into Windows or Switching Desktops
at flag

I'm running an Asus Zenbook 14, that I use to dual-boot between Windows and Ubuntu Unity (though since I like trying out other desktops I tend to also have a revolving door of other ones I like to try like KDE, XFCE, and LXDE)

My issue is, whenever I either boot into Windows and then back into Ubuntu, or even when I switch desktops, either away from or back into Unity, I find that my audio stops  ...

Score: 1
Mark D avatar
encfs decrypting usb folder needs root permissions
cn flag

I have a usb drive with an encfs encrypted folder. I usually decrypt this with

encfs /media/user/DBx/enc /media/user/DBx/dec

When I try this with a new Ubuntu install using 22.04.3, I get the error:

fusermount: mounting over filesystem type 0x7366746e is forbidden fuse failed. Common problems:
- fuse kernel module not installed (modprobe fuse)
- invalid options -- see usage message

When I run:

Score: 0
Finding and Reducing Journal Disk Usage
cn flag

In Ubuntu 22.04.3 LTS, I ran Disk Usage Analyzer on the root directory. It indicated that /var/log/journal occupied 3.8GB. In response, I ran sudo gedit /etc/systemd/journald.conf and changed two lines: 25 SystemMaxUse=100M and 33 MaxRetentionSec=1week. Then I ran sudo systemctl restart systemd-journald. I rebooted and refreshed Disk Usage Analyzer. The situation remained the same. It appeared that my ...

Score: -4
user1784265 avatar
I am mulibooting windows xp-11 and I still have space to get linux installed. Once all are set how are the steps to boot windows first
tl flag

I have Windows XP - 11 after installing them, what is the best way to install linux without wiping the windows bootloader cause if I'm low, as I add linux the entire installation process wipes out the windows OS. What do you recommend a larger HDD to install linux as the eighth OS? Does it require more space to add linux aside from the two drives I already have? Any idea's? Thanks

Score: 0
Xandor19 avatar
Manually search and install WiFi driver
eg flag

I have a MSI Prestige 14 in which I'm installing Ubuntu 22.04. However, both the live session and the installed OS seem to not find my WiFi card and only Ethernet conection options are aviable. The question is so because I recieved the laptop with openSUSE Tumbleweed and WiFi was working with no issues. So I guess is about the driver not being present in the kernel? Tumbleweed kernel version was 6.3.9 a ...

Score: 1
bafew80778 avatar
IPFS Error: pin: block was not found locally (offline): ipld: could not find bafybeiciow
kp flag

I have ipfs daemon running (confirmed via sudo systemctl status ipfs). But when I ran ipfs pin add bafybeig6qkww7gaksmddvmn3n4nrbsnb2gqwjrhluacvc73yytiblf3wdy I got the below...

ubuntu@ip-172-31-35-57:~$ ipfs pin add bafybeig6qkww7gaksmddvmn3n4nrbsnb2gqwjrhluacvc73yytiblf3wdy
Error: pin: block was not found locally (offline): ipld: could not find bafybeig6qkww7gaksmddvmn3n4nrbsnb2gqwjrhluacvc73yytiblf3 ...
Score: 1
Socrates avatar
Allow user to run specific commands
cn flag

How do I enable a user to run specific sudo commands without the need to type a password?

I already tried the following:

I have a script /usr/local/bin/perform-update with the rights -rwxr-xr-x 1 root root:

#!/bin/bash

sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
sudo snap refresh

I also have a user john that is part of sudoers. He can execute the command by typing

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.