Bionic: Why does my wired ethernet only connect after waking from suspend?

Does anyone know why my wired connection only connects after I have woken my laptop from suspend?

If I restart my pc it refuses to connect via cable but connects via wifi without any problem. If I then suspend my machine and then wake it up it then connects via the ethernet cable automatically.

Any ideas?

Installing libraries for arm64 on ubuntu bionic x64

I want to install arm64 libraries in my ubuntu bionic so I can link using cmake for cross compiling. Here’s what I’m doing, based on https://askubuntu.com/a/994650/613425

dpkg --add-architecture arm64\ && echo "deb [arch=arm64] http://ports.ubuntu.com/ bionic main restricted\n\ deb [arch=arm64] http://ports.ubuntu.com/ bionic-updates main restricted\n\ deb [arch=arm64] http://ports.ubuntu.com/ bionic universe\n\ deb [arch=arm64] http://ports.ubuntu.com/ bionic-updates universe\n\ deb [arch=arm64] http://ports.ubuntu.com/ bionic multiverse\n\ deb [arch=arm64] http://ports.ubuntu.com/ bionic-updates multiverse\n\ deb [arch=arm64] http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse"\ | tee -a /etc/apt/sources.list 

gives me

E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/universe/binary-arm64/Packages  404  Not Found [IP: 91.189.88.162 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/restricted/binary-arm64/Packages  404  Not Found [IP: 91.189.88.174 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/universe/binary-arm64/Packages  404  Not Found [IP: 91.189.88.174 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages  404  Not Found [IP: 91.189.88.174 80] E: Some index files failed to download. They have been ignored, or old ones used instead. 

apt configuration for bionic hosts in EC2

We have an apt repository hosted in an S3 bucket, which we use to deliver packages to workloads in EC2. On xenial, we have had no problem, however using the same configuration on bionic, we are now getting an HTTP 403 (permission denied).

I have checked that it is not the IAM profile, that it is the correct bucket, etc.

The error specifically looks like this:

 apt-get update Hit:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease             Hit:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease           Err:4 http://<my bucket>.s3-website.eu-central-1.amazonaws.com bionic InRelease                                                           403  Forbidden [IP: <redacted>] Hit:5 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease                                                                                  Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                      Reading package lists... Done                       E: Failed to fetch http://<my bucket>.s3-website.eu-central-1.amazonaws.com/dists/bionic/InRelease  403  Forbidden [IP: <redacted>] E: The repository 'http://<my bucket>.s3-website.eu-central-1.amazonaws.com bionic InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. 

The source.list file looks like:

deb http://<my bucket>.s3-website.eu-central-1.amazonaws.com/ bionic main 

What configuration change do I need to make to allow my EC2 instances to read the apt repository?

Thanks

How do I update atareao/ubuntu bionic InRelease in Ubuntu 18.04?

While running the command sudo apt-get update, I am facing the following error:

Err:2 http://ppa.launchpad.net/atareao/atareao/ubuntu bionic InRelease                                                                 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A9653F936FD5529  

This is making me unable to install anything like grafana, influxdb on my system.

My sources.list is:

## See sources.list(5) for more information, especialy # Remember that you can only use http, ftp or file URIs # CDROMs are managed through the apt-cdrom tool.  #------------------------------------------------------------------------------# #                            OFFICIAL UBUNTU REPOS                             # #------------------------------------------------------------------------------#   ###### Ubuntu Main Repos deb http://in.archive.ubuntu.com/ubuntu/ bionic main universe deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main universe  ###### Ubuntu Update Repos deb http://in.archive.ubuntu.com/ubuntu/ bionic-security main universe deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main universe deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-security main universe deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates main universe deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main # deb-src [arch=amd64] https://packages.microsoft.com/repos/vscode stable main 

The path is /etc/apt/sources.list.

The full stack trace is:

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:3 http://in.archive.ubuntu.com/ubuntu bionic InRelease                                                                                    Hit:4 https://packages.microsoft.com/repos/vscode stable InRelease                                                                            Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-security InRelease                                                                           Hit:6 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                            Get:2 http://ppa.launchpad.net/atareao/atareao/ubuntu bionic InRelease [15.4 kB]                                                              Err:2 http://ppa.launchpad.net/atareao/atareao/ubuntu bionic InRelease                                                                 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A9653F936FD5529 Hit:7 http://dl.google.com/linux/chrome/deb stable Release                                         Hit:9 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease Reading package lists... Done W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: GPG error: http://ppa.launchpad.net/atareao/atareao/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A9653F936FD5529 E: The repository 'http://ppa.launchpad.net/atareao/atareao/ubuntu bionic InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:19 and /etc/apt/sources.list.d/vscode.list:3 

veth down after reboot on bionic beaver (netplan) systemd

First, please forgive my lame markdown skills.

Running Bionic Beaver: host:~# lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic Can’t seem to figure out the best way to make sure my veth devices automatically “link up” after reboot.

My use case for the veth: I use them for attaching local network bridges to containers. I do this because attaching docker macvlan directly to the bridge inhibits communication between the containers and their host.

Now that that is out of the way:
I’ve tried putting: ip link set veth1a up ip link set veth5a up in /etc/rc.local I had to create new and add execute permissions, but did nothing upon reboot.

I have the interfaces listed in netplan, but this only successfully brings up the bridge side of the veth e.g veth1b: network: ethernets: enp131s0f0: dhcp4: false enp131s0f1: dhcp4: false enp6s0: dhcp4: false enp7s0: dhcp4: false veth1a: dhcp4: false veth1b: dhcp4: false veth5a: dhcp4: false veth5b: dhcp4: false bridges: br0: dhcp4: true interfaces: - enp6s0 - enp7s0 - veth1b br5: dhcp4: false interfaces: - vlan5 - veth5b vlans: vlan5: id: 5 link: br0 dhcp4: false version: 2 I also have some systemd configs to create the veths in the first place, but I don’t know how to tell systemd to “admin up” the veth1a and veth5a. This is what I need help with. host:~# cat /etc/systemd/network/25-veth-* [NetDev] Name=veth1a Kind=veth [Peer] Name=veth1b [NetDev] Name=veth5a Kind=veth [Peer] Name=veth5b

How to Set Kernel Options in Ubuntu 18.04 (Bionic)

I’m currently building a router using Ubuntu Server 18.04 (bionic) and am stepping through various configuration tasks. The advent of Systemd and Netplan mean I’m breaking some new ground and having to synthesize multiple sources, and discerning deprecation is nontrivial.

I’m currently roughing out my kernel and other configuration via /etc/sysctl.conf. A distinction seems to exist between (a) kernel parameters or variables, which are read from /etc/sysctl.conf and /etc/sysctl.d/*.conf at runtime; and (b) kernel options.

Specifically, the documentation for several kernel variables make reference to various CONFIG_* settings/options but with no guidance about how or where to enable them. E.g., the documentation for kernel.hung_task_panic at https://sysctl-explorer.net/kernel/hung_task_panic/ states:

Controls the kernel’s behavior when a hung task is detected. This file shows up if CONFIG_DETECT_HUNG_TASK is enabled.

[Note: This particular file happens to appear in 18.04.2 but I’m using it as an example because it’s handy.]

THE QUESTION is how and where to enable kernel options like the CONFIG_DETECT_HUNG_TASK option from above, on modern Linux systems and Ubuntu 18.04 in particular. No definitive guidance seems to exist and the few references I’ve found are years old and with a nontrivial risk of deprecation given intervening years and releases.

The current hypotheses are:

  1. Add a line with the option in /etc/sysctl.conf, similar to how one might add TCP_NODELAY to /etc/smb.conf.

  2. Add a line with the option to the bootloader configuration file /etc/default/grub.

  3. Add a line with the option to whichever other configuration file (which?) is read at runtime to write /boot/config-*-generic.

  4. Build and recompile the kernel from scratch using

make menuconfig 

and related steps, which themselves are poorly and anciently, or at least inconspicuously, documented besides seeming unnecessarily complex.

Thanks in advance for any thoughts.

apt update/apt install error in the WSL(Ubuntu Bionic 18.04 Lts)

Errors: Could not connect to security.ubuntu.com/archive.ubuntu.com Unable to connect to security.ubuntu.com/archive.ubuntu.com Failed to fetch http://archive.ubuntu.com… Some index files failed to download…

Before to asking: -I tried almost all recommended comands, -tried to change /etc/apt/sources.list and tried to change nameserver 8.8.8.8/8.8.4.4. -Internet is also working. -Most people recommends to install something, (install transport….) but I’m trying to solve it to be enable to install. When I’m trying to install, it shows: ‘Unable to locate package’.

I`m a beginner and never used linux, so perhaps I missed something and all i tried was failt.

I hope to find answer there, Thank you so much in advance!

Bionic upgrades don’t work

I need help with Ubuntu 18.04 updates. I haven’t found this question asked so far. I’m running Lubuntu on a MacBook Pro 2011 with a burnt graphics card. I managed 2 years ago to switch it completely to Lubuntu Xenial and it all worked fine until I upgraded to Bionic Beaver last year. All still works fine except for the software updates which haven’t updated even once since the upgrade from 16.04 to 18.04.

In the Terminal I do a sudo apt-get update (runs fine) followed by an apt-get upgrade. I get the following:

~$ sudo apt-get update [sudo] password for bo: Hit:1 http://mirrors.neterra.net/ubuntu bionic InRelease Hit:2 http://mirrors.neterra.net/ubuntu bionic-updates InRelease Hit:3 http://mirrors.neterra.net/ubuntu bionic-backports InRelease Hit:4 http://mirrors.neterra.net/ubuntu bionic-security InRelease Reading package lists... Done ~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Graphic interface works similarly. In Software Updater I get a “The software of this computer is up-to-date” message, which it definitely cannot be.

So far all I have managed with my Linux is from reading Ubuntu forums and my common sense, I’m not a Linux expert so I do need to ask for help. I suppose there’s a broken repository link but I can’t figure this out by myself. Do you have a suggestion to try?

My configuration is:

~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Bionic Beaver (development branch) Release: 18.04 Codename: bionic

and

Computer


Summary

-Computer-

Processor : Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz

Memory : 3949MB (2219MB used)

Machine Type : Notebook

Operating System : Ubuntu Bionic Beaver (development branch)

User Name : bo (bo)

Date/Time : Sun 07 Jul 2019 15:20:41 EEST

-Display-

Resolution : 1440×900 pixels

OpenGL Renderer : (Unknown)

X11 Vendor : The X.Org Foundation

-Audio Devices-

Audio Adapter : HDA-Intel – HDA Intel PCH

Operating System

-Version-

Kernel : Linux 4.15.0-13-generic (x86_64)

Version : #14-Ubuntu SMP Sat Mar 17 13:44:27 UTC 2018

C Library : GNU C Library / (Ubuntu GLIBC 2.27-0ubuntu3) 2.27

Distribution : Ubuntu Bionic Beaver (development branch)


Thanks in advance for your help! bo

The repository ‘http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu > bionic Release’ does not have a Release

Getting an error while running sudo apt-get update on ubuntu 18.04. What could be the possible reason for this?

Hit:1 http://linux.teamviewer.com/deb stable InRelease Hit:2 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:4 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic InRelease Hit:5 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Hit:7 https://download.sublimetext.com apt/stable/ InRelease
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:9 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:10 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease

Err:11 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic Release 404 Not Found [IP: 91.189.95.83 80]
Get:13 https://packages.mailpile.is/deb release InRelease [14.9 kB]
Reading package lists… Done E: The repository ‘http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu bionic Release’ does not have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

Bionic Beaver does not recognize wifi adapter

I have installed Ubuntu 18.04.2 LTS on my HP laptop model 15-da0012dx. Ubuntu is not recognizing the internal wifi adapter. Settings says “No Wi-Fi Adapter Found”.

This thing does have an internal wifi adapter; I formerly used it with the preinstalled OS. HP describes it as “802.11b/g/n (1×1) Wi-Fi® and Bluetooth® 4.2 combo”. (full mfg specs at https://support.hp.com/gb-en/document/c05997533

I have also tried to find the wifi adapter from the command line (lshw -C network, lspci), but it doesn’t appear.