Latest Ubuntu related questions

Score: 1
Armen Grigoryan avatar
Ubuntu 22.10 connected to bluetooth keyboard but not working
cn flag

My system is Ubuntu 22.10, I am keeping my system up to date, almost every day I am upgrading my system, my laptop is a Lenovo ThinkPad t470, The problem is that I can't connect the wireless keyboard to my laptop via Bluetooth, the keyboard doesn't have a USB dongle so I am trying to connect it directly to the laptop, in the beginning, I couldn't connect but I installed Blueman and did it with that appl ...

Score: -1
John Snape avatar
Calculate video total video length and output as total with respective folder
pf flag

I'm working with some videos and I want to measure the total length of videos each folder contains and output it with the respective folder. Current structure is like this.

.
└── Parent folder/
    ├── Trip 1/
    │   ├── Video 1
    │   └── Video 2
    ├── Trip 2/
    │   ├── Video 3
    │   └── Video 4
    └── Trip 3/
        ├── Video ...
Score: 0
Denis Kotov avatar
How to run docker container as service if docker installed using snap
jp flag

I have faced with the issue that when I create the following service:

Description=Start Service Code
After=snap.docker.dockerd.service
Wants=network-online.target
Requires=snap.docker.dockerd.service

[Service]
Restart=always
ExecStart=/snap/bin/docker run -dt --rm --privileged --shm-size=0 --group-add root -p 8080:8080/tcp -p 8081:8081/tcp -v /dev:/dev service/tag
ExecStop=/snap/bin/docker stop $( ...
Score: 0
Bedir Tapkan avatar
Ubuntu GNOME desktop glitch on multuple monitors
bq flag

I do not even know how to describe this issue, I tried to search for it, but any of the wordings I tried seems to fail...

I am using Ubuntu 22.04; before this, I was using 20.04; the problem carried on to both. I did not find any answer before, so I let it go, but it became annoying, and I wanted to solve it. I am using GNOME as my desktop env.

When I drag on my main desktop (about 10 inches bigger  ...

Score: 0
Ayibogan avatar
Can't boot into GRUB/Ubuntu after reinstalling Windows on my second SSD
yt flag

I have 2 SSDs in my system

  • one with 1TB - installed Windows 10 Pro on it
  • one with 240GB - installed Ubuntu 22.04 on it

I was able to select the 240GB SSD as my 1st boot priority so GRUB always came up and gave me the choice between Ubuntu and Windows Boot Manager (while also having 2 more options I currently can't remember).

Now, 2 days ago I have formatted the SSD which had the Windows OS on it (alo ...

Score: 0
Lucca avatar
I need help with a PXE Server on Ubuntu 22.04 using dnsmasq
kh flag

I am currently trying to setup a PXE server on a ubuntu22.04 server to install iso's or any other images via networkboot/pxeboot.

I use dnsmasq for that and have encountered some problems.

first, sometimes the booting laptop gets a tftp timeout after i edited something and edited it back.

second when it gets through to boot it loads kernel and initrd for ubuntu 22.04 fine but gets stuck with: /init lin ...

Score: 0
c.leblanc avatar
Synchronize VScode projects between linux and windows with WSL
vu flag

I'm new to WSL and got the advice to store my VScode projects on Linux for better performance.

The thing is, I would like to keep an automatic sync between these files stored on Linux and a folder stored on Windows since I would like these projects to be stored in my onedrive.

What would be the easiest option to do this?

EDIT: I made a symlink in Windows from the folder on Linux. Will synchronization w ...

Score: 2
TommyPeanuts avatar
Can I switch Ubuntu Pro machine registration?
cn flag

I have a server that I would like to hand over to somebody else. It's currently attached the Ubuntu Pro free tier, registered to my Ubuntu One account so I'd like that to be on their ID.

What's the easiest way of doing that? Should I run pro detach then attach using their ID? Will that preserve the settings?

Score: 0
James Delongue avatar
Problems intsalling Ubuntu 20.04 on my new workstation (no disks/partitions are shown within the installer)
US flag

My first post within this forum. Glad to become a part of this community.

I am coming for help, because I have tried many things and my problem persists.

I am trying to install Ubuntu together with Windows (or at least Ubuntu alone) in my new workstation (M.2 unit). I managed to install windows first (I have created a partition for Ubuntu as well) and then I was expecting the installer to show the o ...

Score: 1
lucidbrot avatar
Why is my zfs backup so small?
de flag

While asking this question, I have figured it out and will be self-answering.

I have backed up my data (tank) to a file-based zfs pool on an NTFS drive (indoorpool). However, it now looks like the backup is taking up a lot less space than the original. Why is this? Was my backup done fully and successfully?

$ zfs get compression,compressratio,used tank indoorpool
NAME        PROPERTY       VALUE   ...
Score: 1
guygrinberger avatar
perl script wont run unless I use perl prefix
cn flag

I have a weird problem trying to run a simple perl script on ubuntu 22.04.

test.pl content:

#!/usr/bin/perl
print "Hello\n";

output of which perl command:

/usr/bin/perl

I used to run scripts with just their path, but now I get permission denied when doing so, unless I use the perl prefix.

distcc@a172-24-178-137:~$ ./test.pl
bash: ./test.pl: Permission denied
distcc@a172-24-178-137:~$ perl ./test.pl ...
Score: 0
user3353167 avatar
Webcam not working on Thinkpad Lenovo X1 Nano Gen 2 - Ubuntu 22.04.1
ms flag

Just switched to Ubuntu from Windows and it seems like the webcam has issues. Here are my hardware specs:

Hardware: Lenovo ThinkPad X1 Nano Gen 2
Processor: 12th Gen Intel® Core™ i7-1260P × 16
Graphics: Mesa Intel® Graphics (ADL GT2)

output of v4l2-ctl:

v4l2-ctl --list-devices
ipu6 (PCI:pci:pci0000:00):
    /dev/video0

ipu6 (pci:pci0000:00):
    /dev/media0

output of dmesg:

sudo dmesg | grep -i u ...
Score: 0
DarkDead avatar
unable to uninstall linux-oem kernel - Dependency issues
fi flag

My laptop has ubuntu 15.14.0-1057-oem as well as 5.15.92 and 6.1.10 kernels installed. I want to uninstall the 15.14.0-1057-oem kernel so I tried this:

sudo apt purge linux-5.14.0-1057-oem

But I am getting the following error:

Reading package lists... 
Done Building dependency tree        
Reading state information... 
Done You might want to run 'apt --fix-broken install' to correct these. 
The foll ...
Score: 1
maharshi shukla avatar
python -v and python3 -V gives different version in Ubuntu 22.04 LTS
pf flag

python -V gives output as:

python3.11.1

python3 -V gives output as:

python3.10.6.

What does this mean? Which version is my Ubuntu 22.04 using by default?

Score: 1
spraff avatar
What are these notifications which only appear on the lock screen?
de flag

Sometimes when I lock my screen there are notifications at the bottom

enter image description here

When I click them nothing happens. When I unlock the screen I can't see them anywhere.

What is causing these notifications? How am I supposed to interact with them? And can I turn them off?

Score: 2
Tomas Berger avatar
Ubuntu Core 20 Nano: Premission Denied
nf flag

I have been trying to get nano to work, but I keep running into permission denied problems where vim (vi) works.

I have downloaded 2 versions of nano sudo snap install nano-strict following this guide: https://discourse.ubuntu.com/t/using-ubuntu-core/24056 and sudo snap install nano-editor

With nano-strict I am able to create files in the /home directory, however, I am not allowed to read,edit or create ...

Score: 0
jesse1000 avatar
22.04: Strange artifacts and poor performance on Xorg with fractional scaling
se flag

I'm not sure what I did to cause this to happen, but recently after restarting my computer running Ubuntu 22.04, with Xorg I began noticing some strange artifacts around the borders of windows and icons. I had been running Xorg under the same settings, to my knowledge, without issue before this.

Quirk #1: Borders around drawn areas

Sometimes there would be a black border just outside the draw boun ...

Score: 0
W.Ding avatar
lightdm can't start
eh flag

I tried to use lightdm in WSL2 ubuntu, however it doesn't work. I tried reinstall lightdm and polkit. It seems like something about dbus is wrong.

ubuntu:22.04.1 GUI:GNOME

ding@LAPTOP-V70877ES:~$ sudo service lightdm start
 * Starting X display manager lightdm                                                                                   [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.0 ...
Score: 0
bulu97 avatar
cannot create extract-cd/casper/filesystem.size: Permission denied
fo flag

I tried to create a customized ubuntu iso image file using Jenkins pipeline. When i try to execute these command I'll be getting the above permission error.

%sudo su
%sudo printf $(du -sx --block-size=1 edit | cut -f1) > extracted/casper/filesystem.size
cannot create extract-cd/casper/filesystem.size: Permission denied

How can I resolve this?

Score: 2
timeshift or equivalent on headless server
cn flag

I wanted to install timeshift on a headless server. Unfortunately it depends on a mass of GUI that I really don't want polluting a server (for example x11-common etc).

Is there either a way to install it without it's GUI, or an alternative that does the same thing. I've been using rsnapshot (fine for what it does) but I'm looking for a system restore utility rather than data backup.

Score: 1
Chris Foster avatar
how can I specify which network interface is the one my computer uses?
ma flag

I have Ubuntu LTS release 22.04.

I need to figure out how to specify which interface in my machine is the one it's using for network traffic. It's a Thinkpad w541 laptop. I need to be able to create virtual (VLAN) interface's and get my computer to use them instead of the "normal" interface.

Let's say I need to be able to access VLAN 6 on my computer. I have the interface in terminal. If I run an

Score: 0
After adding .sh file to Startup Applications, the .sh file will not invoke at startup
za flag

Ubuntu 22.10

The text of the script file (gamma.sh) I wish to invoke at boot/reboot is as follows:

xgamma -gamma 0.6 

In terminal, the script can be invoked without difficulties by command: ./gamma.sh

The .sh file properties are set to execute as program.

PROBLEM...

I opened Startup Applications. Added ./gamma.sh

Result... Upon boot/reboot, the gamma.sh will not start.

QUESTION: How to invoke the ...

Score: 1
Gabriel Dylan avatar
My root partition filled up to 21,2 GB after installing Ubuntu 22.04, updating, installing drivers, chrome, and removing snap
mc flag

I have just installed Ubuntu 22.04, done update, installed NVIDIA and Bluetooth driver, installed Chrome, and removed snap, that's all.

But, when I opened the + Other Locations section in Files and saw my root partition (Computer), I noticed that 21.2 GB out of the total capacity of 65.2 GB had been used. This is the screenshot of my root (/) directory Properties (I separate root (/) and home (/h ...

Score: 0
Suhishan avatar
The 'Hide Top Bar' extension says 'The extension is incompatible with current GNOME version'. What do I do?
my flag

I recently upgraded to ubuntu 22.04 (jammy). Everything works fine except when I cannot toggle 'hide-top-bar' because it says 'The exention is incompatible with the current GNOME version'. I looked at my GNOME version and it is, as far as I could figure out, installed in its current version (GNOME shell 42.5).

What could be preventing me from toggling hide-top-bar?

Score: 1
Aashu avatar
Blank screen after installing nvidia graphic card on ubuntu 22.04 lts
nz flag

I am using ubuntu 22.04 lts.

I installed an Nvidia graphics card, Nvidia gforce gtx 1650 mobile, and rebooted it. After reboot, it showed an option to enroll kernel and I enrolled it but after that when I rebooted it, it's stuck with a blank screen. someone help me..

screen image

Score: 1
Which elements are affected by font hinting?
br flag

I used gnome-tweaks to change font hinting and reloaded gnome with alt F2 "t" but I couldn't determine any changes are only some elements affected? or do I need better glasses?

Score: 3
ubuntububuntu avatar
WSL zsh Shell Prompt Not Updating
in flag

Im running Ubuntu 22.04 under WSL and would like to change my prompt info and look from the default.

I did the following

sudo apt install zsh
chsh -s /bin/zsh

I updated the .zshrc file to be PROMPT='%n@%m %1~ %#' but when I output $PROMPT it shows me the old value %K{blue}%n@%m%k %B%F{cyan}%(4~|...|)%3~%F{white} %# %b%f%k

is there another file I need to be updating or am I doing something incorrect ?

Score: 1
Simone avatar
Ubuntu won't map all physical memory
ye flag

I have 589 Gb of physical memory but Ubuntu will only map 64Gb. e.g.

free -h -t
               total        used        free      shared  buff/cache   available
Mem:            62Gi       1.0Gi        60Gi        39Mi       1.1Gi        60Gi
Swap:          2.0Gi          0B       2.0Gi
Total:          64Gi       1.0Gi        62Gi

But there really is a whole lot more physical memory there. The BIOS det ...

Score: 1
LegrandTech avatar
Cannot find a way to enable WiFi card on a 2012 Macbook Pro
mo flag

I have an early 2012 MacBook Pro ad cannot find a way to enable the WiFi radio. Linux Mint has it under drivers, but there is no such thing I can find on Ubuntu Studio.

I ran lshw and got this:

**-network                 
       description: Ethernet interface
       product: NetXtreme BCM57765 Gigabit Ethernet PCIe
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: ...
Score: 0
hakim00 avatar
why is apt not able to locate the package once ran via script?
wf flag

I have this Ubuntu 22.04 virtual machine (vagrant) which I'm trying to append packages to with the following shell script

apt e.g.

firefox
flux
libimage-exiftool-perl 
perl-doc
vlc
wireshark
automake
openvpn
postgresql
telnet
tmux
wget

setup.sh

#!/bin/bash

sudo apt update -y
sudo apt upgrade -y
cat software/apt | while read line 
do
sudo apt-get install -y "$line"
done

aswell as similar approaches ...

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.