Missing Output from some scripts https://askubuntu.com/questions/1564799/missing-output-from-some-scripts

i reinstalled ubuntu on my pc. Now I have a problem with the terminal. When I call cmake --build . I get no output in the terminal only if I run cmake --build . 2>&1 .
Other commands like ls are working just fine. But from Julia I also get no output.
Im using oh my zsh, but with bash I had the same issue.

Browsers and programmes not connecting or opening Web pages & Proton VPN not connecting https://askubuntu.com/questions/1564797/browsers-and-programmes-not-connecting-or-opening-web-pages-proton-vpn-not-con

Ubuntu system 24.04.3 LTS

My wi-fi Internet connection is strong. However..... Recently all of my browsers (TOR, Millard, Firefox) decided not to open any page links and have the error message: 'hmm. We're having trouble finding that site. We can't connect to the server at xxxxx' 'if you entered the correct address you can try again later, check network connection, check Firefox has permission to access the Web (you might be behind a firewall)'.

The software updater has the error message: 'Failed to download repository information' or 'failed to download package files'. 'Check your Internet connection'.

Proton VPN has the 'loading app' message but the circle just keeps going around and won't connect.

I am a complete novice with trying to sort this type of technical issue so any help will be gratefully received!

; <<>> DiG 9.18.39-0ubuntu0.24.04.2-Ubuntu <<>> example.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 40285 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;example.com. IN A

;; Query time: 0 msec ;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP) ;; WHEN: Fri Mar 13 19:56:23 GMT 2026 ;; MSG SIZE rcvd: 40

Command "ip" is unknown, try "ip address help".

How to enable Firefox to display local HTML files -- file: URLs -- that are only referenced locally? https://askubuntu.com/questions/1564795/how-to-enable-firefox-to-display-local-html-files-file-urls-that-are-only

For security reasons, Firefox and other browsers block local file: URLs like file:///tmp/foo.html that are linked from external web pages. That makes sense to me. But it also blocks access to file: URLs like file:///tmp/foo.html when I manually paste them into the address bar, or link them from another local file such as file:///tmp/bar.html , which would not be a security risk. I also cannot right-click on a local HTML file and open it in Firefox to preview it, which is ridiculously frustrating. Furthermore -- and contradictorily -- Firefox allows me to set my home page to file:///tmp/foo.html , but it does not allow me to set my "new tab" page to file:///tmp/foo.html . An extension exists to address the "new tab" problem, but it does not address the rest of these restrictions.

How can I enable Firefox to display file: URLs that are referenced only from other file: URLs, typed into the address bar, opened locally by right-click from the file manager, or specified as my "new tab" page?

This page says I can disable that security check for specific sites, but I do not know how to specify my local file system as a "site".

Output of lsusb command and uname, in case that helps:

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 004: ID 0e8d:e025 MediaTek Inc. Wireless_Device
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

$ uname -a
Linux [redacted] 6.17.0-1012-oem #12-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 10 04:51:46 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
Is there any way to keep PC from suspending while playing audio? https://askubuntu.com/questions/1564792/is-there-any-way-to-keep-pc-from-suspending-while-playing-audio

Playing audio like Spotify playlist doesn't keep Ubuntu from suspending, when "suspend after [] minutes" is turned on. I tried to find a solution for a good long while in the process of switching to Ubuntu before giving up and turning off 'suspend automatically' entirely.

Playing videos, on the other hand, works just fine and will keep my PC's screen from turning off or my PC from suspending. It also doesn't suspend while downloading files.

To be clear: I don't want to prevent my screen from sleeping while there's only audio (no video) playing.

I tried this script but I'm not sure if I installed it correctly, or if there's some other issue. It didn't work when I tested it with Spotify and it in fact seemed to stop me from manually turning off my PC by clicking 'power off' (it froze on a half dimmed screen until I clicked the physical power button).

Of course, I'd like to suspend automatically after a set time when my PC is not playing audio, to save power. Is there any way to do this? Is it maybe Spotify itself that's the problem, and if I play my music in another app it won't automatically suspend?

I want to stop my PC from suspending while Spotify is playing, even when it's playing in the background (which is why the programs that keep your PC awake when there's a full-screen application aren't suitable).

Kernel Linux vs BIOS Dell - A fan shutdown problem https://askubuntu.com/questions/1564791/kernel-linux-vs-bios-dell-a-fan-shutdown-problem

Notebook: Dell inspiron i14-3442-a40 bios a16 8gb ram 2ssd(480gb+1tb)
Ubuntu System 24.04.3

The problem related to the fan on this notebook is as follows:

I've been using Ubuntu for 20 years and for the first time a fan shutdown problem arose regardless of the distribution tested (especially kernel 6.14). When the command to turn off the operating system (and necessarily the notebook) is given, the fan does not turn off and the processor continues to heat up. I then have to press the power button for 5 seconds to be able to turn off the fan and processor permanently. I need to find a solution via Linux because that's where the problem arose a few months ago. believe. I had to reserve an external SSD to install Windows on my notebook to download the solution from the Dell channel, but when I return to Linux, the problem returns.

https://answers.launchpad.net/ubuntu/+question/823626

Cheap keyboard's backlight isn't working [closed] https://askubuntu.com/questions/1564788/cheap-keyboards-backlight-isnt-working

I recently switched to Ubuntu and noticed that my keyboard's LED backlight isn't working. The backlight is turned on and off under Scroll Lock. The keyboard is from the BLOW brand, part of a keyboard and mouse set. I've searched online, but I haven't found anything.

llama-cli -m .gguf -p "..." >> Hello.txt does not put the model's output into the file https://askubuntu.com/questions/1564784/llama-cli-m-gguf-p-hello-txt-does-not-put-the-models-output-into-th
raphy@raphy:/2HardDisk/llama.cpp$ ./builddir/bin/llama-cli -m ./models/DeepSeek-R1-0528-Qwen3-8B-UD-Q8_K_XL.gguf -p 
 "give me a random sentence" >> Hello.txt 

Loading model...  


▄▄ ▄▄
██ ██
██ ██  ▀▀█▄ ███▄███▄  ▀▀█▄    ▄████ ████▄ ████▄
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██    ██    ██ ██ ██ ██
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
                                    ██    ██
                                ▀▀    ▀▀

build      : b8256-f76565db9
model      : DeepSeek-R1-0528-Qwen3-8B-UD-Q8_K_XL.gguf
modalities : text

available commands:
  /exit or Ctrl+C     stop or exit
  /regen              regenerate the last response
  /clear              clear the chat history
  /read               add a text file


> give me a random sentence

[Start thinking]
<think>
Okay, user just asked for a random sentence. That's pretty straightforward, but let's think about why they might want that.

Hmm, maybe they're practicing English and need filler text? Or perhaps they're a writer looking for inspiration? Could also be     
a teacher preparing exercises. The simplicity of the request makes me think they just need quick material without context.

The user didn't specify any criteria like length, tone, or subject, so I'll keep it neutral and universal. A simple, common 
sentence should work best here - no need to overcomplicate things unless they ask for specific variations.

I should pick something that feels natural but isn't too mundane. The example sentence should show good grammar but also
have some slight complexity to be interesting. 

"Cheerful squirrels gathered berries under the oak tree" seems appropriate - it's vivid enough to be memorable but simple
 enough for any purpose. The mix of concrete details (squirrels, berries, oak tree) and abstract quality (cheerful) makes it 
versatile.

Better keep it to one sentence since they asked for "a random sentence" specifically. If they need more, they can ask. Short 
and sweet is best for this situation.

[End thinking]


Cheerful squirrels gathered berries under the oak tree.

[ Prompt: 7.6 t/s | Generation: 1.2 t/s ]

> 

But the model's output of llama-cli is not in txt file which is empty:

raphy@raphy:/2HardDisk/llama.cpp$ ls -lah | grep Hello.txt 
-rw-rw-r--  1 raphy raphy    0 Mar 13 12:09 Hello.txt

raphy@raphy:/2HardDisk/llama.cpp$ cat Hello.txt 
raphy@raphy:/2HardDisk/llama.cpp$ 

The same result - ouput not poured into file, if I do > instead of >> :

raphy@raphy:/2HardDisk/llama.cpp$ ./builddir/bin/llama-cli -m ./models/DeepSeek-R1-0528-Qwen3-8B-UD-Q8_K_XL.gguf -p 
 "give me a random sentence" > Hello.txt 

OS: Ubuntu 24.04

What am I doing wrong and/or missing? How to make it work?

Update 01: The suggestion of @terdon seems, somehow, working roughly fine :

raphy@raphy:/2HardDisk/llama.cpp$ script -c './builddir/bin/llama-
cli -m ./models/DeepSeek-R1-0528-Qwen3-8B-UD-Q8_K_XL.gguf -p "give
 me a random sentence"' -O Hello.txt
Script started, output log file is 'Hello.txt'.

raphy@raphy:/2HardDisk/llama.cpp$ nano Hello.txt : 

  Script started on 2026-03-13 13:36:51+01:00 [COMMAND="./builddir/bin/llama-cli -m ./models/DeepSeek-R1-0528-Qwen3-8B-UD-Q8_K_XL.gguf -p "give me a random sentence"" TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS=">
  
  Loading model... |^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H->
  
  
  ▄▄ ▄▄
  ██ ██
  ██ ██  ▀▀█▄ ███▄███▄  ▀▀█▄    ▄████ ████▄ ████▄
  ██ ██ ▄█▀██ ██ ██ ██ ▄█▀██    ██    ██ ██ ██ ██
  ██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
                                      ██    ██
                                      ▀▀    ▀▀
  
  build      : b8256-f76565db9
  model      : DeepSeek-R1-0528-Qwen3-8B-UD-Q8_K_XL.gguf
  modalities : text
  
  available commands:
    /exit or Ctrl+C     stop or exit
    /regen              regenerate the last response
    /clear              clear the chat history
    /read               add a text file
  
  ^[[1m^[[32m
  > give me a random sentence
  ^[[0m
  |^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H ^H^[[90m[Start thinking]
  <think>
  Okay, the user just asked for a random sentence. It's a simple request, but I need to think about why they might be asking this. Maybe they're looking for inspiration, or perhaps they want to break the monotony of>
  
  Sometimes users ask for random things to spark creativity or to test how a tool works. Since they didn't specify any theme or context, I can go with a neutral, imaginative sentence.
  
  Hmm, I should avoid anything too sensitive or controversial—keep it light and fun. Maybe something poetic or unexpected? The sentence should stand out but not be overwhelming.
  
  Let me brainstorm... "The city slept under a blanket of stars" feels atmospheric and slightly mysterious. It's not too cliché and has a rhythm to it. I'll go with that.
  
  The user didn't give any details, so I won't overthink it. Just deliver a random sentence and smile. If they want something specific, they can clarify.
  
  [End thinking]
  
  ^[[0m
  The city slept under a blanket of stars.
  ^[[35m
  [ Prompt: 7.5 t/s | Generation: 1.5 t/s ]
  ^[[0m^[[1m^[[32m
  >
  Script done on 2026-03-13 13:51:59+01:00 [COMMAND_EXIT_CODE="137"]
  

It's not the optimal solution, but meanwhile they resolve the issue, it's fine

Brother printer installed OK but prints stay "paused" https://askubuntu.com/questions/1564783/brother-printer-installed-ok-but-prints-stay-paused

New (refurb) Windows Dell Optiplex. Clean install dual-boot Ubuntu 24.04.4 LTS. Attached printer Brother HL2135W. Installed drivers as per Brother instructions. A printed document appears on the print queue, but is paused. I click the print button but it still won't print - just returns to paused. Brother Linux download page only has RPM and DEB options, tried both. The same printer worked on my previous system, which was identical.

Any ideas, please?

Hard freeze (display on, system unresponsive) on Ubuntu 24.04 LTS + Ryzen 9 7900X + RTX 3090 — triggered by Android Emulator https://askubuntu.com/questions/1564153/hard-freeze-display-on-system-unresponsive-on-ubuntu-24-04-lts-ryzen-9-7900

I've redacted using my post with a help form LLM so it may look artificial, but the problem is very real and I am bit lost what might be wrong here. I would appreciate any help or tips. Thanks in advance. :)

Problem

System hard-freezes randomly — display stays on but the system is completely unresponsive (no mouse, no keyboard, no SysRq). Requires hard power-off. No errors in kernel logs before freeze (journalctl -k -b -1 -p err..alert is clean). The freeze is most reliably triggered by starting the Android Emulator (QEMU-based), but has also occurred during Android Studio package installation. Normal desktop usage (browser, IDE without emulator) appears stable for hours.

System specs

  • Motherboard: ASUS ProArt B650-CREATOR (BIOS 3304)
  • CPU: AMD Ryzen 9 7900X (Zen 4, 24 threads)
  • RAM: 64 GB DDR5
  • GPU: NVIDIA GeForce RTX 3090
  • Storage: Seagate Game Drive NVMe 2TB (ZP2000GP300001, firmware SUDSM001)
  • OS: Ubuntu 24.04.4 LTS
  • Kernel: 6.17.0-14-generic (HWE), also tested 6.14.0-37-generic
  • Display server: X11 / GNOME 46
  • NVIDIA driver: tested 580.126.09 and 570.211.01

What I've tried (all failed to fix the freeze)

Kernel

  • Tested kernel 6.17.0-14-generic (HWE) — freeze
  • Rolled back to kernel 6.14.0-37-generic — freeze

NVIDIA driver

  • Tested nvidia-driver-580 (580.126.09) — freeze
  • Switched to nvidia-driver-570 (570.211.01) — freeze
  • Disabled GSP firmware: options nvidia NVreg_EnableGpuFirmware=0 in /etc/modprobe.d/nvidia-gsp.conf — freeze

Android Emulator isolation tests

  • Emulator with host GPU — freeze
  • Emulator with -gpu swiftshader_indirect (software rendering) — freeze
  • Emulator with -gpu off -no-window (no GUI at all) — freeze
  • Emulator with -accel off (no KVM, pure TCG) — freeze
  • Emulator with -gpu off -accel off -no-window (minimal mode) — freeze
  • Emulator with all of the above + AVD on tmpfs (RAM disk, no NVMe I/O) — freeze
  • Tried older emulator version (35.1.20) — segfault (incompatible with android-36 image), then freeze shortly after

NVMe

  • Disabled APST (Autonomous Power State Transition): nvme_core.default_ps_max_latency_us=0 kernel parameter — confirmed APSTE: Disabled — freeze
  • NVMe SMART: healthy (0% used, 0 media errors, 100% spare)
  • Note: Seagate Game Drive has D3 entry latency set to 10 seconds and 368 Invalid Field in Command errors in NVMe error log

BIOS / platform

  • Disabled Global C-state Control (AMD CBS → CPU Common Options) — freeze
  • Disabled Integrated Graphics (NB Configuration) — freeze
  • SVM Mode (virtualization) confirmed Enabled
  • Tested with iommu=off kernel parameter — freeze

Memory / CPU stability

  • stress-ng --cpu 24 --vm 8 --vm-bytes 75% --timeout 20mPASSED (no freeze, no errors)
  • 64 GB RAM, 8 GB swap — plenty of headroom, no OOM
  • fTPM stress test (tpm2_getrandom × 1000) — no freeze (but max hash size limited to 48 bytes)

Other

  • Android Studio without emulator (--disable-gpu) — stable for 30+ min
  • Normal desktop usage — stable for hours
  • journalctl -k -b -1 after each freeze shows no GPU/OOM/MCE/EDAC/I/O/lockup/watchdog errors — the kernel logs nothing before the hang
  • 37 unsafe shutdowns accumulated from hard resets

Key observations

  1. Freeze often gets triggered when Android Emulator starts — even in the most minimal mode (-no-window -gpu off -accel off on tmpfs)
  2. stress-ng (CPU + memory) does not trigger the freeze
  3. Kernel logs are clean before each freeze — no error, no warning, no trace
  4. The freeze is a hard lockup — no SysRq, no SSH, no recovery possible without power-off

Questions

  1. Has anyone experienced similar hard freezes??
  2. Any other suggestions for what to try?

Thanks in advance for any help.

How to disable/enable keyboard/mouse (input devices) on Ubuntu 24.04 LTS Wayland? https://askubuntu.com/questions/1538013/how-to-disable-enable-keyboard-mouse-input-devices-on-ubuntu-24-04-lts-wayland

I need a cli command to disable input devices (keyboard and mouse), as well as a command to enable them again.

To disable input devices on Xorg it's: xinput float <id#>, and to enable them it's xinput reattach <id#>, but I'm on Wayland, how to do it there?

Ubuntu 24.04 - Logout when screen reduction button clicked https://askubuntu.com/questions/1531521/ubuntu-24-04-logout-when-screen-reduction-button-clicked

Op Sys: 24.04.1 LTS

CPU: i5-7xxx

RAM: 16 GB

GPU: AMD Radeon R7 M445

Screen Compositor: X11 (Wayland causes Firefox and Thunderbird to flicker too much and disabling it is the only available remedy)

I usually get a system crash forcing logout when I try to reduce the window size from its maximum to a medium size, i.e. the double square button to the single square one.

It has happened with Sublime Text (v. 4180) and Firefox (v. 131.0.3).

It can also happen when more than one document is being viewed simultaneously with LibreOffice Writer. In fact, any mildly videographically challenging task seems to trigger this crash.

It is such an obvious cause that I wonder how it could have survived the routine testing done on op systems. Yet here it is.

To Reproduce: Open Firefox/ST on a wide-screen monitor and then open another app where you might need to have on half the screen so that content in Firefox may be compared with that in ST. Doing this requires you to reduce the screen width of each app to around half the monitor width.

You will find that the app whose screen is being reduced will not respond.

Then it shows this on the monitor

System crash message

and you cannot do anything to unfreeze the screen bar click on the Logout button.

After all the work gone into Ubuntu over the years one would think that such basic videographic challenges should not come near GPU overload.

EDIT

The only "safe" way to reduce the screen size is to not click on the Restore Down button but instead click on the screen's top bar (away from the top right corner buttons) and drag it to the left.

But sometimes even doing this innocuous task causes a screen crash and logout demand . . .

Cannot use systemctl as a user after a "sudo su - media" : Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined https://askubuntu.com/questions/1461457/cannot-use-systemctl-as-a-user-after-a-sudo-su-media-failed-to-connect-to

I'm trying to create a service as a user but it does not work :

admin $ sudo su - media
$ systemctl --user edit fmgr-copro.service --full --force
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
$ exit
admin $ systemctl status dbus -n 2
● dbus.service - D-Bus System Message Bus
     Loaded: loaded (/lib/systemd/system/dbus.service; static)
     Active: active (running) since Wed 2023-03-22 15:07:24 CET; 1 week 0 days ago
TriggeredBy: ● dbus.socket
       Docs: man:dbus-daemon(1)
   Main PID: 869 (dbus-daemon)
      Tasks: 1 (limit: 38289)
     Memory: 1.7M
        CPU: 4.125s
     CGroup: /system.slice/dbus.service
             └─869 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only

Mar 28 10:09:57 myServer dbus-daemon[869]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' r>
Mar 28 10:09:57 myServer dbus-daemon[869]: [system] Successfully activated service 'org.freedesktop.hostname1'
admin $ sudo su - media
$ echo $XDG_RUNTIME_DIR

$ echo $DBUS_SESSION_BUS_ADDRESS

$

EDIT0 : It seems the DBUS_SESSION_BUS_ADDRESS and XDG_RUNTIME_DIR variabes are cleared after a sudo su - media.

Can you help me ?

How to fix '* failed to start daemon error: cannot connect to daemon' on Linux ubuntu https://askubuntu.com/questions/1457142/how-to-fix-failed-to-start-daemon-error-cannot-connect-to-daemon-on-linux-u

I had to install the adb tools on my Linux ubuntu with the command line but when I execute the command adb devices, I have this return in my terminal :

uriel@uriel-linux-ubuntu:~$ adb devices

List of devices attached
adb server version (41) doesn't match this client (39); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 8577
--- adb starting (pid 8577) ---
adb I 02-28 16:19:21  8577  8577 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 02-28 16:19:21  8577  8577 main.cpp:57] Version 1:8.1.0+r23-5ubuntu2
adb I 02-28 16:19:21  8577  8577 main.cpp:57] Installed as /usr/lib/android-sdk/platform-tools/adb
adb I 02-28 16:19:21  8577  8577 main.cpp:57] 
adb I 02-28 16:19:21  8577  8577 adb_auth_host.cpp:416] adb_auth_init...
adb I 02-28 16:19:21  8577  8577 adb_auth_host.cpp:174] read_key_file '/home/uriel/.android/adbkey'...
adb I 02-28 16:19:21  8577  8577 adb_auth_host.cpp:391] adb_auth_inotify_init...
adb server killed by remote request

failed to start daemon
error: cannot connect to daemon

uriel@uriel-linux-ubuntu:~$

How should I solve this problem?

Connect Wayland screenshot tool to ksnip https://askubuntu.com/questions/1442468/connect-wayland-screenshot-tool-to-ksnip

We use ksnip as a company-standard cross platform screenshot annotation tool. When switching to Wayland, I can take only screenshots via the portal, which is not very efficient.

Is it possible to launch ksnip automatically after taking a screenshot with the gnome / wayland screenshot tool which is default in Ubuntu 22.04 ? (how is that tool called?)

Currently, as a workaround, I can take a screenshot, copy to clipboard, open ksnip, annoate, export which is very cumbersome.

Ctrl+C and Ctrl+V for copy and paste not working on Ubuntu 22.04 https://askubuntu.com/questions/1439403/ctrlc-and-ctrlv-for-copy-and-paste-not-working-on-ubuntu-22-04

I am not able to use the shortcuts keys Ctrl+C and Ctrl+V for copy and paste, respectively, on my Ubuntu 22.04. However, Ctrl+A works fine. Ctrl+Alt+T also does not work.

Regular, intermittent loss of internet access. Network Manager seems to blame https://askubuntu.com/questions/1438569/regular-intermittent-loss-of-internet-access-network-manager-seems-to-blame

Every so many minutes (ranges from 5-30) I lose internet connectivity. It seems to coincide with the following journalctl entry:

manager: NetworkManager state is now CONNECTED_SITE

Restarting NM temporarily repairs the connectivity and is reflected in journalctl:

manager: NetworkManager state is now CONNECTED_GLOBAL

Sometimes NM repairs itself, but then breaks soon after, as shown by the following journalctl entries, which are the only log of this problem I have found so far.

    Nov 01 11:55:16 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667318116.4230] manager: NetworkManager state is now CONNECTED_SITE
Nov 01 11:35:10 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667316910.1286] manager: NetworkManager state is now CONNECTED_GLOBAL
Nov 01 11:35:10 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667316910.0496] manager: NetworkManager state is now CONNECTED_SITE
Nov 01 11:29:51 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667316591.1179] manager: NetworkManager state is now CONNECTED_GLOBAL
Nov 01 11:29:49 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667316589.0502] manager: NetworkManager state is now CONNECTED_SITE
Nov 01 10:54:29 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667314469.1204] manager: NetworkManager state is now CONNECTED_GLOBAL
Nov 01 10:54:28 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667314468.0475] manager: NetworkManager state is now CONNECTED_SITE
Nov 01 10:29:09 acer-Aspire-E5-575 NetworkManager[897]: <info>  [1667312949.2071] manager: NetworkManager state is now CONNECTED_GLOBAL

I've already adjusted the powersave mode in /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf as described in related posts, but without success.

Ubuntu Server 20.04.4 network interface status unclaimed https://askubuntu.com/questions/1401790/ubuntu-server-20-04-4-network-interface-status-unclaimed

I just installed the latest edition of Ubuntu Server on a brand new PC I'm building, but I do not have a network connection. The motherboard is an MSI B560M PRO-E with an Intel i5-10400 CPU.

I ran the lshw -C network command and it shows the network status as UNCLAIMED.

Ubuntu 20.04.4 LTS nimbusnode01 tty1

nimbusnode01 login: fluxnode
Password: 
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-30-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

System information as of Sun 10 Apr 2022 10:46:28 AM UTC

System load:  0.0                Swap usage:  0%            Users logged in: 0
Usage of /:   2.3% of 456.42GB   Temperature: 37.0 C
Memory usage: 1%                 Processes:   206

0 updates can be applied immediately.

Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

Your Hardware Enablement Stack (HWE) is supported until April 2025.

Last login: Sun Apr 10 10:36:29 UTC 2022 on tty1
fluxnode@nimbusnode01:~$ sudo su -
[sudo] password for fluxnode: 
root@nimbusnode01:~# lshw -C network
  *-network UNCLAIMED
       description: Ethernet controller
       product: Ethernet Connection (10) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       version: 11
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi cap_list
       configuration: latency=0
       resources: memory:81200000-8121ffff
root@nimbusnode01:~#

I read in another post that my yaml file could be broken or I have a missing driver, but I'm not sure. This is all new to me, as I'm very new to Linux.

Here is a screenshot of the commands you requested. I was able to tether my Android phone for an internet connection (usb0) and run sudo apt-get update and sudo apt-get upgrade. I ran both twice and rebooted. I also ran sudo apt install net-tools and sudo apt install dkms. The install is Server.

SecondScreenshotCmdOutputs

Here is screenshot of sudo lshw -C network command.

ThirdScreenshotCmdOutput

In continuing to work on this issue I ran two more commands: lspci -nn and lspci -nnk | grep -iA3 net.

Here is the output from the bios-version command.

FourthScreenshotCmdOutputs

Here is the output from running lshw -C network command from booting to Ubuntu Desktop live via USB.

FifthScreenshotCmdOutput

The make command appears to be failing. Here is a list of the commands I ran up to this point.

sudo tar zxf e1000e-3.8.4.tar.gz
sudo cd e1000e-3.8.4/src/
sudo make install
sudo modprobe e1000e
sudo reboot
ip a # notate name of the device
sudo nano /etc/netplan/00-installer-config.yaml

   network:
  ethernets:
    <NAME OF DEVICE>:
      dhcp4: true
  version: 2

Save with Ctrl + X.

sudo netplan apply
sudo reboot

Copy or move the file from the USB drive to /home/fluxnode/e1000e (I'm still working on determining commands needed for this).

lsblk
mkdir /home/fluxnode/e1000e
udisksctl mount -b /dev/sda1
cp /media/root/46F0-F603/e1000e-3.8.4.tar.gz /home/fluxnode/e1000e/
cd /lib/modules/$(uname -r)/kernel/drivers/net/ethernet/intel/e1000e/
sudo mv e1000e.ko e1000e.ko.HOLD
cd
exit
cd e1000e
sudo tar zxf e1000e-3.8.4.tar.gz
cd e1000e-3.8.4/src/
sudo make

Bootutil Screenshot Output:

Screenshot

What options do I have to upgrade an unsupported i386 version of Ubuntu to an operating system with newer packages? https://askubuntu.com/questions/1361769/what-options-do-i-have-to-upgrade-an-unsupported-i386-version-of-ubuntu-to-an-op

I am trying to upgrade Ubuntu 18.04 to 21.04 (i386 architecture) on a Dell laptop in order to be able to install proton VPN.

Output message:

There will not be any further Ubuntu releases 
for this system's 'i386' architecture. Updates for 
Ubuntu 18.04 LTS will continue until April 2023.

Are there any options to upgrade perhaps to another newer Linux platform that would support a GTK version that would be compatible with Proton VPN or is my only option to upgrade my hard disk?

dpkg error: '/etc/resolv.conf' and '/run/systemd/resolve/stub-resolv.conf' are the same file https://askubuntu.com/questions/1342562/dpkg-error-etc-resolv-conf-and-run-systemd-resolve-stub-resolv-conf-are-t

Friends,

I am trying to install the package software-properties-common on Ubuntu 20.04 but after a I run sudo apt-get install -y software-properties-common I get the following error:

cp: '/etc/resolv.conf' and '/run/systemd/resolve/stub-resolv.conf' are the same
file

dpkg: error processing package systemd (--configure):
      installed systemd package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
   systemd
   E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried this:

sudo rm -f /etc/resolv.conf 
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf  

After that I restarted the system and tried to install the package again but with no success. I faced the same error. Any idea how I could solve this problem?

Run mysqld with root privileges https://askubuntu.com/questions/1340626/run-mysqld-with-root-privileges

I wanted to run mysqld as the root user.

I'm running Ubuntu 21.04 and have installed mysql-server.

MySQL version:

mysql  Ver 8.0.25-0ubuntu0.21.04.1 for Linux on x86_64 ((Ubuntu))

Changing the file ownership to root

chown -R root /var/lib/mysql

/etc/mysql/mysql.conf.d/mysqld.cnf

[mysqld]
user        = root
pid-file    = /var/run/mysqld/mysqld.pid
socket  = /var/run/mysqld/mysqld.sock
port        = 3306
datadir = /var/lib/mysql

When I start the MySQL service via:

sudo service mysql start

I am getting an error:

mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2021-05-25 08:29:56 PDT; 23s ago
    Process: 2413 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
    Process: 2421 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
   Main PID: 2421 (code=exited, status=1/FAILURE)
     Status: "Server startup in progress"
      Error: 13 (Permission denied)

However, if I change the file permissions of /var/lib/mysql back to the mysql user, the service starts.

Please let me know the solution for how I can run this as root.

If I am doing anything wrong please suggest clear steps.

Ref: [1]: https://dev.mysql.com/doc/refman/8.0/en/changing-mysql-user.html

Ubuntu 20.04 random freezes https://askubuntu.com/questions/1294971/ubuntu-20-04-random-freezes

I am experiencing weird freeze of Ubuntu 20.04. I cannot move the cursor, audio stops and I have to hard reboot with the power button. I have a Dell Inspiron 15 7501 (+8GB ram installed by myself) since a month or so, and I installed Ubuntu 20.04 with Win10 Home in dual boot as soon as I received the laptop. Everything in Win10 works fine, and also on Ubuntu since yesterday. I have not installed anything in the past few days.

Initially It happened 3 times when having 1 Mozilla tab with Overleaf, some pdfs (2 or 3) and a python3 shell used as a calculator, running nothing. The fourth time I had 3 Mozilla tab and 1 pdf.

I already tried to increase the swap memory from 2Gb to 8Gb as suggested here Ubuntu 20.04 random freeze ups but it didn't work. I post here the link to the system log files retrieved with the command cat /var/log/syslog of the third and fourth freeze:

3rd - https://drive.google.com/file/d/14mukUNN1VoGJjiKXhw29WHauxNjkjspY/view?usp=sharing

Nov 24 12:32:50 faddari PackageKit: refresh-cache transaction /261_badccdac from uid 1000 finished with success after 4374ms
Nov 24 12:32:50 faddari kernel: [   19.051936] kauditd_printk_skb: 10 callbacks suppressed
Nov 24 12:32:50 faddari kernel: [   19.051937] audit: type=1400 audit(1606217570.653:57): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:50 faddari kernel: [   19.051940] audit: type=1400 audit(1606217570.653:58): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:50 faddari kernel: [   19.051942] audit: type=1400 audit(1606217570.653:59): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/magic" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:50 faddari kernel: [   19.051944] audit: type=1400 audit(1606217570.653:60): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/aliases" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:50 faddari kernel: [   19.051950] audit: type=1400 audit(1606217570.653:61): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/subclasses" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:50 faddari kernel: [   19.051955] audit: type=1400 audit(1606217570.653:62): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/icons" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:50 faddari kernel: [   19.051961] audit: type=1400 audit(1606217570.653:63): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/generic-icons" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:51 faddari rtkit-daemon[834]: Supervising 7 threads of 1 processes of 2 users.
Nov 24 12:32:51 faddari rtkit-daemon[834]: message repeated 5 times: [ Supervising 7 threads of 1 processes of 2 users.]
Nov 24 12:32:51 faddari rtkit-daemon[834]: Successfully made thread 2505 of process 2410 owned by '1000' RT at priority 10.
Nov 24 12:32:51 faddari rtkit-daemon[834]: Supervising 8 threads of 2 processes of 2 users.
Nov 24 12:32:51 faddari systemd[1268]: tracker-extract.service: Succeeded.
Nov 24 12:32:51 faddari rtkit-daemon[834]: Supervising 8 threads of 2 processes of 2 users.
Nov 24 12:32:52 faddari kernel: [   21.020361] audit: type=1400 audit(1606217572.621:64): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/discord/discord.desktop" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:52 faddari kernel: [   21.039771] audit: type=1400 audit(1606217572.641:65): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/gdm/greeter/applications/gnome-initial-setup.desktop" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:52 faddari rtkit-daemon[834]: message repeated 5 times: [ Supervising 8 threads of 2 processes of 2 users.]
Nov 24 12:32:52 faddari snap-store[1777]: xb_builder_node_unlink: assertion 'XB_IS_BUILDER_NODE (self)' failed
Nov 24 12:32:53 faddari kernel: [   21.495484] audit: type=1326 audit(1606217573.097:66): auid=1000 uid=1000 gid=1000 ses=3 pid=1777 comm="pool-org.gnome." exe="/snap/snap-store/467/usr/bin/snap-store" sig=0 arch=c000003e syscall=93 compat=0 ip=0x7fc660664527 code=0x50000
Nov 24 12:32:52 faddari snap-store[1777]: message repeated 101 times: [ xb_builder_node_unlink: assertion 'XB_IS_BUILDER_NODE (self)' failed]
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.Builder.desktop/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.Calculator.desktop/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.clocks.desktop/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.Dictionary.desktop/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.Documents.desktop/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.Evince/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.gedit.desktop/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.Maps.desktop/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: adding wildcard app */*/*/*/org.gnome.Weather/* to plugin cache
Nov 24 12:32:53 faddari snap-store[1777]: Only 0 apps for recent list, hiding
Nov 24 12:32:53 faddari snap-store[1777]: hiding category games featured applications: found only 0 to show, need at least 9
Nov 24 12:32:53 faddari snap-store[1777]: hiding category graphics featured applications: found only 0 to show, need at least 9
Nov 24 12:32:54 faddari systemd[1]: Stopping User Manager for UID 125...
Nov 24 12:32:54 faddari systemd[813]: Stopped target Main User Target.
Nov 24 12:32:54 faddari systemd[813]: Stopped target Sound Card.
Nov 24 12:32:54 faddari systemd[813]: Stopping D-Bus User Message Bus...
Nov 24 12:32:54 faddari systemd[813]: Stopping Virtual filesystem service - Apple File Conduit monitor...
Nov 24 12:32:54 faddari systemd[813]: Stopping Virtual filesystem service...
Nov 24 12:32:54 faddari systemd[813]: Stopping Virtual filesystem service - GNOME Online Accounts monitor...
Nov 24 12:32:54 faddari systemd[813]: Stopping Virtual filesystem service - digital camera monitor...
Nov 24 12:32:54 faddari systemd[813]: Stopping Virtual filesystem service - Media Transfer Protocol monitor...
Nov 24 12:32:54 faddari systemd[813]: Stopping Virtual filesystem service - disk device monitor...
Nov 24 12:32:54 faddari systemd[813]: Stopping Tracker file system data miner...
Nov 24 12:32:54 faddari systemd[813]: Stopping Tracker metadata database store and lookup manager...
Nov 24 12:32:54 faddari tracker-miner-fs[823]: Received signal:15->'Terminato'
Nov 24 12:32:54 faddari systemd[813]: gvfs-gphoto2-volume-monitor.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Virtual filesystem service - digital camera monitor.
Nov 24 12:32:54 faddari systemd[1268]: run-user-125-gvfs.mount: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: run-user-125-gvfs.mount: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: gvfs-mtp-volume-monitor.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Virtual filesystem service - Media Transfer Protocol monitor.
Nov 24 12:32:54 faddari systemd[813]: gvfs-daemon.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Virtual filesystem service.
Nov 24 12:32:54 faddari systemd[1]: run-user-125-gvfs.mount: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: gvfs-goa-volume-monitor.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Virtual filesystem service - GNOME Online Accounts monitor.
Nov 24 12:32:54 faddari tracker-miner-fs[823]: OK
Nov 24 12:32:54 faddari tracker-store[987]: Received signal:15->'Terminato'
Nov 24 12:32:54 faddari tracker-store[987]: OK
Nov 24 12:32:54 faddari systemd[813]: tracker-store.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Tracker metadata database store and lookup manager.
Nov 24 12:32:54 faddari systemd[813]: dbus.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped D-Bus User Message Bus.
Nov 24 12:32:54 faddari systemd[813]: tracker-miner-fs.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Tracker file system data miner.
Nov 24 12:32:54 faddari systemd[813]: gvfs-udisks2-volume-monitor.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Virtual filesystem service - disk device monitor.
Nov 24 12:32:54 faddari systemd[813]: gvfs-afc-volume-monitor.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Virtual filesystem service - Apple File Conduit monitor.
Nov 24 12:32:54 faddari systemd[813]: Stopped target Basic System.
Nov 24 12:32:54 faddari systemd[813]: Stopped target Paths.
Nov 24 12:32:54 faddari systemd[813]: ubuntu-report.path: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Stopped Pending report trigger for Ubuntu Report.
Nov 24 12:32:54 faddari systemd[813]: Stopped target Sockets.
Nov 24 12:32:54 faddari systemd[813]: Stopped target Timers.
Nov 24 12:32:54 faddari systemd[813]: dbus.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed D-Bus User Message Bus Socket.
Nov 24 12:32:54 faddari systemd[813]: dirmngr.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed GnuPG network certificate management daemon.
Nov 24 12:32:54 faddari systemd[813]: gpg-agent-browser.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Nov 24 12:32:54 faddari systemd[813]: gpg-agent-extra.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Nov 24 12:32:54 faddari systemd[813]: gpg-agent-ssh.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Nov 24 12:32:54 faddari systemd[813]: gpg-agent.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed GnuPG cryptographic agent and passphrase cache.
Nov 24 12:32:54 faddari systemd[813]: pk-debconf-helper.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed debconf communication socket.
Nov 24 12:32:54 faddari systemd[813]: pulseaudio.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed Sound System.
Nov 24 12:32:54 faddari systemd[813]: snapd.session-agent.socket: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Closed REST API socket for snapd user session agent.
Nov 24 12:32:54 faddari systemd[813]: Reached target Shutdown.
Nov 24 12:32:54 faddari systemd[813]: systemd-exit.service: Succeeded.
Nov 24 12:32:54 faddari systemd[813]: Finished Exit the Session.
Nov 24 12:32:54 faddari systemd[813]: Reached target Exit the Session.
Nov 24 12:32:54 faddari systemd[1]: user@125.service: Succeeded.
Nov 24 12:32:54 faddari systemd[1]: Stopped User Manager for UID 125.
Nov 24 12:32:54 faddari systemd[1]: Stopping User Runtime Directory /run/user/125...
Nov 24 12:32:54 faddari snapd[670]: storehelpers.go:551: cannot refresh: snap has no updates available: "core18", "gnome-3-34-1804", "gtk-common-themes", "snap-store", "snapd"
Nov 24 12:32:54 faddari systemd[1268]: run-user-125.mount: Succeeded.
Nov 24 12:32:54 faddari systemd[1]: run-user-125.mount: Succeeded.
Nov 24 12:32:54 faddari systemd[1]: user-runtime-dir@125.service: Succeeded.
Nov 24 12:32:54 faddari systemd[1]: Stopped User Runtime Directory /run/user/125.
Nov 24 12:32:54 faddari systemd[1]: Removed slice User Slice of UID 125.
Nov 24 12:32:55 faddari PackageKit: resolve transaction /262_acbcecee from uid 1000 finished with success after 1033ms
Nov 24 12:32:56 faddari PackageKit: search-file transaction /263_cbbdacce from uid 1000 finished with success after 463ms
Nov 24 12:32:56 faddari PackageKit: get-details transaction /264_edcdabdd from uid 1000 finished with success after 206ms
Nov 24 12:32:56 faddari snap-store[1777]: automatically prevented from changing kind on system/snap/*/desktop/io.snapcraft.snapd-PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4/latest/stable from desktop to unknown!
Nov 24 12:32:56 faddari snapd[670]: storehelpers.go:551: cannot refresh: snap has no updates available: "core18", "gnome-3-34-1804", "gtk-common-themes", "snap-store", "snapd"
Nov 24 12:32:56 faddari snap-store[1777]: automatically prevented from changing kind on system/snap/*/runtime/io.snapcraft.core18-CSO04Jhav2yK0uz97cr0ipQRyqg0qQL6/latest/stable from runtime to unknown!
Nov 24 12:32:57 faddari kernel: [   25.508887] audit: type=1400 audit(1606217577.109:67): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.508895] audit: type=1400 audit(1606217577.109:68): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.508915] audit: type=1400 audit(1606217577.109:69): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/magic" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.508947] audit: type=1400 audit(1606217577.109:70): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/aliases" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.508953] audit: type=1400 audit(1606217577.109:71): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/subclasses" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.508966] audit: type=1400 audit(1606217577.109:72): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/icons" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.509000] audit: type=1400 audit(1606217577.109:73): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/generic-icons" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.844405] audit: type=1400 audit(1606217577.445:74): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Yaru/icon-theme.cache" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.844412] audit: type=1400 audit(1606217577.445:75): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Yaru/8x8/emblems/" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:57 faddari kernel: [   25.847171] audit: type=1400 audit(1606217577.449:76): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Yaru/icon-theme.cache" pid=1777 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 24 12:32:58 faddari snapd[670]: storehelpers.go:551: cannot refresh: snap has no updates available: "core18", "gnome-3-34-1804", "gtk-common-themes", "snap-store", "snapd"
Nov 24 12:32:58 faddari snapd[670]: autorefresh.go:410: auto-refresh: all snaps are up-to-date
Nov 24 12:32:58 faddari systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Nov 24 12:32:58 faddari gnome-shell[1526]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Nov 24 12:33:04 faddari systemd[1]: systemd-fsckd.service: Succeeded.
Nov 24 12:33:04 faddari rtkit-daemon[834]: Supervising 8 threads of 2 processes of 1 users.
Nov 24 12:33:04 faddari rtkit-daemon[834]: Supervising 8 threads of 2 processes of 1 users.
Nov 24 12:33:02 faddari systemd-timesyncd[567]: Initial synchronization to time server 91.189.94.4:123 (ntp.ubuntu.com).
Nov 24 12:33:04 faddari systemd[1]: fprintd.service: Succeeded.
Nov 24 12:33:08 faddari tracker-store[1355]: OK
Nov 24 12:33:08 faddari systemd[1268]: tracker-store.service: Succeeded.
Nov 24 12:33:09 faddari wpa_supplicant[676]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-65 noise=9999 txrate=6000
Nov 24 12:33:10 faddari systemd[1]: systemd-hostnamed.service: Succeeded.
Nov 24 12:33:10 faddari systemd[1]: systemd-localed.service: Succeeded.

############################################################## COMPLETE FREEZE HERE (I THINK) #####################################################################################################

Nov 24 12:33:29 faddari NetworkManager[628]: <warn>  [1606217609.9004] dhcp6 (wlp0s20f3): request timed out
Nov 24 12:33:29 faddari NetworkManager[628]: <info>  [1606217609.9005] dhcp6 (wlp0s20f3): state changed unknown -> timeout
Nov 24 12:33:29 faddari NetworkManager[628]: <info>  [1606217609.9006] dhcp6 (wlp0s20f3): canceled DHCP transaction
Nov 24 12:33:29 faddari NetworkManager[628]: <info>  [1606217609.9006] dhcp6 (wlp0s20f3): state changed timeout -> done
Nov 24 12:33:40 faddari dbus-daemon[1280]: [session uid=1000 pid=1280] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.43' (uid=1000 pid=1526 comm="/usr/bin/gnome-shell " label="unconfined")
Nov 24 12:33:40 faddari systemd[1268]: Starting Virtual filesystem metadata service...
Nov 24 12:33:40 faddari dbus-daemon[1280]: [session uid=1000 pid=1280] Successfully activated service 'org.gtk.vfs.Metadata'
Nov 24 12:33:40 faddari systemd[1268]: Started Virtual filesystem metadata service.
Nov 24 12:33:42 faddari dbus-daemon[1280]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/gtk/Notifications" interface="org.gtk.Notifications" member="RemoveNotification" mask="send" name="org.gtk.Notifications" pid=1777 label="snap.snap-store.ubuntu-software" peer_pid=1526 peer_label="unconfined"
Nov 24 12:34:49 faddari systemd[1268]: Started Application launched by gnome-shell.
Nov 24 12:34:49 faddari dbus-daemon[1280]: [session uid=1000 pid=1280] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.122' (uid=1000 pid=2854 comm="/usr/bin/gnome-terminal.real --window " label="unconfined")
Nov 24 12:34:49 faddari systemd[1268]: Created slice apps.slice.
Nov 24 12:34:49 faddari systemd[1268]: Created slice apps-org.gnome.Terminal.slice.
Nov 24 12:34:49 faddari systemd[1268]: Starting GNOME Terminal Server...
Nov 24 12:34:49 faddari dbus-daemon[1280]: [session uid=1000 pid=1280] Successfully activated service 'org.gnome.Terminal'
Nov 24 12:34:49 faddari systemd[1268]: Started GNOME Terminal Server.
Nov 24 12:34:49 faddari systemd[1268]: Started VTE child process 2865 launched by gnome-terminal-server process 2857.
Nov 24 12:34:49 faddari systemd[1268]: gnome-launched-org.gnome.Terminal.desktop-2851.scope: Succeeded.

4th - https://drive.google.com/file/d/1CBTFliwg8RA96UpeMGsGuuJ3ZBKBdM73/view?usp=sharing

Edit as requested:

free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       1,5Gi        12Gi       220Mi       1,4Gi        13Gi
Swap:         8,0Gi          0B       8,0Gi
sysctl vm.swappiness
vm.swappiness = 60
sudo lshw -C memory

PCI (sysfs)  
  *-firmware                
       description: BIOS
       vendor: Dell Inc.
       physical id: 0
       version: 1.3.0
       date: 08/18/2020
       size: 1MiB
       capacity: 24MiB
       capabilities: pci pnp upgrade shadowing cdboot bootselect edd int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
  *-cache:0
       description: L1 cache
       physical id: 700
       slot: L1 Cache
       size: 256KiB
       capacity: 256KiB
       capabilities: synchronous internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: 701
       slot: L2 Cache
       size: 1MiB
       capacity: 1MiB
       capabilities: synchronous internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: 702
       slot: L3 Cache
       size: 8MiB
       capacity: 8MiB
       capabilities: synchronous internal write-back unified
       configuration: level=3
  *-memory
       description: System Memory
       physical id: 1000
       slot: System board or motherboard
       size: 16GiB
     *-bank:0
          description: SODIMM DDR4 Synchronous 3200 MHz (0,3 ns)
          vendor: 000000003180
          physical id: 0
          serial: 00000000
          slot: Motherboard
          size: 8GiB
          width: 64 bits
          clock: 3200MHz (0.3ns)
     *-bank:1
          description: SODIMM DDR4 Synchronous 3200 MHz (0,3 ns)
          product: CT8G4SFRA32A.C4FE
          vendor: 859B00000000
          physical id: 1
          serial: E3742A1E
          slot: DIMM B
          size: 8GiB
          width: 64 bits
          clock: 3200MHz (0.3ns)
  *-memory UNCLAIMED
       description: RAM memory
       product: Comet Lake PCH Shared SRAM
       vendor: Intel Corporation
       physical id: 14.2
       bus info: pci@0000:00:14.2
       version: 00
       width: 64 bits
       clock: 33MHz (30.3ns)
       capabilities: pm cap_list
       configuration: latency=0
       resources: iomemory:600-5ff iomemory:600-5ff memory:6023120000-6023121fff memory:6023128000-6023128fff
grep -i swap /etc/fstab
/swapfile                                 none            swap    sw              0       0
ls -al /var/crash
totale 4028
drwxrwsrwt  2 root      whoopsie    4096 nov 24 18:45 .
drwxr-xr-x 14 root      root        4096 lug 31 18:35 ..
-rw-r-----  1 francesco whoopsie 4108506 nov 24 18:45 _usr_bin_seahorse.1000.crash
-rw-r--r--  1 francesco whoopsie       0 nov 24 18:45 _usr_bin_seahorse.1000.upload
-rw-------  1 whoopsie  whoopsie      37 nov 24 18:45 _usr_bin_seahorse.1000.uploaded
sudo dmidecode -s bios-version
1.3.0
How can I prevent password requests whenever I try to access a secondary drive? https://askubuntu.com/questions/1274269/how-can-i-prevent-password-requests-whenever-i-try-to-access-a-secondary-drive

I am a long-time computer professional, now retired. I am, however, a newbie to Ubuntu/Linux.

I built a new system using Ubuntu 20.04 as the main OS, the system includes 2 additional SSDs and 4 HDs from the prior (dead) system. The prior system was multi-boot with Windows 7>10 and OS/2. The file systems on the older drives are a mix of NTFS, JFS, and FAT32, although I don't think this really matters. When I try to mount any of the partitions on one of the other drives via Files > Other Locations, I am required to enter my password, twice for the first request, and sometimes again for a different drive. This is MY computer. I am the only person living in the house, and NO ONE ELSE has access to the machine. I would like to prevent the constant requests for my password every time I try to do something.

Any suggestions? Thanks!

Using Hp Smartarray P400 with Ubuntu https://askubuntu.com/questions/1030730/using-hp-smartarray-p400-with-ubuntu

I have recently been trying to install Ubuntu 18.04 on my ProLiant DL380 G5, which is using the RAID card Smartarray P400. When installing the desktop version, it wouldn't detect any hard drives, (whereas the latest Debian did but had DCHP problems) so I tried the RAID/Alternative Server version (which, after realising that this version is CLI only I don't want to use anymore). This, however, did not detect any storage either.

From what I have gathered, the P400 uses the ciss driver, which I believe has been replaced with hspa.

In the server version where it asks you to select a driver from the list after it fails to recognize storage, I attempted to use the hspa driver but this failed.

Any help on how to install Ubuntu (even if it's an old version) would be greatly appreciated.

possible to mark all mail as read using one line terminal? https://askubuntu.com/questions/994498/possible-to-mark-all-mail-as-read-using-one-line-terminal

I am not trying to remove all the mails.

I googled for mark all mail as read, actually got posts saying how to delete them instead.

I found out using echo p | mail will output first of unread then mark it read, but if I do this, I have to loop through them.

I figured for all read mails, they will be appended to a file named mbox

What I am trying to do is...I want to create a bash file which is then used for crontab that let's say, at the end of each month, change the name of mbox into month-year in this way I can keep track and organize the mails BUT in order to have the mails appended into mbox is reading the mails one by one first.

Am I thinking this in a wrong direction? Or can someone give me some advices?

Thanks in advance for any help

EDIT: I am just using sudo apt install mailutils for my ubuntu server

error in make file : /usr/bin/ld: cannot find -lstdc++ https://askubuntu.com/questions/737624/error-in-make-file-usr-bin-ld-cannot-find-lstdc

When I'm trying to make CAMB file, I get this error:

usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make: *** [camb] Error 1

Is a library missing?! How am I supposed to add libraries?!

CAMB is a Fortran code written for 2015 Planck data, camb.info

Also, with this command locate libstdc I get

/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
/usr/share/doc/libstdc++6
/usr/share/gcc-4.8/python/libstdcxx
/usr/share/gcc-4.8/python/libstdcxx/__init__.py
/usr/share/gcc-4.8/python/libstdcxx/v6
/usr/share/gcc-4.8/python/libstdcxx/v6/__init__.py
/usr/share/gcc-4.8/python/libstdcxx/v6/printers.py
/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py
/var/cache/apt/archives/libstdc++6_4.8.4-2ubuntu1~14.04.1_amd64.deb
/var/lib/dpkg/info/libstdc++6:amd64.list
/var/lib/dpkg/info/libstdc++6:amd64.md5sums
/var/lib/dpkg/info/libstdc++6:amd64.postinst
/var/lib/dpkg/info/libstdc++6:amd64.postrm
/var/lib/dpkg/info/libstdc++6:amd64.prerm
/var/lib/dpkg/info/libstdc++6:amd64.shlibs
/var/lib/dpkg/info/libstdc++6:amd64.symbols

Does it meant the library is present?! How can I fix the library search path in the makefile?

Could someone help me sort this one out here? I appreciate your time and help

How to capture a drop-down menu? https://askubuntu.com/questions/584778/how-to-capture-a-drop-down-menu

I need to capture a drop-down menu of a program. If I open the menu and then press PrntScr (print screen button), it first closes the menu and then captures the screen. I tried Ctrl+PrntScr, Shift+PrntScr, Alt+PrntScr but no success. I am using Ubuntu 14.04.

freetuxtv installed in 14.04 is not working https://askubuntu.com/questions/459962/freetuxtv-installed-in-14-04-is-not-working

I have installed freetuxtv and it went through the preferred language and installed my program list.

I tried an outdoor channel and it said "playing" but also showed an error message saying that the channel may be dead. I tried all the channels with the same result.

I reinstalled tuxtv and vlc again and also checked my flashplayer to see if it was installed with no joy.

How can I fix this?

Sharing Internet Connection (DHCP) through a Wireless Hotspot https://askubuntu.com/questions/395539/sharing-internet-connection-dhcp-through-a-wireless-hotspot

I have an internet connection through a cable modem. The IP address on the cable modem is not static and is perhaps obtained through a DHCP mode.

I wish to share this internet connection through the Wifi port available on my computer. Interestingly, the ad-hoc network setting does not work for my case on Ubuntu.

Therefore, I have set up my /etc/network/interfaces as follows:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 10.10.0.1
netmask 255.255.255.0

I am not clear with the process of routing, as I do not know the DHCP address until it is assigned i.e. only after I connect I will know the IP address of the system, and that IP address would be the one which the DHCP clients of my computer would use to route their internet connectivity.

Any clues on this?

Correct drivers for AMD Radeon HD 7650M https://askubuntu.com/questions/239375/correct-drivers-for-amd-radeon-hd-7650m

I have a Sony Vaio sve15118fg running Ubuntu 12.10 which comes with an AMD Radeon HD 7650M graphics chip.

This was all working fine until some updates (note sure what they were) came through. After installing them my laptop now no longer boots properly, specifically:

  • Upon attempting to boot the screen starts flickering violet striped horizontal lines. This can only be corrected by holding down the power button.
  • Attempting to do anything in recovery - bar dropping to a root shell - runs fsck which ends up hanging (although the system still responds there is no HDD activity). This is remedied via Ctrl+Alt+Delete to restart the system.
  • Running fsck manually from the root shell completes successfully.

I have attempted numerous things including removing all propriety drivers, trying the two installed propriety drivers, installing the latest beta driver from AMD, etc.

These all yield various results, such as the same as above, or a gnome-fallback session, or a gnome-shell session with various flickers and graphical artifacts.

What the heck do I have to do to get this to work? I don't really game, especially in Ubuntu, so I just want a working system! I'm not fussed about 3d acceleration of whatever.

How do I get 1366x768 resolution with dual graphics card ATI Madison Radeon HD 5000M Series and Intel Integrated Graphics Controller https://askubuntu.com/questions/177960/how-do-i-get-1366x768-resolution-with-dual-graphics-card-ati-madison-radeon-hd-5

I am on an HP Envy 14, and the proper resolution that I should be using is 1366x768. This is not an option and I am stuck on 1024x768. I am using Linux 12.04.

lspci | grep VGA:

00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Madison [Radeon HD 5000M Series]

I've tried to add the resolution as a mode in xorg.conf but that does not work. Please any help would be appreciated. I'm new to Linux and just got my dual boot working but this resolution issue is killing me.

I just tried using the xrandr command:

xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync

But I get an error:

xrandr: Failed to get size of gamma for output default

lsmod returns the following:

Module                  Size  Used by
vesafb                 13844  1 
rfcomm                 47604  12 
bnep                   18281  2 
parport_pc             32866  0 
ppdev                  17113  0 
snd_hda_codec_hdmi     32474  1 
arc4                   12529  2 
joydev                 17693  0 
hid_logitech_dj        18594  0 
i915                  472941  5 
uvcvideo               72627  0 
usbhid                 47199  1 hid_logitech_dj
hid                    99559  2 hid_logitech_dj,usbhid
psmouse                87692  0 
iwlwifi               332525  0 
mac80211              506816  1 iwlwifi
videodev               98259  1 uvcvideo
snd_hda_codec_idt      70795  1 
mei                    41616  0 
btusb                  18288  2 
v4l2_compat_ioctl32    17128  1 videodev
hp_accel               25976  0 
lis3lv02d              19876  1 hp_accel
hp_wmi                 18092  0 
sparse_keymap          13890  1 hp_wmi
input_polldev          13896  1 lis3lv02d
drm_kms_helper         46978  1 i915
drm                   242038  2 i915,drm_kms_helper
i2c_algo_bit           13423  1 i915
serio_raw              13211  0 
snd_hda_intel          33773  5 
snd_hda_codec         127706  3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
snd_hwdep              13668  1 snd_hda_codec
bluetooth             180104  23 rfcomm,bnep,btusb
cfg80211              205544  2 iwlwifi,mac80211
snd_pcm                97188  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
mac_hid                13253  0 
snd_seq_midi           13324  0 
snd_rawmidi            30748  1 snd_seq_midi
snd_seq_midi_event     14899  1 snd_seq_midi
snd_seq                61896  2 snd_seq_midi,snd_seq_midi_event
fglrx                3263886  0 
snd_timer              29990  2 snd_pcm,snd_seq
snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    78855  20         snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_ra    wmidi,snd_seq,snd_timer,snd_seq_device
wmi                    19256  1 hp_wmi
video                  19596  1 i915
intel_ips              18174  0 
soundcore              15091  1 snd
snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
lp                     17799  0 
parport                46562  3 parport_pc,ppdev,lp
r8169                  62099  0 

I have installed ATI/AMD proprietary FGLRX graphics driver. But there is another one called ATI/AMD proprietary FGLRX graphics driver (post-release updates) which I have trouble installing because it gives me an error and tells me to look at some sort of jockey log.