Latest Ubuntu related questions

Score: 1
elperno avatar
Cannot load NVIDIA driver (Ubuntu)
ng flag

I am having issues loading the NVIDIA driver on Ubuntu 21.04. The result of nvidia-smi is

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. 
Make sure that the latest NVIDIA driver is installed and running.

And the result of nvidia-settings:

ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system

I have tried reinstalling the latest NVIDIA driv ...

Score: 0
How do I create a bitmask to delimit the corrupted areas of the ram using the badram option of grub
bs flag

I have a macbook air that has the ram memory soldered and the memory ranges corrupted starting from 0x784C1B10 (1924MB) (cpu in pararell mode, in a single cpu#0 or #2 the low memory error change to start from 0x10060AC50 (4102MB) and up to 0x1605F7518 (5637MB) and the memtest also indicates a Bits in Error Mask 00FF00FF00000000, The intermediate errors are approximate since memtest freezes when it re ...

Score: 0
aminul islam avatar
After booting not working
id flag

After booting it's not working, but it'sshowing this notice given in the image.

desktop image showing blk update.

Score: 0
O ethelo avatar
initramfs -- unable to boot into encrypted hardisk
in flag

I'm on Ubuntu 18.04 and in trying to fix my backups and spending time with DmSetup and renaming LVM volumes; I broke my system and it now boots into initramfs.

In trying to fix it; I've made it worse (by rerunning update-initramfs) and at the moment I've spent a few days trying to fix it and having no luck.

Apologies for the newbie questions in advance but I have no idea how to recover.

If I boot into  ...

Score: 1
Kevin Berry avatar
Firefox and Chrome crashing constantly
cn flag

Firefox and Chrome are constantly crashing, even with all extensions removed. Everything is updated/upgraded on Ubuntu 20.04. It's been this way for months. Rebooting seems to stabilize the browsers for a little while, like 5-10 minutes, before they start crashing again. Firefox is more stable with only one tab open. Chrome crashes constantly with only one tab open. Moving the mouse around seems to trig ...

Score: 0
Scott Mouser avatar
USB hard drive fails to mount on boot
pl flag

I have 3 identical make/model external hard drives connected by USB, and /etc/fstab looks like this:

[...]
UUID=1b83f30d-cb05-460f-ba98-50912a639330   /mnt/disk1  ext4    auto,defaults,nofail    0   2
UUID=b2653db0-5233-4812-a5af-bf3a8944db80   /mnt/disk2  ext4    auto,defaults,nofail    0   2
UUID=c02d2990-61b6-432d-9b20-b95643607065   /mnt/disk3  ext4    auto,defaults,nofail    0   2
[...]

After  ...

Score: -6
nl34 avatar
How do I write a script that prints every line of a file that is not contained in a another file? (Bash script)
us flag

for example, I have 2 text files :

file1 consists of:

a 
b
bb
cc

file2 consists of:

aa
bc
ab

output should be:

$p1.sh file1 file2 
bb
cc

$p1.sh file2 file1
aa
bc
ab

how would I write this bash script? I was writing something like this but it was not working:

#!/bin/bash

cat "$1" | while read m  
do
    grep -f -v "$m" "$2"
done | sort -u

any sort of guidance would be appreciated! I am a beginner  ...

Score: 0
lightdm crash (once) & thereafter login screen shows "failed to authenticate" - impossible to login
in flag

OS: ubuntu 20.04 with lightdm
HW: Raspberry Pi 4B 8GB

History: this system has worked for well over a year without issues.

There was a random crash of the sound system (this has happened before), my normal cure for this is to reboot. Usually it works.

This time, I could not log in after reboot. The lightdm greeting screen seems to want to auto login (I disabled auto login a long time ago) and shows th ...

Score: 0
Soft intermittent popping sound in right audio channel in Ubuntu 20.04 on Lenovo X1 Carbon
co flag

I am running out-of-the-box Ubuntu 20.04 on a Lenovo Thinkpad X1 Carbon laptop. The audio output include a soft clicking/popping/tapping sound that appears at certain times when audio is played, that appears only on the right audio channel, that arises in the aux audio output but not the laptop speakers, and that depends on the specific audio output. For instance, in this YouTube video, I hear it at t ...

Score: 0
Ed Beighe avatar
trouble with laptop / dual monitor
br flag

I have a laptop with 20.04 desktop loaded that I normally leave running 24x7 with the lid closed, it has a smashed display that is almost illegible... In the past, back with version 12 or 16 [edit: 12.04 and 16.04 LTS, both desktop], when I flipped open the lid, and connected a vga monitor to it, the display would pop up there; so if i needed the gui I would just temporarily plug it in and that worked f ...

Score: 0
Shah Jacob avatar
Getting E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing when trying to install g++
cn flag

So I am trying to install gcc to install g++ on WSl-2 for Windows10 (which is basically a real Linux kernel) and I get this unable to fetch archives error try apt-get update error message after a bunch of Failed to Fetch errors

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libubsan0_7.4.0-1ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.152 80]
E: Failed to fetch http://a ...
Score: 0
ubunto 18.04 10 gig network
iq flag

Good Day,

I have been scrolling the internet and I am struggling to figure out what i need to tweak to get the full potential out of my 10g bit internet on my Leaseweb server.

My host gave me this.

fs.file-max = 2000000
kernel.pid_max = 4194303
kernel.sched_migration_cost_ns = 5000000
kernel.sched_autogroup_enabled = 0
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_no_metrics_save = 0
net.ipv4.tcp_a ...
Score: 0
Nicholas Saunders avatar
How to configure mono instead of stereo sound?
mx flag

Using a USB headset with a single speaker, shown here as Y-247A:

nicholas@mordor:~$ 
nicholas@mordor:~$ lsusb
Bus 002 Device 005: ID 2a7a:6a18 CASUE CASUE USB Keyboard
Bus 002 Device 004: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 002 Device 003: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 0 ...
Score: 0
Install highest version of package providing given virtual
mx flag

We have hand-rolled debian packages in internal repos. The package has the version baked into the name because reasons, eg: driver-headers-8.12.12_8.12.12_amd64.deb

I want to always be able to install the latest / highest-versioned "driver-headers" package. So we make each one provide the nominal package name with matching version (in the debian/control):

Provide: driver-headers (= 8.12.12)

The prob ...

Score: 0
Iosef avatar
Download wordpress core using bash script
in flag

Im trying to use bash script to download wordpress core in a specific directory, what I did is this:

#!/bin/bash

wp core download /var/www/public_html/

But Im getting this error:

Error: Failed to get url '/var/www/design-press.site/': Only HTTP(S) requests are handled..

Any ideas?

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.