Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Ubuntu 20.04 Focal Fossa install #297

Closed
smagnani96 opened this issue May 7, 2020 · 3 comments
Closed

[BUG] Ubuntu 20.04 Focal Fossa install #297

smagnani96 opened this issue May 7, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@smagnani96
Copy link
Contributor

smagnani96 commented May 7, 2020

Describe the bug

In the new Ubuntu 20.04 release they have updated rules concerning repositories and security. Thus, running the installation script lead to an error of the go-lang repository as follow:

johndoe@johndoe-vm:~/Desktop/polycube$ ./scripts/install.sh 
Use 'install.sh -h' to show advanced installation options.
+ set -e
+++ dirname ./scripts/install.sh
++ cd ./scripts
++ pwd
+ DIR=/home/johndoe/Desktop/polycube/scripts
+ source scripts/pre-requirements.sh
++ '[' -z /home/johndoe/Desktop/polycube/scripts ']'
++ mkdir -p /home/johndoe/dev
++ sudo apt update
[sudo] password for johndoe: 
Ign:1 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://it.archive.ubuntu.com/ubuntu focal InRelease                
Hit:4 http://it.archive.ubuntu.com/ubuntu focal-updates InRelease        
Err:5 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu focal Release
  404  Not Found [IP: 91.189.95.83 80]
Hit:6 http://it.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/longsleep/golang-backports/ubuntu focal 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.
+++ error_message
+++ set +x

Error during installation
***********************SYSTEM INFO*************************************
kernel version: 5.4.0-29-generic
linux release info: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS" NAME="Ubuntu" VERSION="20.04 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
g++ version: g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc version: gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./scripts/install.sh: line 11: go: command not found
golang-version:

To Reproduce

Run the install.sh

Expected behavior

Polycube installed.

Please tell us about your environment:

Fresh installation of Ubuntu 20.04

NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Possible Solutions

1- In the script/pre-requirements.sh file the dependency golang could be modified to match this new OS version and installed via apt install golang (TESTED AND WORKING)
2 - In the script/pre-requirements.sh file the dependency golang could be modified to match this new OS version and installed via snap install go

I think that if a ppa does not have a Release file for a specific distribution could mean that:

  • it does not support your os version (since you should install it differently)
  • it is not updated
@smagnani96 smagnani96 added the bug Something isn't working label May 7, 2020
@smagnani96
Copy link
Contributor Author

@frisso @sebymiano Please tell me whether this could be useful or not

@frisso
Copy link
Contributor

frisso commented May 7, 2020

Simone, I would go with default install option, so (1).
I would just suggest to add a test so that apt install is used only with ubuntu >= 20.04.
Finally, we should update the manual installation procedure (in readthedocs) as well.
Many thanks!

@smagnani96
Copy link
Contributor Author

Solved with #299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants