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

Failed apt-get update prevents node being installed from NodeSource PPA #36637

Closed
emremrah opened this issue Dec 26, 2020 · 1 comment
Closed
Labels
wrong repo Issues that should be opened in another repository.

Comments

@emremrah
Copy link

What steps will reproduce the bug?

When trying to install a specific version by adding PAA, because of Node is trying to run apt-get update automatically, if apt-get update fails in any way, the installation is being interrupted.

>>> curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
>>> sudo bash nodesource_setup.sh
## Installing the NodeSource Node.js 14.x repo...


## Populating apt-get cache...

+ apt-get update
Get:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39  InRelease
Ign:1 file:/var/cuda-repo-10-1-local-10.1.105-418.39  InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-1-local  InRelease
Ign:2 file:/var/cuda-repo-ubuntu2004-11-1-local  InRelease
Get:3 file:/var/cuda-repo-10-1-local-10.1.105-418.39  Release [574 B]
Get:4 file:/var/cuda-repo-ubuntu2004-11-1-local  Release [564 B]
Get:3 file:/var/cuda-repo-10-1-local-10.1.105-418.39  Release [574 B]
Get:4 file:/var/cuda-repo-ubuntu2004-11-1-local  Release [564 B]
Hit:6 http://tr.archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                 
Hit:8 http://tr.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                                                                 
Hit:9 http://tr.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                                                                               
Hit:10 http://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                                                
Hit:11 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                                                                                                                                             
Hit:12 https://packages.microsoft.com/repos/ms-teams stable InRelease                                                                                                                                             
Get:13 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]                                                                                                                                        
Ign:14 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu focal InRelease                                                                                                                       
Ign:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease                                                                                                                       
Hit:16 http://ppa.launchpad.net/kelebek333/kablosuz/ubuntu focal InRelease                                                                                                                                        
Hit:17 https://typora.io/linux ./ InRelease                                                                                                                                                                       
Ign:18 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease                                                                                                           
Hit:19 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease                                                                                          
Hit:20 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release                                                                             
Hit:21 https://download.sublimetext.com apt/stable/ InRelease                                                                                                         
Hit:22 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release                                           
Err:23 http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu focal Release                                                                       
  404  Not Found [IP: 91.189.95.85 80]
Hit:26 https://linux.teamviewer.com/deb stable InRelease                                       
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/gnome-terminator/ppa/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 executing command, exiting

However, if I comment out the apt-get update commands in nodesource_setup.sh the output is:


## Installing the NodeSource Node.js 14.x repo...


## Populating apt-get cache...


## Confirming "focal" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_14.x/dists/focal/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js 14.x repo...

+ echo 'deb https://deb.nodesource.com/node_14.x focal main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_14.x focal main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...


## Run `sudo apt-get install -y nodejs` to install Node.js 14.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

Then, if I run sudo apt-get install nodejs, it gets installed successfully:

The following packages will be upgraded:
  nodejs
1 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
Need to get 24,7 MB of archives.
After this operation, 91,3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.nodesource.com/node_14.x focal/main amd64 nodejs amd64 14.15.3-deb-1nodesource1 [24,7 MB]
Fetched 24,7 MB in 9s (2.721 kB/s)

node -v # v14.15.3

How often does it reproduce? Is there a required condition?

When trying to install a new version of node and apt-get update fail.

What is the expected behavior?

It might be not running apt-get update automatically as it seems it's not necessary for the installation.

What do you see instead?

"Error executing command, exiting"

Additional information

I was following this tutorial.

@targos
Copy link
Member

targos commented Dec 26, 2020

Please open an issue at https://github.com/nodesource/distributions. We do not maintain the NodeSource distributions.

@targos targos closed this as completed Dec 26, 2020
@targos targos added the wrong repo Issues that should be opened in another repository. label Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wrong repo Issues that should be opened in another repository.
Projects
None yet
Development

No branches or pull requests

2 participants