New answers tagged ubuntu
1
vote
No Wi-Fi Adapter Found - Linux
According to Linux Wireless Wiki, Intel Wi-Fi 6 AX200 support was added to the standard Linux kernel in kernel version 5.1.
Since you have kernel version 5.15, you should already have the support in ...
0
votes
No Wi-Fi Adapter Found - Linux
Instal proprietars driver or build from sources. See it is on a github, for example. I was do it on a debian. He have a proprietars driverin your repo (search prefix firmware)
0
votes
Ubuntu Raid 1 mounting and size are off
I had previously created the ext4 filesystem. I went ahead and did it again, though it said it already had an ext4 filesystem. It's working now, though I don't know if it was the mounting or the ...
0
votes
File content from env var
A bash Process Substitution acts like a file:
some-program-that-reads-a-file <(echo "$MY_ENV_VAR")
#..............................^^..................^
Here's a demo of how a program ...
1
vote
How to use 5.16 kernel with Ubuntu 21.10?
An alterntive, if you really need a newer version of the kernel and don’t want to install the entire rat’s tail of gcc-11 and libssl3, would be to try building the kernel yourself, with your current ...
1
vote
How can I remotely turn off or disable a second monitor in Ubuntu?
First, make sure the right DISPLAY is used when typing the commands.
You can export DISPLAY
export DISPLAY=:0
xrandr
or put it in front of every command
DISPLAY=:0 xrandr
or use display as a ...
1
vote
Accepted
Browsers redirect from local "index.html"-file to "file:///"-root
Your first problem, as we covered in the comments, is that the main index.html contains some embedded Javascript that forces a redirect to /. This makes sense for a website, where something like http:/...
0
votes
Subprocess launched inside a chroot created on a codespace with debootstrap fail with /dev/fd/62: No such file or directory
Found the answer here. Turns out /proc was not mounted. To mount proc I ran
$ cd "${CHROOT}"
$ sudo mount --types proc /proc proc/
Now things work!
$ cat < <(echo test)
test
0
votes
How to install cpupower on Ubuntu 14.04 (kernel 4.6.0)
Some years later...
I had the same problem with cpupower in Ubuntu 20.04.4 LTS.
I tried installing linux-tools-common, linux-tools-generic, and linux-tools-oem to no avail. I always got the message
...
0
votes
apt certificate chain uses insecure algorithm
That somehow sounds paranoid.
Which so -called "certificate" is at all democratically legitimate, so which is the desire to trust?
Why not deactivate all certificates and (finally) realize ...
0
votes
mdcheck_start Service Fails to Start
tl;dr apt install mdadm
The bug was fixed in 4.1-5ubuntu1.14:
mdadm (4.1-5ubuntu1.1) focal; urgency=medium
d/rules: Install misc/mdcheck (LP: #1852747)
The absence of mdcheck utility is preventing
...
0
votes
LVM Volume Group not found
I had same issue here. Not on 20.04, but on 18.04.
The issue is due to I move my SSD holding 18.04 to another PC and then the previous working system cannot boot any more.
During boot kernel is ...
20
votes
Accepted
CPU overheats and PC shuts down when swap is full
First, absolutely make sure your PSU is powerful enough - instant shutdowns like yours could indicate an issue with it. Maybe replace it. RTX 3090 can have spikes up to 500W and that means, along with ...
13
votes
CPU overheats and PC shuts down when swap is full
Presuming for the sake of discussion that the CPUs are overheating, that is a cooling issue, not a memory management issue. It's hypothetically possible that the additional I/O your system storage ...
0
votes
Can msmtp rewrite *all* recipient addresses?
if you use php you can set somthing like this in php.ini
sendmail_path = "/usr/bin/sendmail your-email@gmail.com"
and configure msmtp defaut server.
In this config all emails from php with ...
0
votes
bash script: copy from a folder to another within a directory and loop the process over multiple directories
Assuming that your directories are named exactly as you say, are in the current directory, and don't contain thousands of files each, something like this should work:
for dir in P{1..60}/{A,M} ; do
[...
0
votes
Accepted
bash script: copy from a folder to another within a directory and loop the process over multiple directories
I assume that P1, P2, ..., P60 directories are in the same folder. Then, you just need to loop through all directories in this folder and run cp. Running the following script in this folder should do.
...
0
votes
Redirecting DNS querries from NAT'd devices and UFW
Install bind9 or some other dns server that can forward requests on the Ubuntu box, and point the Fedora's nameserver entry at the Ubuntu box's IP.
The default install of bind9 on Debian and ...
2
votes
How to see again the errors when booting?
Debian 11 seems to have /var/log/boot.log (and its logrotated older versions boot.log.1, boot.log.2 etc.). It would seem to contain the sort of messages you're looking for.
Perhaps Ubuntu has it too?
...
1
vote
Disable mouse scaling when fractional scaling is enabled in Ubuntu/Gnome/PopOS
After following the advice of @MC68020 and getting Wayland backend working with PopOS I stumbled upon the solution without needing to run Wayland.
sudo kernelstub -a "nvidia-drm.modeset=1"
...
0
votes
Ubuntu Azure Virtual Machine - No Space Left On Device
@Jeredriq Demas : I'm facing a similar issue in Azure Linux VM. Did you solve this ? If so, can you post the solution
0
votes
Disable mouse scaling when fractional scaling is enabled in Ubuntu/Gnome/PopOS
Try using https://github.com/mind-overflow/gnome-fs-duplicate-cursor-fix to fix your issue; it sounds like it could solve your problem.
1
vote
etc shadow file for passwd - calculate not only date but time
According to man shadow only days are recorded. If no other changes occurred, you might stat /etc/shadow.
0
votes
Accepted
/usr/lib/x86_64-linux-gnu/<libname> is not on search path; what's the "right" way to fix that?
There are two aspects to this.
The first is runtime library resolution; this is what LD_LIBRARY_PATH configures. The cleanest way to deal with this sort of situation is to create a file in /etc/ld.so....
1
vote
Command line tool to install GNOME Shell extensions
Solution 1:
If you have the extension urls then use the following. Here, I have put the extensions in an array. Place the URLs of the extensions you want to install in this array.
#!/bin/bash
array=( ...
2
votes
Accepted
Verifying a hashed salted password that uses yescrypt algorithm
perl's crypt() or python3's crypt.crypt() should just be an interface to your system's crypt() / crypt_r(), so you should be able to do:
$ export PASS=password SALT='$y$j9T$F31F/jItUvvjOv6IBFNea/$'
$ ...
1
vote
Accepted
sudo update-alternatives --config . How to set the auto entry
Compare the python and python3 symlinks in /etc/alternatives/ (e.g. with ls -lF /etc/alternatives/python*.
My guess is that python points to python3.8 while python3 points to python3.10. Or vice-...
0
votes
Curl. Check redirect
Redirects can be checked with curl -IL
curl -IL stackexchange.com
HTTP/1.1 301 Moved Permanently
cache-control: private
location: https://stackexchange.com/
...
HTTP/2 200
...
0
votes
Ubuntu 18.04 won't wake after screen lock and blank / suspend / sleep
in my case was solved by installing the nvidia driver
sudo apt install nvidia-driver-465
Also in the UEFI:
Turn off the secure boot and change the sleep mode from Windows10 to Linux
Laptop: Lenovo ...
0
votes
Enable Mod Expires on Apache
You need headers module to get expires module works.
sudo a2enmod headers
sudo systemctl restart apache2
0
votes
Accepted
Fstab permissions
First, you are using the FAT32 filesystem, which does not support Unix-style file ownerships and permissions. But because Unix-like operating systems assume that all files must have an owner, group ...
0
votes
Accepted
Ubuntu / PopOS 21.04 - Screen blinking
If anyone encounter this post, I ended up following this suggestion from @holgerstrunk with nice results:
Just had this problem on the exact same processor. It turned out that an Intel power-...
0
votes
Accepted
How to limit messages from the wall command to a specific group?
Looked at the group membership checking code. Had a round of gdb --args wall -g root foobarbaz,
break is_gr_member
run
{wait for breakpoint to be hit}
finish
print utmpptr->ut_user # this prints ...
0
votes
Editing grub menu with secure boot enabled Ubuntu/PartedMagic
Clonezilla's kernel comes from Ubuntu, so it is signed with Canonical's (the company that maintains the Ubuntu distribution) Secure Boot private key.
If your boot process includes a shimx64.efi from ...
0
votes
bash script not running at startup
You should add /bin/bash -c in front of your '/path/to/your/script.sh'
/bin/bash -c '/path/to/your/script.sh'
The echo command output will be visible in your system logs, not in your terminal.
...
0
votes
Boot loop device as root file system
load into GRUB2 and enter its command line mode (hit 'c') and investigate how it enumerated your disks in (hdN,N) fashion with ls command
load into GRUB2 and edit any entry (hit 'e') , edit it into ...
1
vote
How to uninstall only one application from a package of multiple applications?
You can remove a package-provided file in a dpkg-supported manner by diverting it. If you want to prevent any package from installing /usr/bin/parallel, create a general diversion:
dpkg-divert --...
1
vote
What causes Launchpad to sometimes build binaries for only amd64 and sometimes build them for both amd64 and i386?
Canonical dropped full support for i386 in Ubuntu 19.10 (Eoan), which is why your 20.04 build didn’t include i386. Ubuntu only includes a small selection of i386 packages now, to provide support for ...
-1
votes
How to uninstall only one application from a package of multiple applications?
You can't, without breaking the promises of your distribution. Debianoids (just like any other distro) deal with binary packages as integral unit of software. Deleting anything from a package renders ...
0
votes
Boot loop device as root file system
qemu should do the job.
I use such command to emulate booting from another hard drive:
sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches ; sudo qemu-system-x86_64 -m 1024 -enable-kvm -hda /dev/sdc
...
0
votes
Accepted
Wrong Remmina Folder Colors
As the error, it seems like the color configuration has broken. Therefore, I check the remmina.pref in ~/.local/share/remmina and the one at ~.config/remmina. I noticed there is a color mismatch, I ...
0
votes
Ubuntu 22.04, Dual graphic cards, Intel for display, NVidia for GPGPU, how to setup?
Great... I got it... It looks if as long as I do NOT enable NVidia graphic card for display, it can still be used for CUDA computation...
6
votes
Source of passwd error messages
Firstly, I hope you're doing that for educational experience, and not because you think it will improve security or something (it would make it much worse!)
That being said, few pointers to handling ...
2
votes
dpkg: Remove msodbcsql17
I think i had the same issue. In my case the problem was that the post-removal script of the package msodbcsql17 located at /var/lib/dpkg/info/msodbcsql17.postrm is calling odbcinst - which was not ...
3
votes
Accepted
Installing font packages
Those aren’t font packages, they’re development packages shipping pkg-config configuration files (kbproto.pc etc.), among other things.
On Ubuntu you need to install x11proto-dev:
sudo apt install ...
-1
votes
17
votes
Accepted
Source of passwd error messages
The first error message is from the PAM library, see e.g. https://github.com/linux-pam/linux-pam/blob/master/libpam/pam_strerror.c
const char *pam_strerror(pam_handle_t *pamh UNUSED, int errnum)
{
...
2
votes
Help with (corrupted?) flash drive
You need to create (at least) one partition on the disk before formatting it.
fdisk /dev/sdb
and then type:
n (create a new partition)
p (set as primary partition)
[Enter], [Enter] (define start and ...
0
votes
Cannot remove file: "Structure needs cleaning"
Contrary to others, I faced this issue, not because any of my disks were failing, but my lower RAM frequencies would cause weird issues including this one while under heavy load.
Basically, for me, it ...
0
votes
Linux gpg Conflicting values set
Had the same problem, I managed to solve it by removing source list files related to ms-teams or teams:
open directory in terminal: /etc/apt/sources.list.d
list ms-teams related list files
remove ...
Top 50 recent answers are included
Related Tags
ubuntu × 12037linux × 2163
networking × 546
debian × 526
bash × 519
ssh × 452
apt × 431
boot × 321
windows × 284
shell-script × 282
dual-boot × 257
software-installation × 252
systemd × 234
mount × 222
permissions × 220
command-line × 215
package-management × 214
terminal × 213
virtualbox × 213
linux-mint × 212
wifi × 202
partition × 199
shell × 198
grub × 196
python × 191