Latest Ubuntu related questions

Score: 1
questionto42standswithUkraine avatar
Right After piping to "head"/"tail": "curl: (23) Failure writing output to destination"

When I curled a too long API call and wanted to show only the first 30 lines in the console with curl my_api_call|head -30, I ran into:

 24 49931   24 12089    0     0    98k      0 --:--:-- --:--:-- --:--:--   99k
curl: (23) Failure writing output to destination

This is surely the same thing going on as in curl: (23) Failure writing output to destination, but there, it fails with the download. Here, i ...

Score: 2
Joshua Besneatte avatar
Shutdown Computer if UPS Battery is Low 22.04
br flag

I have a UPS connected via USB and under Settings->Power I am able to see the UPS battery percentage, however there is no option for telling the computer what action to take if the UPS battery gets low.

On earlier versions, I am currently using 22.04, I was able to set an option to shut the computer down if battery became critical. However now the option no longer exists. Is there something I  ...

Score: 2
HFR1994 avatar
Fix Grub2 boot with encrypted root LUKS partition
fi flag

I currently have 3 different boot partitions:

  1. Windows 11 on nvme0n1
  2. Fedora 35 on nvme1n1
  3. Ubuntu 22.04 on sdc with an encrypted root partition on sdc4

When I initially configure the system the Windows partition and the Ubuntu partition dual boot on the the same /boot (nvme0n1p1). Due to a system error I had to reinstall Windows which made my Ubuntu partition unbootable, using the Boot Repair I was abl ...

Score: 2
Rahat Bin Taleb avatar
Two startup daemon processes working together in wsl2?
ye flag

enter image description here

We normally know that WSL2 normally do not have systemd it generally starts on init daemon! But recently from year 2022 we can also use systemd by enabling the sysboot to systemd in wsl.config. So I did that and after starting dbus service and rebooting systemd was enabled! But when I now run top command I see both init and systemd ! So I am having conufsions because I was taught pid 1 is the startup  ...

Score: 0
Broadsworde avatar
Where to store user-specific (not system-wide or theme-specific) custom icons?
jp flag

Based on information from similar questions, I saved my custom icons in ~/.local/share/icons, and my .desktop entry was able to find them without providing any path.

However, when I updated my rsync backup to include this new directory, the backup included a whole bunch of snap-store icons because of a pre-existing symlink, e.g.
[my backup target directory!]/snap/snap-store/638/.local/share/icons/hicolo ...

Score: 2
Caius avatar
Thunderbird copy sent mail to selected folder
cn flag

I am new on Ubuntu and on Thunderbird to which I moved. Previously, I used Pegasus under Windows. With Pegasus, when sending an email, I could direct the email to a folder/sub-folder of my choice.

I tried several options in Thunderbird → AccountCopies & Folders, but was not successful.

When sending an email with Thunderbird, how can I copy the email to a folder/sub-folder of my choice?

 ...
Score: 1
147pm avatar
Ubuntu 22.10 keyboard layout popup isn't my Logi keyboard
tk flag

I have a Logitech Logi ERGO K860 keyboard and the Ubuntu 22.10 keyboard popup depicts an upsidedown-L return key and the middle A,S,D... row with twelve keys. My Logi, however, has just eleven on the A,S,D... row with the QERTY... upper row having thirteen keys including at the far right the \ key. Is there any way to get a keyboard layout popup that corresponds to my Logi layout?

Score: 0
Raymond velden avatar
Is it possible to downgrade an LUX encrypted Ubuntu 22.10 to 22.04 LTS
sg flag

I want to go back to LTS version of Ubuntu for display driver an personal reasons on my lenovo thinkpad that has an LUX encrypted HDD. However. Booting with an Ubuntu installation USB. I can't select or see the current installed version.

Do I need to wipe and redo my entire installation somehow?

Score: 2
Ivan avatar
Ubuntu 22.04 Desktop LTS unattended installation
jo flag

I am trying to search around for the Ubuntu 22.04 Desktop autoinstall (like the Windows ISO image. We could deploy on the Windows ISO image, and make it install automatically with our customization once we boot up.), but I only get the autoinstall for Ubuntu server without a graphical user interface.

  1. How could we automate Ubuntu Desktop 22.04 installation without any user profile preset (I believ ...

Score: 0
BorHacker avatar
How to automate a Wake On Lan command in GRUB2 boot
al flag

I have 3 computers in my home installation, one (call it FREEBNT) is my server, with Ubuntu server 22.04.1 LTS, acting mainly as a NAS server. Other (call it XAUDIOSERVER) is a Ubuntu Desktop with audio functionality. And the third one (call it TACENS10) is my main PC, where I work, with Windows 10 installed.

All of them are available to Wake up via WOL, and I usually wake them on all because I use all of ...

Score: 0
Jeremy avatar
How do I set up a battery pack to be treated like a laptop battery on a desktop motherboard?
ca flag

As I understand it there is a serial interface in a laptop battery which communicates the battery state at intervals to the laptop's OS. I am setting up a desktop system with what amounts to a laptop-like power system, with a 3s lithium battery pack that will power the PC via a dc-dc boost and a 12V-input mini ATX power module. I would like for the PC to think that it is a laptop, and have all the lapto ...

Score: 0
Frusty dan avatar
How do I use my usb drive as a portable system?
tz flag

When you boot an usb with any Linux distro in it there are two options either to try it or install that distribution in your system.

I was wondering if I just try the distro without installing it and do whatever I want like log into my account and install basic code editor is it possible to have what I done saved on my drive, because when I reboot into the drive and try the distro its all reset a ...

Score: 2
Atul avatar
Syntax error in While loop
pn flag

Here is my code -

#!/bin/bash
find FileFrom -type f -name "*" > prodRefresh.txt
filename="prodRefresh.txt"
while read -r line; do
    name=$line
    echo "Name read from file - $name"
done < $filename

while trying to execute via command prompt, giving below error -

copyAndCreate.sh: line 7: syntax error near unexpected token `done'
copyAndCreate.sh: line 7: `done < $filename'

Please help m ...

Score: 1
Tim Woohoo avatar
Ubuntu 22.04.1 wake up immediatly after suspend
bm flag

My system is Ubuntu 22.04.1 with Plasma desktop. Every time I click suspend/sleep button, the system goes to sleep and then wake up immediately. I could not find the cause.

Score: 1
Voley Betz avatar
systemd service won't boot at start
mn flag

I'm running a service on a EC2 instance that should boot at start and whenever the script associated fails.

So I wrote the service like this:

[Unit]
Description=Test

[Service]
User=ubuntu
Type=simple
ExecStart=/usr/bin/ruby /home/ubuntu/main/test.rb
Restart=on-failure
RestartSec=1s

[Install]
WantedBy=multi-user.target

But when I kill the process or reboot the server, the service won't start. The servic ...

Score: 0
The Legendary Gold Solo Cup avatar
Keybinds are completely messed up
bm flag

As I'm typing on this laptop, I noticed some weird keybinds. I went into settings, and noticed that both Left Shift and the Fn key act as Left Control. Meanwhile, Left Control is bound to absolutely nothing. This means that there is nothing bound to Left Shift or the Fn key.

Nothing in the settings shows that any keybinds have been made, and I ran xmodmap -pke to attempt to look for anything off. I found ...

Score: 0
Shubham Saxena avatar
How does Ubuntu handle the jiffy wraparound issue?
mv flag

The 64bits jiffies returned by my embedded linux system after it booted up. After 5 minutes, the return value will loop around to zero and continue to increase. will be 0xffff ffff ffff b22b.

# include <sys/times.h>
long long unsigned int tmpJiffies = times(NULL);
printf("the tmpJiffies is 0x%llx.\n", tmpJiffies);

I discovered the following code in the Linux kernel's includelinuxjiffies.h file: Tha ...

Score: 0
Kaushik Paul avatar
Ubuntu gets corrupted after installing it in Desktop
gy flag

I have been using ubuntu desktop version for more than six years now. However, recently (for about nine months) I’m facing an issue. The explanation of the issue is below,

Nine months ago, ubuntu os from my desktop got corrupted automatically, I don’t know why and how. Then, when I booted into ubuntu it showed me busy box error, for which I took help from ubuntu help community posts to get ri ...

Score: 0
Leuel Asfaw avatar
Why is apache2 still in my ubuntu after I have deleted?
fk flag

So, I wanted to learn how to use the Nginx web server, and I wanted to try it out in my local machine, but I had apache2 installed in my laptop (ubuntu 20.04 LTS), so I tried to remove it using the following command:

  1. I have stop apache2 from running using: sudo service apache2 stop
  2. Then I removed and cleaned up all the apache2 packages with: sudo apt-get purge apache2 apache2-utils apache2-bin apache2. ...
Score: 6
Atul avatar
Syntax error: "(" unexpected
pn flag

While executing the below command directly over the terminal, its working fine:

comm -2 -3 <(sort FileOne.txt) <(sort FileTwo.txt) > myFile.txt

But while trying to execute it via .sh file, its giving error: Syntax error: "(" unexpected

Here is my code:

#!/bin/bash
##this will return the unique lines from the first file.
comm -2 -3 <(sort FileOne.txt) <(sort FileTwo.txt) > myFile.tx ...
Score: 0
RobinHoodRKA avatar
Installing Ubuntu by manual partitioning and completely removing windows 7
ai flag

I want to switch from windows 7 to Ubuntu.My disk is on mbr and I want to do manual partitioning, so while manual partitioning I have system reserved of 350mb of windows and C drive where windows is installed can I delete all partitions including that system reserved and create new partitions for Ubuntu as follows:

  • /boot - 10gb
  • /swap - 10gb
  • /root - 450gb
  • /home - 530gb

Am I right, can I create more ...

Score: 0
firstname gklsodascb avatar
Can't launch apps from sidebar icons or right click menu after upgrade to Ubuntu 22.04.1 LTS
de flag

I upgraded my ubuntu install to 22.04.1 LTS a while ago. I think my upgrade was somewhat botched and I've noticed a few issues.

Mainly, there are problems with launching apps through the Desktop GUI. This is hard to debug because the GUI is not "transparent." Meaning, I don't know how to gather the associated logs and therefore can't meaningfully troubleshoot the problem.

Here's my best description  ...

Score: 0
VanPiro avatar
Connect to my home network via VPN from remote
in flag

I would like to connect my Ubuntu 22.04 laptop to the Windows 10 machine I have at home even when I am travelling abroad. All I want is to access the internet like if I was at home, no need to access the files on the Win machine.

Is there a simple enough guide I can look at or someone able to explain this to me step-by-step?

Thank you in advance!

Score: 1
Flame_Phoenix avatar
Fix error: Cannot autolaunch D-Bus without X11 $DISPLAY on script to change wallpaper using systemd
us flag

Background

I have created a script that changes my wallpaper periodically. The script works perfectly fine when I run it from bash, but having to manually run it on every startup is becoming annoying, so I decided I would automate the process using systemd.

Scripts

Following is the script that changes the wallpaper:

targetDir="/home/mypc/Pictures/Wallpapers"


function get_next_photo() {
    # Return ...
Score: 1
Amey patil avatar
how to fix unmet dependencies
aq flag

04 I tried to install obs-studio but it doesnt work I updated node before this which also didnt work I think that is what causes the 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:
 nodejs : Depends: libnode72 (= 12.22.5~dfsg-5ubun ...
Score: 0
Mohsin Shekh avatar
Install Ubuntu on my Lenovo All In One
cd flag

I want to install Ubuntu 22.04 or 20.04 in my Lenovo All In One 27 Inch Desktop, Model: AIO 5-27IOB6.

Score: 1
barrel neftin avatar
I tried to install Kubuntu 22.10 from a USB on b550 and Creative AE-7 sound card but Kubuntu didn't start
tj flag

I tried Kubuntu 22.10. When the Creative AE-7 sound card was installed the Linux installation didn't start. I uninstalled the sound card and wow! Linux was installing and it simply worked. I installed the Creative AE-7 sound card on Intel p8z77v Core i5 3550, inserted a USB flash drive with Kubuntu and the Kubuntu installation didn't start.

Hardware error:

cpu soft lockup 
cpu hard lockup

enter image description here

enter image description here

Score: 0
Lorenzo M. avatar
System not booting after Ubuntu install
in flag

I just tried to install Ubuntu Server 22.04 on my new build workstation, but after a presumably successful install in the first few seconds of booting the system just stops and does not do anything.

I reinstalled the system and find the same behavior. With the same USB stick and the exact same image I had no problem installing and running the OS on other systems.

Specs:

  • Threadripper 5975WX
  • ASUS Pr ...
Score: 2
Håkon Hægland avatar
Not able to type Hangul letters
tf flag

I would like to occasionally type some hangul letters by pressing SUPER+SPACE and select "Korean" input. But I am not able to make it work yet on Ubuntu 22.04. When I press SUPER+SPACE I can choose between korean and norwegian:

enter image description here

if I choose "ko" (korean) and start typing in e.g. gedit I only get american characters. How can I get the hangul letters?

The "Keyboard" settings page shows the following: ...

Score: 0
tbhaxor avatar
Primary screen flickering periodically
ve flag

This is a weird bug I have been running into lately. When I connect the secondary monitor via HDMI cable, then after a period of some time the primary display flicker for a shorter period of time ~500ms and then get backs to the normal.

This interval is not exact as it changes after reboot <- this is the weird part

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22. ...

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.