Latest Ubuntu related questions

Score: 3
Ubuntu 20.04 with kernel 5.15 - How to install NVidia driver?
cn flag

What is the recommended way to install NVidia drivers with an updated kernel on Ubuntu 20.04? Installing via apt does not work. I get following error at the end of the installation

# sudo apt install nvidia-driver-495 -y
...
...
Building for 5.15.1-051501-generic
Building for architecture x86_64
Building initial module for 5.15.1-051501-generic
ERROR (dkms apport): kernel package linux-headers-5.15 ...
Score: 0
wroot avatar
C pipes with execlp(). Code works for "head" command but not for "sort"
us flag

So my job is to write a function that will work like:

ps -ef| tr -s ' '  :| cut -d: -f1 | sort | uniq -c |sort -n 

Here is my code:

void pipe4()
{
  int pdesk1[2];
  int pdesk2[2];
  int pdesk3[2];
  int pdesk4[2];
  int pdesk5[2];

  pipe(pdesk1);
  pipe(pdesk2);
  pipe(pdesk3);
  pipe(pdesk4);
  pipe(pdesk5);

  if (pdesk1 < 0 || pdesk2 < 0 || pdesk3 < 0 || pdesk4 < 0 || pdesk5 &lt ...
Score: 0
Brad Thompson avatar
PXE boot timeouts setting
nl flag

I trying to set up a PXE boot server. Everything is working but when the client is booting after the pxelinux.0 is loaded there is a boot: prompt.

boot:

  1. When I hit enter to the pxelinux.cfg/default enter the next menu where is another Automatic boot in 120s countdown.
  2. If I no not hit enter after 1-2 mins it goes to the same menu as above.

It will be cool if somebody will share with us how to setup the ...

Score: 0
Can't connect to archive on both of my Ubuntu computers without using a VPN. IP banned?
br flag

I've been having this problem for a while but I figure that I should try to get to the bottom of it now. For the past few months for whatever reason I simply can not connect to the Ubuntu archive from my home in Cambodia. This happens for both computers. Even going to ubuntu.com simply does not load.

It sounds like that I possibly got blanket banned and ended up being a casualty? Everything else  ...

Score: 0
nobody avatar
variable expansion problem
gh flag

I'm running lubuntu 20.04 bare installation no docker involved.

env | grep -i shell
SHELL=/bin/bash

whenever I try to let expand system variablen like $HOME auto complete is not working correct. Example $HOME

echo $HOME
/home/alex

correct set.

     cat \$HOME/zu_entfernende_Kernel 
cat: '$HOME/zu_entfernende_Kernel': Datei oder Verzeichnis nicht gefunden

when I hit tab for autocomplete,$HOME i ...

Score: 0
apkg avatar
Need to resize partition by adding unallocated space from extended file system
cn flag

I have the following set up, and need to simply increase the size of sda1. There is 81Gb of unallocated space, and the parts are adjacent. But, I cannot increases sda1, the option is greyed out.enter image description here

Is it possible to add this unallocated space to sda1? Or do I need to format?

I am booting via a live usb.

enter image description here

Score: 0
Brad Thompson avatar
TFTP Aborted received from
nl flag

I tried to set up a PXE-boot server with dnsmasq. Everything is working but the there is an error regarding TFTP.

Nov  9 12:28:52 zika dnsmasq-dhcp[59739]: DHCPDISCOVER(enp4s0) 08:00:27:78:a4:c2 
Nov  9 12:28:52 zika dnsmasq-dhcp[59739]: DHCPOFFER(enp4s0) 192.168.1.16 08:00:27:78:a4:c2 
Nov  9 12:28:54 zika dnsmasq-dhcp[59739]: DHCPREQUEST(enp4s0) 192.168.1.16 08:00:27:78:a4:c2 
Nov  9 12:28:54 zik ...
Score: 0
FedKad avatar
How to prevent vinagre process Ctrl key?
cn flag

When I am using Ubuntu's Remote Desktop Viewer (vinagre), I generally open a gnome-terminal on the remote server. While using the terminal, I want to have access to all Ctrl+key combinations. However, vinagre processes some combinations locally, for example; if a press Ctrl+Q, my remote desktop session is terminated; if I press Ctrl+D, it tries to add a "bookmark".

I do not want the key combinati ...

Score: 1
yang mandi avatar
Upgrading apt packages gets stuck
pk flag

When running sudo apt upgrade it gets stuck at:

Preparing to unpack .../00-linux-image-5.4.0-90-generic_5.4.0-90.101_amd64.deb ...

I killed the process and ran sudo dpkg --configure -a, then I tried again but the same problem happend again. The package name that apt got stuck is named linux-image-5.4.0-90-generic

Solved:

The solution is to reboot TWICE in my case. When I posted this question I only reboo ...

Score: 0
Nagev avatar
How to restore docker containers after snap remove docker
pt flag

I removed docker with sudo snap remove docker. I didn't actually want to remove it, was just checking if I had installed it with snap, trusting that it would prompt me with (y/n) like apt does. But it just went ahead and removed docker. Fine. It was quick to reinstall it again.

But, where are my containers?! All the images and containers (docker ps -a) were gone! It took a long time to uninstall it, s ...

Score: 0
Samba not working under ubuntu 21.10 impish
us flag

my samba has stopped working on Ubuntu 21.10 impish not sure when it started but I get this on start:

$ sudo service smbd restart
[sudo] password for username: 
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xeu smbd.service" for details.

when I run the commands it says to I get:

$ systemctl status smbd.service ...
Score: 0
MadPhysicist avatar
Error Installing Newly Built Emacs 28 on Ubuntu 20.04
br flag

After compiling the latest version (28) of Emacs on Ubuntu 20.04, I get the following error after running sudo checkinstall

Selecting previously unselected package emacs.
(Reading database ... 412866 files and directories currently installed.)
Preparing to unpack .../tmp/emacs/emacs_28-1_amd64.deb ...
Unpacking emacs (28-1) ...
dpkg: dependency problems prevent configuration of emacs:
 emacs-common (1:26 ...
Score: 5
Ubuntu 21.10 on Dell XPS 13 9310 WiFi Killer AX500s DBS stopped working in kernel 5.13.0-21-generic
cn flag

*Edited after super helpful chat with @chili555 that I botched by trying too many things at the same time...

The WiFi adapter works in kernel 5.13.0.20-generic, but in 5.13.0-21 it's inactive and remains inactive after multiple shutdowns/ reboots. I checked that it's active in BIOS and it exists but does not work

$ lshw -c network
  *-network                 
       description: Network controller
    ...
Score: 2
Booting Ubuntu Studio sticks at different points (HP Pavilion Desktop PC)
ro flag

I am trying to boot into Ubuntu Studio 20.4.3. I downloaded the Live ISO and put it onto a 32 GB EMTEC USB Stick with Rufus (GPT/UEFI) under Windows. I also checked the ISO File hashsum.

I have a HP Pavilion Desktop PC TP01-2xxx and I want to install Ubuntu Studio (when booting works) on the 512 GB PCIe NVMe M.2 SSD.

So I boot from the stick and select "Try Ubuntu w/o Installing" - and here I also d ...

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.