Strange DNS issue https://askubuntu.com/questions/1560618/strange-dns-issue

We are dealing with a rather strange DNS issue and I am hoping somebody will be able to assist us with understanding.

Via DHCP we are allocated two DNS servers

resolvectl

Global
         Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (eth0)
    Current Scopes: DNS
         Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.1.1.1
       DNS Servers: 10.1.1.1 10.1.1.2
        DNS Domain: reddog.domain.local

Link 3 (enP28932s1)
    Current Scopes: none
         Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

The reverse lookup completes successfully

dig -x 10.1.1.1 and dig -x 10.1.1.2 both correctly resolve to the DNS server's hostnames

However the forward lookup fails

dig dnsserver1.domain.local -> Fails
dig dnsserver2.domain.local -> Fails 

However with specifying the DNS server explicitly the requests complete successfully

dig @10.1.1.1 dnsserver1.domain.local -> Works
dig @10.1.1.1 dnsserver2.domain.local -> Works 
dig @10.1.1.2 dnsserver1.domain.local -> Works
dig @10.1.1.2 dnsserver2.domain.local -> Works

I don't understand why it works when we set the DNS server and fails when using the default system DNS servers.

Kind regards Alex

Ubuntu Pro Licenses for Virtual Machines https://askubuntu.com/questions/1560617/ubuntu-pro-licenses-for-virtual-machines

We have Ubuntu Pro ( ESM). Understand for virtual machines we can just buy for the physical host. We did that and are running Landscape. However when attaching the vms are not recognised as VMs maybe cos Nutanix AHV is less common.

What exactly is expected from the dmi for a vm to be recognised as a VM by Landscape?

If I am unable to change it on the VM itself anything we can change in Landscape?

Unable to access sources https://askubuntu.com/questions/1560615/unable-to-access-sources

On trying to update today to sort out a whole host of other issues I got this:

"E: Malformed entry 1 in sources file /etc/apt/sources.list.d/third-party.sources (URI parse)

E: The list of sources could not be read."

On following the advice on line I got the following as a result of

sudo -H gedit /etc/apt/sources.list

"# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources"

There was something else about 'GNU ...' but that now seems to have vanished. Nothing I see seems to match what should be there sin the sources list (I also cannot access the software update page from the 'Software & Updates' app.)

I have not tried to do anything with sources prior to this, it seems to have happened all on its own and is continuing. I don;t want to try anything else in case it makes things worse.

Has anyone got any advice?. Is Cannonical doing this?

Can you give me info inside a particular file number if I have it [closed] https://askubuntu.com/questions/1560613/can-you-give-me-info-inside-a-particular-file-number-if-i-have-it

mega.nz/file/Ne9RgIwC#LzsHPz_7hvxFQf2ODBHD95fXX_33JCW-EJg7ojHIscsrrvieeing a gile

NVIDIA RTX 3050 display issues on Ubuntu 24.04.3 LTS in Acer Aspire 7 https://askubuntu.com/questions/1560612/nvidia-rtx-3050-display-issues-on-ubuntu-24-04-3-lts-in-acer-aspire-7

I am using a laptop equipped with an NVIDIA GeForce RTX 3050 GPU, running Ubuntu 24.04.3 LTS. Recently, I have been experiencing several display issues: the screen frequently flickers, sometimes turns off by itself, and overall the graphics performance feels unstable.

Here are my system details for reference: my device is a laptop with NVIDIA GeForce RTX 3050, Ubuntu version is 24.04.3 LTS, and the NVIDIA driver version installed is 570.195.03.

I have already tried common troubleshooting steps, such as switching between different prime-select modes (Intel, NVIDIA, and on-demand) and disabling Wayland, but the problems persists. I suspect that the issues may be related to GPU driver compatibility with this Ubuntu version or to power management settings on the laptop.

Could you please advise on the most stable configuration or recommend any workaround that can prevent the screen flickering and unexpected shutdowns?

error: snap "firefox" has "remove-snap" change in progress https://askubuntu.com/questions/1560611/error-snap-firefox-has-remove-snap-change-in-progress

I am trying to reinstall firefox but get the following message

error: snap "firefox" has "remove-snap" change in progress

Since Software Updater ran, my fan speed shows 45000 RPM https://askubuntu.com/questions/1560609/since-software-updater-ran-my-fan-speed-shows-45000-rpm

Dell Inspiron 7700 AIO

Ubuntu 25.10

I just ran Software Updater, and it updated these files...

    bluez-cups:amd64 5.83-1~exp1 => 5.83-1~exp1ubuntu0.1
    bluez-obexd:amd64 5.83-1~exp1 => 5.83-1~exp1ubuntu0.1
    bluez:amd64 5.83-1~exp1 => 5.83-1~exp1ubuntu0.1
    cups-bsd:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups-client:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups-common:all 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups-core-drivers:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups-daemon:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups-ipp-utils:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups-ppdc:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups-server-common:all 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    cups:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    gnome-shell-common:all 49.0-1ubuntu1 => 49.0-1ubuntu1.1
    gnome-shell:amd64 49.0-1ubuntu1 => 49.0-1ubuntu1.1
    iproute2:amd64 6.16.0-1ubuntu2 => 6.16.0-1ubuntu2.1
    libbluetooth3:amd64 5.83-1~exp1 => 5.83-1~exp1ubuntu0.1
    libcups2t64:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    libcupsimage2t64:amd64 2.4.12-0ubuntu3.3 => 2.4.12-0ubuntu3.5
    libinput-bin:amd64 1.28.1-1build1 => 1.28.1-1ubuntu0.1
    libinput10:amd64 1.28.1-1build1 => 1.28.1-1ubuntu0.1
    libmysqlclient24:amd64 8.4.7-0ubuntu0.25.10.2 => 8.4.7-0ubuntu0.25.10.3
    libpq5:amd64 17.6-1build1 => 17.7-0ubuntu0.25.10.1
    libunbound8:amd64 1.22.0-2ubuntu2.1 => 1.22.0-2ubuntu2.2
    libwireplumber-0.5-0:amd64 0.5.10-3 => 0.5.10-3ubuntu1
    mysql-client-core:amd64 8.4.7-0ubuntu0.25.10.2 => 8.4.7-0ubuntu0.25.10.3
    mysql-client:amd64 8.4.7-0ubuntu0.25.10.2 => 8.4.7-0ubuntu0.25.10.3
    mysql-server-core:amd64 8.4.7-0ubuntu0.25.10.2 => 8.4.7-0ubuntu0.25.10.3
    mysql-server:amd64 8.4.7-0ubuntu0.25.10.2 => 8.4.7-0ubuntu0.25.10.3
    timeshift:amd64 25.07.7-0~202511291334~ubuntu25.04.1 => 25.07.7-0~202512041546~ubuntu25.04.1
    wireplumber:amd64 0.5.10-3 => 0.5.10-3ubuntu1

Now the Freon and Vitals GNOME extensions show fan speed of ~45000 RPM.

Any suggestion on how to fix?

How to logically isolate/disconnect second NVMe drive from Ubuntu system for a dual boot system? https://askubuntu.com/questions/1560606/how-to-logically-isolate-disconnect-second-nvme-drive-from-ubuntu-system-for-a-d

I am fairly new to Linux and still learning. I am using two different OS installed on two separate NVMe drives as a dual boot system. One of them is Ubuntu 24.04.3 LTS and I want to isolate/disconnect other NVMe drive (which is used by other OS system) from Ubuntu OS to prevent accidental formatting or potential altercation/formatting by penetration or ransomware/malware attacks. Please note that I do not wish to use system's BIOS/UEFI settings to isolate the second NVMe drive and physical isolation. Is there any way to perform this task in Ubuntu?

simple-scan. The output is segmentation fault. How do I get the scanner to work? [closed] https://askubuntu.com/questions/1560599/simple-scan-the-output-is-segmentation-fault-how-do-i-get-the-scanner-to-work
\~/Downloads$ simple-scan
Segmentation fault
\~/Downloads$ dpkg -l | grep Brother
ii  brscan-skey                           0.3.2-0                              amd64        Brother Linux scanner S-KEY tool
ii  brscan4                               0.4.11-1                             amd64        Brother Scanner Driver
ii  cupswrapperdcp7065dn:i386             2.0.4-2                              i386         Brother DCP7065DN CUPS wrapper driver
ii  dcp7065dnlpr:i386                     2.1.0-1                              i386         Brother DCP-7065DN LPR driver
ii  printer-driver-ptouch                 1.5.1-2                              amd64        printer driver Brother P-touch label printers

\~/Downloads$ scanimage -L
device \`brother4:bus2;dev1' is a Brother DCP-7065DN USB scanner

~$ apt policy simple-scan simple-scan: Installed: 3.38.1-1 Candidate: 3.38.1-1 Version table: *** 3.38.1-1 500 500 https://repo.pureos.net/pureos byzantium/main amd64 Packages 100 /var/lib/dpkg/status

~$ type -p simple-scan /usr/bin/simple-scan

My printer is not recognized [closed] https://askubuntu.com/questions/1560597/my-printer-is-not-recognized

I am using AnduinOS which is based on Ubuntu. I have a problem with my printer. OnlyOffice does detect my printer, however when I use the document viewer it only offers to print as a PDF.

enter image description here

Game development in Ubuntu? https://askubuntu.com/questions/1560595/game-development-in-ubuntu

My kid would like to start writing videogames, his pens use Roblox Studio, and I wonder which alternative I could propose him on Linux (Ubuntu 24.04 to be more specific)

Dual booting with another Linux OS already using systemd-boot to install Ubuntu Studio https://askubuntu.com/questions/1560590/dual-booting-with-another-linux-os-already-using-systemd-boot-to-install-ubuntu

Can an Ubuntu Studio installation process recognize an existing systemd-boot system for dual booting purposes? I don't want Grub. I use EndeavourOS as my main OS, but wish to install Ubuntu Studio on a separate disk. BTW: I do not use Windows.

I am a very long-term Linux user. I have read this helpful Ubuntu page, but it does not actually say what the install would do or whether it offers any options. I have tried the install process as far as I dare, but there was no telling what it would do about installing a bootloader. This does not help as I do not want to share a \home folder.

My latest Ubuntu started to lag the mouse and keyboard since yesterday. but not at all times https://askubuntu.com/questions/1560566/my-latest-ubuntu-started-to-lag-the-mouse-and-keyboard-since-yesterday-but-not

I use Ubuntu 24.04 in Gnome. I haven't made any changes in the last few days except for a software update, however I am having a problem with my wireless mouse and keyboard which have started to lag. Should I try another USB slot for my wireless mouse and keyboard set?

Edit.. this is my swap "Swap: 8388604 0 8388604"

why did you edited my post? And yes. it is a Microsoft set.. In the last two days the problems has gone..

Is it possible to shutdown the LUKS unlocking by timeout? https://askubuntu.com/questions/1560334/is-it-possible-to-shutdown-the-luks-unlocking-by-timeout

I wonder if I can set the timeout to the boot time LUKS unlocking and let the PC shut down on timeout.

In other words, I want the PC to shut down automatically when I leave it without typing the password 1min.

This is particularly useful for laptops. Some computers turn on by shock or some other event. Without a timeout, the PC will wait for the password until the battery is fully discharged.

Screenshot of the disk unlocking screen:

Screenshot of the disk unlocking screen.

Cannot enable chrome remote desktop on Ubuntu 24.04.2 LTS [closed] https://askubuntu.com/questions/1550057/cannot-enable-chrome-remote-desktop-on-ubuntu-24-04-2-lts

When I try to install CRD on ubuntu following this guide: https://www.helpwire.app/blog/chrome-remote-desktop-linux/. The remote desktop app just says "Ready to install Please run the installer from the status bar or Downloads folder.", when I check the status using systemctl status chrome-remote-desktop. It says it is masked.

○ chrome-remote-desktop.service
     Loaded: masked (Reason: Unit chrome-remote-desktop.service is masked.)
     Active: inactive (dead)

Jun 05 20:48:33 UbuntuGamingPC systemd[1]: Starting chrome-remote-desktop.service - LSB: Chrome Remote Desktop service...
Jun 05 20:48:33 UbuntuGamingPC systemd[1]: Started chrome-remote-desktop.service - LSB: Chrome Remote Desktop service.
Jun 05 20:48:46 UbuntuGamingPC systemd[1]: Stopping chrome-remote-desktop.service - LSB: Chrome Remote Desktop service...
Jun 05 20:48:46 UbuntuGamingPC systemd[1]: chrome-remote-desktop.service: Deactivated successfully.
Jun 05 20:48:46 UbuntuGamingPC systemd[1]: Stopped chrome-remote-desktop.service - LSB: Chrome Remote Desktop service.

When I unmasked the service and tried to re-enable it. I got this:

$ sudo systemctl enable chrome-remote-desktop.service
Synchronizing state of chrome-remote-desktop.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable chrome-remote-desktop
Failed to enable unit: Unit file /usr/lib/systemd/system/chrome-remote-desktop.service is masked.

I also added the config folder which I saw was causing it to not work.

mkdir ~/.config/chrome-remote-desktop

Apologies if I seem a bit dumb just new to Ubuntu and enjoying it so far, just want to get this to work so I can use my more powerful computer away without using a VPN and RDP which is super laggy.


I followed @Hi-Angel's advice with the command.

sudo rm /lib/systemd/system/chrome-remote-desktop.service

Then restarting. That enabled the chrome-remote-desktop.service.

But after that I went onto the chrome remote desktop app installed via chromium and it was still not picking it up.

I did some research and found out that some people were having issues with chromium so I installed regular chrome and that fixed the issue.

But after that remote desktop just got stuck on "starting" after setting it up. Then when I restarted to try and see if it would load I could not log in as there was a process running. So I ended up just uninstalling. Thanks for your help though.

How to install wxWidgets on Ubuntu 24.04 [duplicate] https://askubuntu.com/questions/1522811/how-to-install-wxwidgets-on-ubuntu-24-04

I need wxWidgets as I'm getting the error. But I couldn't make sure what repository do I need for wxWidgets and I don't know how to install it.

checking for wx-config... no
configure: error: 
        wxWidgets must be installed on your system.

        Please check that wx-config is in path, the directory
        where wxWidgets libraries are installed (returned by
        'wx-config --libs' or 'wx-config --static --libs' command)
        is in LD_LIBRARY_PATH or equivalent variable and
        wxWidgets version is 3.0.0 or above.
" ! You are missing the following 32-bit libraries, and steam may not run" https://askubuntu.com/questions/1473195/you-are-missing-the-following-32-bit-libraries-and-steam-may-not-run

The libraries in particular that I am missing are libpipewire-0.3.so.0, and libxcb-res.so.0. I don't know to much about coding and terminal, so something to copy and paste would be good. I think it started becuase I didn't have enough storage, (resolved) but now I need to know how to fix it. I tried uninstalling and re installing, but it didn't work. and yes, I have turned it off and on again.

Multicast packets sent out every time a USB device is connected https://askubuntu.com/questions/1456506/multicast-packets-sent-out-every-time-a-usb-device-is-connected

On Ubuntu 22.04, every time a USB device is connected to the computer, the system sends IGMP and WS-Discovery packets on the network. More specifically, on a newly installed Ubuntu 22.04, connecting any USB stick or USB mouse will trigger the sending of:

  • IGMP packet to the multicast IP address 224.0.0.22
  • WS-Discovery (port 3702) packets over UDP/IPv4 and UDP/IPv6, respectively to 239.255.255.250 or ff02::c, packets which are sent out by colord-sane

This is probably similar to the issue previously mentioned here: What is colord-sane and why does it show up on lsof internet watch?

What would be expected:

  • No network traffic to be generated for local-only USB devices
  • No SANE-related sub-requests (e.g., no color profile adjustment attempts from colord) when the USB device is not a scanner

References:

Where can I control this, i.e. how do I stop these broadcast packets from going out when they are not required or desired?

Network UPS Tools (NUT) - Ubuntu 20.04 - Init SSL without certificate database Error: Data stale https://askubuntu.com/questions/1401545/network-ups-tools-nut-ubuntu-20-04-init-ssl-without-certificate-database-e

OS: Ubuntu 20.04 NUT: 2.7.4-11ubuntu4 amd64

I have installed and configured the associated .conf files for a "Standalone" mode Network UPS Tools (NUT) driver/server/client using USB connector to UPS. The behavior I am experiencing is as follows:

1.) Initially when the applications are run (after a reboot), the upsmon (client) seems to be able to connect to the upsd (server) and access status information from the UPS. Example as follows:

upsc "my ups name"@localhost
 
Init SSL without certificate database

battery.charge: 100
battery.charge.warning: 30
battery.runtime: 2450
battery.type: PbAc
battery.voltage: 0.0
battery.voltage.nominal: 12.0
device.mfr: Tripp Lite
.....

2.) After some time period elapses, and I run the same command, the following occurs:

upsc "my ups name"@localhost
Init SSL without certificate database
Error: Data stale

My high level question is how do I fix this "Data stale" problem? My lower level question is can I run this without SSL certificates (this is a Standalone implementation, so I am not concerned about "man-in-the-middle" issues with user/password in plain text going over the network).

I have already read the thread nut (UPS) and SSL certificates on this forum, but it is not directly related to the problem above.

Many thanks in advance for the forums help (I am a Noob).

I think I have established that the issue lies in the USBHID-UPS driver and this SSL certificate message is a "red herring" in terms of my issue. The answer to my question lies somewhere in the driver interface as when I restart the driver (usbhid-ups) the issue resolves itself for an undetermined period of time and then fails again.

Further to this, if I stop/start the driver this "resets" the connection and then upsc command works until some time later when it shows Init SSL without certificate database Error: Data stale.

Commands to stop/start driver:

sudo /sbin/upsdrvctl stop
sudo /sbin/upsdrvctl start
Netplan Doesn't Recognize Ethernet Connection on Ubuntu 20.04 Server https://askubuntu.com/questions/1267046/netplan-doesnt-recognize-ethernet-connection-on-ubuntu-20-04-server

Problem

I've recently moved an Ubuntu 20.04 server to a new house and attempted to connect it to the network. Connecting it via an ethernet cable at my previous house worked without issue, but doing so with my new modem isn't working. After confirming the ethernet cable works with my laptop, I started debugging and came to the conclusion that I've configured something incorrectly with netplan.

Attempt at a Solution

Running $ ip a initially produced the following output:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether f8:b1:56:dc:47:25 brd ff:ff:ff:ff:ff:ff
3: br-cd5031a2a690: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:88:f5:00:c2 brd ff:ff:ff:ff:ff:ff
    inet 172.29.0.1/16 brd 172.29.255.255 scope global br-cd5031a2a690
       valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:63:c5:ed:bf brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
5: br-6e210ada6a5d: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:cc:35:23:8d brd ff:ff:ff:ff:ff:ff
    inet 172.30.0.1/16 brd 172.30.255.255 scope global br-6e210ada6a5d
       valid_lft forever preferred_lft forever
    inet6 fe80::42:ccff:fe35:238d/64 scope link 
       valid_lft forever preferred_lft forever
6: br-75e07944c75a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:cb:38:ca:3c brd ff:ff:ff:ff:ff:ff
    inet 172.27.0.1/16 brd 172.27.255.255 scope global br-75e07944c75a
       valid_lft forever preferred_lft forever
    inet6 fe80::42:cbff:fe38:ca3c/64 scope link 
       valid_lft forever preferred_lft forever
8: veth5501abf@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-6e210ada6a5d state UP group default 
    link/ether 3e:9d:7d:bc:07:5f brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::3c9d:7dff:febc:75f/64 scope link 
       valid_lft forever preferred_lft forever
10: veth5f8842d@if9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-75e07944c75a state UP group default 
    link/ether f2:f4:e9:50:51:ac brd ff:ff:ff:ff:ff:ff link-netnsid 3
    inet6 fe80::f0f4:e9ff:fe50:51ac/64 scope link 
       valid_lft forever preferred_lft forever
12: veth6164405@if11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-6e210ada6a5d state UP group default 
    link/ether 5e:f2:e1:fd:1f:4d brd ff:ff:ff:ff:ff:ff link-netnsid 2
    inet6 fe80::5cf2:e1ff:fefd:1f4d/64 scope link 
       valid_lft forever preferred_lft forever
14: veth8f9aa5b@if13: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-6e210ada6a5d state UP group default 
    link/ether 46:c8:0b:f7:c5:ac brd ff:ff:ff:ff:ff:ff link-netnsid 1
    inet6 fe80::44c8:bff:fef7:c5ac/64 scope link 
       valid_lft forever preferred_lft forever
16: vethc256b04@if15: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-75e07944c75a state UP group default 
    link/ether b6:7c:3e:1e:ec:7e brd ff:ff:ff:ff:ff:ff link-netnsid 1
    inet6 fe80::b47c:3eff:fe1e:ec7e/64 scope link 
       valid_lft forever preferred_lft forever

This indicated to me that eno1 is the interface I need to fix; all the bridges and veth interfaces are likely from Docker containers I run.

I then set my 01-netcfg.yaml file to the following recommended configuration to setup a connection with a dynamic DHCP-assigned IP:

network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: true

and ran the following:

$ sudo netplan --debug generate

$ sudo netplan apply

$ sudo reboot

The debug output from the 'generate' command spit out the following:

** (generate:4699): DEBUG: 04:02:19.020: Processing input file /etc/netplan/01-netcfg.yaml..
** (generate:4699): DEBUG: 04:02:19.021: starting new processing pass
** (generate:4699): DEBUG: 04:02:19.021: We have some netdefs, pass them through a final round of validation
** (generate:4699): DEBUG: 04:02:19.021: eno1: setting default backend to 1
** (generate:4699): DEBUG: 04:02:19.021: Configuration is valid
** (generate:4699): DEBUG: 04:02:19.021: Generating output files..
** (generate:4699): DEBUG: 04:02:19.021: NetworkManager: definition eno1 is not for us (backend 1)
(generate:4699): GLib-DEBUG: 04:02:19.021: posix_spawn avoided (fd close requested) 

The NetworkManager: definition eno1 is not for us seems to be an issue, and after rebooting I still can't ping anything:

$ ping 8.8.8.8
ping: connect: Network is unreachable

I repeated the above steps using this recommended 01-netcfg.yaml config instead, and confirmed that I'm using spaces instead of tabs and that my spacing is correct:

network:
  version: 2
  renderer: networkd

Running the same setup commands with the debug flag yields this output:

** (generate:5041): DEBUG: 04:09:33.721: Processing input file /etc/netplan/01-netcfg.yaml..
** (generate:5041): DEBUG: 04:09:33.721: starting new processing pass
** (generate:5041): DEBUG: 04:09:33.721: We have some netdefs, pass them through a final round of validation
** (generate:5041): DEBUG: 04:09:33.721: Generating output files..
(generate:5041): GLib-DEBUG: 04:09:33.721: posix_spawn avoided (fd close requested) 

which no longer has the concerning NetworkManager: definition eno1 is not for us message (since eno1 wasn't specified), but after applying these generated changes and rebooting I still get no connection.

I've followed a number of posts and guides that seem to recommend variations of these two configs, but one that I strongly believe had the same issue I'm experiencing is this post.

Here the poster notes that part of the problem was from a bug in kernel 5.4.0-42-generic, which was resolved by installing the r8168-dkms driver. I am also running kernel 5.4.0-42-generic, and manually installed this driver / updated initramfs but still had no luck after rebooting and retrying both of the above netplan configurations.

Additionally, here is my output from running $ sudo lshw -class network if that helps:

  *-network
       description: Ethernet interface
       product: 82579LM Gigabit Network Connection (Lewisville)
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: eno1
       version: 04
       serial: f8:b1:56:dc:47:25
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:25 memory:f7c00000-f7c1ffff memory:f7c39000-f7c39fff ioport:f080(size=32)
  *-network:0
       description: Ethernet interface
       physical id: 1
       logical name: br-75e07944c75a
       serial: 02:42:cb:38:ca:3c
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.27.0.1 link=yes multicast=yes
  *-network:1
       description: Ethernet interface
       physical id: 2
       logical name: veth5f8842d
       serial: f2:f4:e9:50:51:ac
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:2
       description: Ethernet interface
       physical id: 3
       logical name: vethc256b04
       serial: b6:7c:3e:1e:ec:7e
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:3
       description: Ethernet interface
       physical id: 4
       logical name: br-6e210ada6a5d
       serial: 02:42:cc:35:23:8d
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.30.0.1 link=yes multicast=yes
  *-network:4
       description: Ethernet interface
       physical id: 5
       logical name: veth5501abf
       serial: 3e:9d:7d:bc:07:5f
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:5
       description: Ethernet interface
       physical id: 6
       logical name: br-cd5031a2a690
       serial: 02:42:88:f5:00:c2
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.29.0.1 link=no multicast=yes
  *-network:6
       description: Ethernet interface
       physical id: 7
       logical name: docker0
       serial: 02:42:63:c5:ed:bf
       capabilities: ethernet physical
       configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=172.17.0.1 link=no multicast=yes
  *-network:7
       description: Ethernet interface
       physical id: 8
       logical name: veth6164405
       serial: 5e:f2:e1:fd:1f:4d
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s
  *-network:8
       description: Ethernet interface
       physical id: 9
       logical name: veth8f9aa5b
       serial: 46:c8:0b:f7:c5:ac
       size: 10Gbit/s
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=veth driverversion=1.0 duplex=full link=yes multicast=yes port=twisted pair speed=10Gbit/s

Request

Would anyone be able to help me fix this issue with Netplan and get ethernet working on my server again? I really appreciate your help, if there is any additional information you need from me please feel free to ask :)

Apache service is up and running but not in web browser https://askubuntu.com/questions/1237299/apache-service-is-up-and-running-but-not-in-web-browser

I have migrated my Ubuntu server to AWS EC2 instance. The problem is Apache service is up and running but when I type "server-IP/phppage.php" nothing is displayed. After a while "The connection has timed out" error is displayed. Port 80 is listening and I am using Ubuntu 18.04.4 LTS.

yello-pc123:~$ sudo netstat -anp | grep 80
tcp6       0      0 :::80                   :::*                    LISTEN      912/apache2         
unix  3      [ ]         STREAM     CONNECTED     20739    809/python3          
unix  3      [ ]         STREAM     CONNECTED     20380    1/init               /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     18058    809/python3          
unix  3      [ ]         STREAM     CONNECTED     14606    480/lvmetad          
unix  3      [ ]         STREAM     CONNECTED     18059    1/init               /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20269    803/systemd-logind   
unix  2      [ ]         DGRAM                    20150    803/systemd-logind   
unix  3      [ ]         STREAM     CONNECTED     17898    803/systemd-logind 

Since I dont have GUI access to server I do $curl localhost which gives

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Apache2 Debian Default Page: It works</title>
    <style type="text/css" media="screen">

Edit: I have changed the listen directive to Listen 0.0.0.0:80, but still no success. New output of $sudo netstat -anp | grep 80 is

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      10236/apache2       
unix  3      [ ]         STREAM     CONNECTED     20739    809/python3          
unix  3      [ ]         STREAM     CONNECTED     20380    1/init               /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     18058    809/python3          
unix  3      [ ]         STREAM     CONNECTED     14606    480/lvmetad          
unix  3      [ ]         STREAM     CONNECTED     18059    1/init               /run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     20269    803/systemd-logind   
unix  2      [ ]         DGRAM                    20150    803/systemd-logind   
unix  3      [ ]         STREAM     CONNECTED     17898    803/systemd-logind 

Edit

yello-pc123:~$ sudo cat /var/log/apache2/error.log 
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/sqlsrv.so' - /usr/lib/php/20131226/sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/pdo_sqlsrv.so' - /usr/lib/php/20131226/pdo_sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun May 10 06:25:01.830025 2020] [mpm_prefork:notice] [pid 2247] AH00163: Apache/2.4.43 (Ubuntu) configured -- resuming normal operations
[Sun May 10 06:25:01.830043 2020] [core:notice] [pid 2247] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 10 11:24:34.076951 2020] [mpm_prefork:notice] [pid 2247] AH00169: caught SIGTERM, shutting down
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/sqlsrv.so' - /usr/lib/php/20131226/sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/pdo_sqlsrv.so' - /usr/lib/php/20131226/pdo_sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun May 10 11:25:16.357649 2020] [mpm_prefork:notice] [pid 895] AH00163: Apache/2.4.43 (Ubuntu) configured -- resuming normal operations
[Sun May 10 11:25:16.357720 2020] [core:notice] [pid 895] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 10 11:39:58.714752 2020] [mpm_prefork:notice] [pid 895] AH00169: caught SIGTERM, shutting down
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/sqlsrv.so' - /usr/lib/php/20131226/sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/pdo_sqlsrv.so' - /usr/lib/php/20131226/pdo_sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun May 10 11:39:58.845545 2020] [mpm_prefork:notice] [pid 1679] AH00163: Apache/2.4.43 (Ubuntu) configured -- resuming normal operations
[Sun May 10 11:39:58.845609 2020] [core:notice] [pid 1679] AH00094: Command line: '/usr/sbin/apache2'
Registering an init.d service https://askubuntu.com/questions/1053107/registering-an-init-d-service

Trying to register a service in /etc/init.d, but cannot get it to run with service myservice start and at boot-up

Executable file:

#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides:          skeleton
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.  This example start a
#                    single forking daemon capable of writing a pid
#                    file.  To get other behavoirs, implemend
#                    do_start(), do_stop() or other functions to
#                    override the defaults in /lib/init/init-d-script.
### END INIT INFO

# Author: Foo Bar <foobar@baz.org>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.

DESC="bel radio recording"
DAEMON=/usr/bin/streamripper

case "$1" in
start)  log_daemon_msg "Starting bel radio recording" "streamripper"
        sudo -u ubuntu /usr/bin/streamripper http://184.154.58.146:29378/ch18_56.mp3 --quiet -s -a -d ~ &

        ;;
stop)   log_daemon_msg "Stopping bel radio recording" "streamripper"
        pkill streamripper
        RETVAL=0

        log_end_msg $RETVAL
        ;;
restart) log_daemon_msg "Restarting bel radio recording" "streamripper"
        $0 stop
        $0 start
        ;;
*)

esac
exit 0

Trying to register this with

sudo update-rc.d recordbyradio defaults

and the command returns silently no matter how many times I run it

then

sudo service recordbyradio start 

also returns silently and doesn't start anything.

/etc/init.d/recordbyradio start

works fine however

Ubuntu version (running in EC2):

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial
Cross Compiling with Linaro 7.1.1 arm-linux-gnueabihf https://askubuntu.com/questions/976468/cross-compiling-with-linaro-7-1-1-arm-linux-gnueabihf

How can I properly download the linaro toolchain and set it up so that I can use it with the kernel Makefile? When I test my version on the arm-linux-gnueabihf-gcc --version function it works but when compiling a custom kernel it fails.


Context

I am working to compile a custom linux kernel for the Beaglebone Black board. The guide I am following to build the custom kernel is here.

While following the steps for the guide, I need to use arm-linux-gnueabihf-gcc in order to cross compile the kernel for the Beaglebone hardware. So I have installed linaro's toolchain from their website. I just downloaded it and then unpacked it to the /opt/ folder.

$ cd /opt/
$ sudo mv gcc-linaro-7.1.1-2017.08-x86_64_arm-linux-gnueabi.tar.xz/ gcc-arm-linux
$ export PATH=$PATH:/opt/gcc-arm-linux/bin

I test and make sure that things worked in installing.

$ arm-linux-gnueabihf-gcc --version

And my output looks like the following image:

arm-linux-gnueabihf-gcc version

Once I'm finished with that I am compiling the kernel using the standard Makefile.

$ cd ~/linux
$ sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bb.org_defconfig
$ sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs LOADADDR=0x80008000 -j4

At this point I run into errors on the command to actually compile the kernel.

Makefile:686: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make: arm-linux-gnueabihf-gcc: Command not found
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/empty.o
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
scripts/Makefile.build:258: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 127
scripts/Makefile.build:403: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:556: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....

What is most confusing is that the errors indicate that arm-linux-gnueabihf-gcc: not found, however I can run the command arm-linux-gnueabihf-gcc --version in the same folder and it will execute properly.

The solution to this problem could be to just install it using apt:

sudo apt-get install gcc-arm*

Which is suggested in this response, but that doesn't resolve my confusion.

Why can I test my version on the arm-linux-gnueabihf-gcc function but it doesn't execute in the Makefile properly? How can I properly download the linaro toolchain and set it up so that I can use it with the kernel Makefile?

How can I remove a secondary IP address? https://askubuntu.com/questions/914700/how-can-i-remove-a-secondary-ip-address

I'm running Ubuntu Server 17.04. All packages are up to date.

The contents of my /etc/network/interfaces is as follows:

$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet static
    address 10.99.0.10
    netmask 255.255.0.0
    gateway 10.99.0.1

But if I run ip addr I see a secondary address:

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:a0:98:35:c1:cd brd ff:ff:ff:ff:ff:ff
    inet 10.99.0.10/16 brd 10.99.255.255 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet 10.99.1.31/16 brd 10.99.255.255 scope global secondary enp0s3
       valid_lft forever preferred_lft forever
    inet6 fe80::2a0:98ff:fe35:c1cd/64 scope link
       valid_lft forever preferred_lft forever

There are no files or folders in /etc/network/interfaces.d/. How can I permanently remove the secondary IP address? It reappears after every reboot.

How to disable upgrade/update of selective packages permanently? https://askubuntu.com/questions/781651/how-to-disable-upgrade-update-of-selective-packages-permanently

I read this Q&A about How to prevent updating of a specific package?

But, I would like to disable/prevent update of a lot of packages, how can I do this efficiently?

The above given method works( as shown in image below), but it's hard to find the names of packages that exactly apt-mark understands. See the screenshot below, I need to disable or put on hold all of these except a few.

The software updater pops up many times (I know i can skip it always), but I am on low bandwidth and can't update each and every package. And I hardly use them, e.g. Thunderbird, simple-scan, music player.

It would be very good, if this software-updater had a option to disable update of a package by just right-clicking or some other way.

apt-mark hold demo image

How to make the ambient light sensor work on Asus Zenbook UX303? https://askubuntu.com/questions/635735/how-to-make-the-ambient-light-sensor-work-on-asus-zenbook-ux303

I have a Asus Zenboo UX303LN. There is a known issue with the brightness keys, which is no big deal for me but I would like the ambient light sensor to work. I didn't find much information on this issue and my device.

Can anybody tell me how to make it work? Test it? Or if there is no possibility yet to make it work.

How to check the password entered is a valid password for this user? https://askubuntu.com/questions/611580/how-to-check-the-password-entered-is-a-valid-password-for-this-user

The scenario:

In a bash script, I have to check if a password given by a user is a valid user password.

I.e suppose I have a user A with password PA.. In the script I asked user A to enter his password, So how to check if the string entered is really his password?...

Screen turns off while watching video (VLC player & SM player) https://askubuntu.com/questions/330327/screen-turns-off-while-watching-video-vlc-player-sm-player

I'm on ubuntu 12.04 and I've already read similar questions and answers regarding this issue but none of them reported the same problem as I have.

The problem is that the screen turns off after 10 minutes while I watch a movie. No matter which player I use (VLC or SM), it still happens. It used to log me out too, but I changed the default setting as follows

Display Setting

After changing the setting, it doesn't log out automatically but it still turns off the screen. It seems like, system simply ignores the video players activities. How to solve this one (bug)?

USB ports unavailable after suspend https://askubuntu.com/questions/130562/usb-ports-unavailable-after-suspend

My problem is that after installing Ubuntu 12.04 on my laptop, suspend did not work. Through this training, I solved the suspend problem. But after resume from suspend my USB ports become unavailable.

Installing Broadcom Wireless Drivers https://askubuntu.com/questions/55868/installing-broadcom-wireless-drivers

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.

What are the steps to install Broadcom wireless drivers for a BCM43xx card?

I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.


lspci -vnn | grep Network showed:

Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] 

iwconfig showed:

lo        no wireless extensions.
eth0      no wireless extensions.

NOTE: Answer below is updated every time new information is added and confirmed working.