Latest Ubuntu related questions

Score: 0
RCO avatar
Replacing failed drive using mdadm
do flag
RCO

I have a test server running Ubuntu Server 22.04.

The server boots from a small SSD. When setting it up I used mdadm to create a RAID1 with two 1 TB drives for data. After a few months, one of the drives failed. The mirror works. I was able to continue using the server while waiting for a new repalcement drive to arrive.

I followed some instructions in a video I found online and was able to replace  ...

Score: 0
m1st0 avatar
Increased initrd image size in 5.19.0
us flag

After I upgraded from 5.19.0-23 to 5.19.0-26, my initrd.img size grew a lot:

Size Update
49M initrd.img-5.19.0-23-generic
131M initrd.img-5.19.0-26-generic

I already have 2 workarounds from Bug 1842320 so that I can boot without the error: out of memory issue. Nonetheless, what caused the large size change if compression and build settings remain the same? If interested, the workaround ...

Score: 0
Konstantin avatar
Ubuntu offline updates using apt-offline
bm flag
  1. When I'm installing apt-offline using sudo apt install apt-offline command it installs apt-offline version 1.8.4-1 (the latest, as I understand)
    When trying to create a signature file using command sudo apt-offline set ~/offline-data.sig - getting error: ERROR: No option specified to set command
    If I download and install apt-offline version 1.8.2-1 - all works and file created.

  2. Download the update file ...

Score: 0
ledertasche avatar
do-release-upgrade results in error: APT / GLib-Critical / apstreamcli / libappstream
md flag

i am currently trying to do-release-upgrade an Ubuntu 17.10 install to 18.04.6 LTS via 'sudo do-release-upgrade'. Sadly, the process does not finish, as it return the following very quickly:

(appstreamcli:26495): GLib-CRITICAL **: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type) ...
Score: 0
Ralf avatar
share only portion of screen on external monitor
ec flag

Is there a way in Ubuntu (20.04) under Gnome to share only a portion of the main screen, e.g. the upper left corner, on an external monitor?

Score: 0
joy.socl avatar
flashing Jetson TX2 ,by NVIDIA SDK Manager, with install error
uz flag

planning to use virtualbox of ubuntu 18.04 and SDK Manager in order to flashing Jetson TX2

demo pic https://i.stack.imgur.com/rjyy7.jpg

problem: the SDK package download failed with Dependency error

  • error shows

apt-get missing dependencies, there are missing dependencies in apt-get database.Try 'apt-get -f install' with no packages [ or specify a solution ] in a terminal, and click RETRY.

I have ...

Score: 0
Greg P. avatar
Execute Diff file for fix audio usb
je flag

I use Rane SL1 with Mixxx on Ubuntu 22.04 but the audio card isn't listed on Ubuntu.
I have searched and they had a fix to use it but it's a Diff file and I don't know how I can execute it.
I have passed it on terminal but bot working.

Please help me.

Score: 0
Palguna  avatar
How to escape to add additional lines in bash commands?
cf flag

When I run a bash program, it asks for input. Now I have to give a paragraph with newlines as input to the function.

In terminal whenever I hit Enter, it's going to next part of program. Which character should I use for escaping line - if I type \n it's taking the string \n as an input.

Score: 0
Nairum avatar
Lubuntu 20.04 keeps trying to use two monitors even if a secondary monitor is unplugged, settings reset after reboot
cn flag

Problem details

I used to use a second monitor ages ago, but I do not use it anymore. I never want again to use a second monitor.

The second phantom non-existing unplugged monitor is used by default to extend my screen. This causes problems on boot. Sometimes I can not see a lock screen, sometimes my system hangs with a black screen.

What I need

  1. Remove the second phantom non-existing unplugged m ...
Score: 0
user1657118 avatar
Monochrome scanning software
bq flag

I am new to Ubuntu and am seeing if I can move from Windows. My one problem is getting the right scanning software. In particular, I want to scan documents in 1-bit monochrome(i.e. black and white) to minimise storage but can't seem to find anything that lets me do that. All the apps I have looked at seem to only allow colour or 8-bit grayscale. Does anyone have a solution?

Thank-you.

JW

Score: -2
code_lover avatar
error while removing Anydesk
tk flag

Could you please let me know what it the correct method to remove Anydesk?

I am receiving this error, while I am trying below command:

sudo apt-get remove anydesk

The following packages have unmet dependencies: linux-tools-5.15.0-56 : Depends: linux-tools-common but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Score: 0
Sue Darby avatar
Upgrading from 22.04 to 22.10
sv flag

Forgive me but I am a n00bie at troubleshooting Ubuntu and this is really my first try at upgrading.

I am running into a number of errors when I run 'sudo apt update' specifically the following out of a long list of Hit and Get results:

  Err:2 https://cli.github.com/packages stable InRelease                         
  The following signatures couldn't be verified because the public key is not availab ...
Score: 0
HigherOrderConfusion avatar
L2TP VPN connection does not use manually set IP address
pt flag

EDIT (2022/01/03):

As per Douglas Kosovic's answer, updating to version 1.20.08 does indeed fix this issue.

For completeness, I manually added the repository for good measure beforehand.

sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update

Ubuntu Version 22.04 LTS

Problem:

I am trying to setup an L2TP VPN connection with manual IP address, netmask, gateway and DNS. However, the ...

Score: 2
Joe Cola avatar
How to delete a range of lines in a text file?
us flag

I want to know how to quickly delete text with Bash. For example, I have a file named file.txt with a total of 500 lines.

I want to delete lines 80 to 146 - how do I do that?

What's is a terminal command that can do that?

Score: 0
MTU specified in netplan is not applied at boot
ar flag

My netplan file looks like so:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      addresses:
        - 169.254.1.1/24
      mtu: 9000

After boot the eth0 interface takes the configured address, but the MTU is the default value of 1500.

If I run sudo netplan apply manually after boot, then the MTU increases to 9000 as expected.

Right after boot, the generated files for systemd ...

Score: 0
Martin Yankov avatar
Brightness control "Up"/"Down" with xrandr (Ubuntu 22.04)
aw flag

I am happily using the "brightness" command to control my TV as my primary display right now. But since I am working in a somewhat dim environment I was wondering if there is a way to not just set two precise values to keyboard shortcuts, but instead a more general commands for brightness "Up" and "Down"?

In the manual of xrandr I couldn't find the desired command. Perhaps I am looking for it the ...

Score: 0
Sakthi Panneerselvam avatar
Ubuntu sound settings is disabled, not able to reset
za flag

Recently my headphone was not working with ubuntu, so search something in stackoverflow and fixed after sometime suddenly sound is not audible outside and mic is also not working. It's weird how it happened. Attached image for reference enter image description here.

When i click Test in Output section, it coming below. Not sure what do to now. I had tried everything possible, some suggestion is appreciated

enter image description here

Score: -1
AntPalmer avatar
HP Victus AMD - Unable to start from suspend on Ubuntu 22.04
il flag

I have not been able to start Ubuntu 22.04 after setting it to Suspend. When I try to resume it, the screen turns black. I cannot use the nouveau technique as I do not have an nvidia graphics card (I have an AMD RX 5500M/Radeon integrated graphics). What other information do I need to provide and how can I fix this issue?

Score: 0
Jiao Bu avatar
Tablet Features (Auto-Tilt, On-Screen Keyboard) work during Test (Live Boot) but are gone post installation 22.10 Getac F110
bi flag

I have a Getac F110, And using the USB Stick Ubuntu 22.10 Desktop, Everything works great, as I said in the title, with tablet functions "Just Working out of the box." After install, no on-screen keyboard (neither automatically popping up, nor swipable from bottom of screen, as during USB-Stick testing, and no autorotate.

What do I need to do to get these features to work post install exactly as ...

Score: 1
Lime avatar
"bash --noprofile --norc" destroys .bash_history
bd flag

While I have HISTFILESIZE and HISTSIZE greater than 500, the bash history gets destroyed after I entered to a "norc" shell. How can I keep the history data through the various shell types?

Here's an actual example.

// on the normal shell (bash)
/mnt/c/pg$ wc ~/.bash_history
  876  1997 19855 /home/user/.bash_history

/mnt/c/pg$ logout

PS > bash --noprofile --norc

// on the norc shell
bash-4.4$ ...
Score: 0
best_of_man avatar
How to use "microk8s kubectl" within a "skaffold.yaml" file?
pl flag

I have a skaffold.yamlfile like below:

apiVersion: skaffold/v2alpha3
kind: Config
deploy:
  mk:
    manifests:
      - ./infra/k8s/*
build:
  local:
    push: false
  artifacts:
    - image: learnertester/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: 'src/**/*.ts'
            dest: .
    - image: learnertester/ticketing-client

Now ...

Score: 0
Best Codes avatar
How to make a .appimage file a default program
fm flag

So I have a .AppImage file: AppImage files

Now I can right-click and run the AppImage as a program: Run as program

Then I have an obscure file ending: Weird File

And I want to make the default program for opening this weird file be my .AppImage, but when I look at the default programs, I can't find it: Default open with

I've tried chmod with the terminal: chmod

Nothing seems to work! Please help!

Score: 0
chenoi avatar
Machine VMWare Workstation power configuration in MAAS
ma flag

I'm seeking some help on how to power config my VM workstation. Hope someone could show me the way on how I can resolve this problem. Stuck almost a week. Please help. Thank you.

enter image description here

Score: 0
zoot avatar
How can I isolate and move top bar UI elements?
ck flag

I am somewhat new to Ubuntu, and I've been tweaking the desktop to my liking quite a bit. My current main issue is the top bar, which yes, I have hidden. Hiding though, for me, isn't enough. I like seeing things like weather, time, and notifications, I just don't want that damned top bar. What I am looking to do is get rid of the top bar entirely, but keep certain elements like the date/time/notificatio ...

Score: 0
li_jessen avatar
I can't find my git related directory one day
ph flag

I'm using Ubuntu 18.04. I had a git related directory under my personal directory. My last operation in this git directory is "git push". This morinig I suddenly found the directory is missing as soon as I log-on this Linux via SSH. I checked my history and found no any rm operation with this git directory. Could anybody tell me where my git related directory went? And what operations or conditions may  ...

Score: 1
Tristan Camejo avatar
Consistent crashes every 24 hours
vi flag

Firstly, I set up my machine by installing Ubuntu Desktop and then ran the following commands, later on, to turn it into a "server".

sudo apt install ubuntu-server
reboot
sudo systemctl set-default multi-user.target
reboot
sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean
reboot

Everything seems to work fine, except for the consistent "crashes" at night wh ...

Score: 1
Alberto Pires avatar
Some applications can't play/pause/skip in the gnome panel - Ubuntu 20.04 and 22.04 (both LTS)
in flag

When I open Spotify on Firefox I can control the streaming by clicking on the speaker icon on the top bar. I'm using gnome Flashback.

Working on Firefox

But if I use the Spotify app or open it on Google Chrome, it doesn't work, although it shows the last used app :

Not working on Chrome

On firefox it works for other sites, like youtube.

Firefox is an external installation via PPA.

Any ideas on how to fix it?

Score: 1
Paul Jurczak avatar
Ubuntu 22.04 terminal stopped opening when launched from the desktop
pe flag

I'm running Ubuntu 22.04.1 on AMD64 PC with 2 SSDs. The terminal worked just fine until I removed one of the SSDs (backup). Trying to launch Terminal by clicking on an icon in Favorites or by searching by name results in about 10s of a spinning timepiece and no terminal opening. I can open it by going to Nautilus and choosing Open in Terminal, though. Is there a fix for it?

Score: 1
Ubuntuber avatar
Best noob friendly way to clone SSD with ubuntu
aq flag

I'm trying to clone an SSD with Ubuntu and some other programs on it. I want to make an exact copy and not just copy the partition. What's a good way to do this? Anyone know any good youtube tutorials? The ones I've seen only clone the partition do not actually create a bootable drive. I have access to a windows computer I can plug drives into. I'm brand new on Ubuntu.

Score: 1
Manuel Jordan avatar
apt-key command: What is the difference among '--recv-key', '--recv-keys' and '--recv' options?
kz flag

For documentation purposes, about the apt-key command in many places I found these two variations:

sudo apt-key adv --keyserver       keyserver.ubuntu.com    --recv-keys PUBKEY
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv      PUBKEY

Observe the difference about the latest option --recv-keys and --recv. About the Ubuntu's official man at jammy apt-key(8) does mention only abou ...

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.