Ubuntu Bionic Boot Failure googleapis

I recently updated my laptop that has Ubuntu installed on it to hopefully update it to 18.04 but upon boot I got stuck on something like, “Holding Gnome”, I forget what it was. But now I’m in the recovery mode root console and when I type

apt-get update 

I get

Err:1 https://storage.google.apis.com/bazel-apt stable InRelease    Could not resolve 'storage.google.apis.com' Reading package lists... Done W: Failed to fetch https://storage.googleapis.com/bazels-apt/dists/stable/InRelease Could not resolve 'storage.googleapis.com' W: Some index files failed to download. They have been ignored, or old ones used instead. 

I don’t know what to do from here. I was getting other linux-generic issues but I think I fixed those and now I’m stuck with this one. Any suggestions?

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!