-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[ERROR] apt install on arm64 (raspberry pi) fails unpacking the deb file #1679
Comments
I had a similar issue with ubuntu, I added architecture information to the sources list file: and its working for me now |
great, thanks.. I added a check for the 64bit system and added the arch=arm64 and it installed correctly |
well... not so fast.. another user on arm64
|
Hi @sdetweil it looks like another repo is having more priority over the |
@riosje thanks.. that didn't help got the same install results
|
in the near term , switched to using n to install/upgrade node |
Hellos guys, is this still an issue? |
i had to give up and use n to install as apt didn't work . |
I am getting a similar issue on Ubuntu 22.04.3 LTS, x86_64(amd64) when trying to install Node,js v20.X LTS. Steps to reproduce:
mmatthews@ThinkPad:~/Downloads$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
mmatthews@ThinkPad:~/Downloads$ uname -a
Linux ThinkPad 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
mmatthews@ThinkPad:~/Downloads$ apt list nodejs npm
Listing... Done
nodejs/jammy-updates,jammy-security 12.22.9~dfsg-1ubuntu3.3 amd64
npm/jammy,jammy 8.5.1~ds-1 all
mmatthews@ThinkPad:~/Downloads$ curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
2024-01-29 12:03:20 - Installing pre-requisites
Get:1 file:/var/cuda-repo-ubuntu2204-11-8-local InRelease [1,575 B]
Get:2 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Get:3 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1,484 B]
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:5 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease
Get:8 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:10 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Fetched 232 kB in 1s (195 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20230311ubuntu0.22.04.1).
curl is already the newest version (7.81.0-1ubuntu1.15).
gnupg is already the newest version (2.2.27-3ubuntu2.1).
apt-transport-https is already the newest version (2.4.11).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
gpg: WARNING: unsafe ownership on homedir '/home/mmatthews/.gnupg'
Get:1 file:/var/cuda-repo-ubuntu2204-11-8-local InRelease [1,575 B]
Get:2 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Get:3 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1,484 B]
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:5 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:8 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
Hit:9 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:10 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:11 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:12 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [5,223 B]
Fetched 19.8 kB in 1s (16.9 kB/s)
Reading package lists... Done
2024-01-29 12:03:25 - Repository configured successfully. To install Node.js, run: apt-get install nodejs -y
mmatthews@ThinkPad:~/Downloads$ apt list nodejs npm
Listing... Done
nodejs/nodistro 20.11.0-1nodesource1 amd64
npm/jammy,jammy 8.5.1~ds-1 all
mmatthews@ThinkPad:~/Downloads$ sudo apt install -y nodejs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/26.1 MB of archives.
After this operation, 163 MB of additional disk space will be used.
(Reading database ... 491749 files and directories currently installed.)
Preparing to unpack .../nodejs_20.11.0-1nodesource1_amd64.deb ...
Unpacking nodejs (20.11.0-1nodesource1) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_20.11.0-1nodesource1_amd64.deb (--unpack):
trying to overwrite '/usr/include/node/common.gypi', which is also in package libnode-dev 12.22.9~dfsg-1ubuntu3.3
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_20.11.0-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
mmatthews@ThinkPad:~/Downloads$ cat /etc/apt/sources.list.d/nodesource.list
deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
mmatthews@ThinkPad:~/Downloads$ ls -l /etc/apt/preferences.d/
total 20
-rw-rw-r-- 1 mmatthews mmatthews 190 May 4 2022 cuda-repository-pin-600
-rw-r--r-- 1 root root 65 Jan 29 12:03 nodejs
-rw-r--r-- 1 root root 65 Jan 29 12:03 nsolid
-rw-r--r-- 1 root root 442 Nov 7 06:23 ubuntu-pro-esm-apps
-rw-r--r-- 1 root root 434 Nov 7 06:23 ubuntu-pro-esm-infra
mmatthews@ThinkPad:~/Downloads$ cat /etc/apt/preferences.d/nodejs
Package: nodejs
Pin: origin deb.nodesource.com
Pin-Priority: 600
mmatthews@ThinkPad:~/Downloads$ cat /etc/apt/preferences.d/cuda-repository-pin-600
Package: nsight-compute
Pin: origin *ubuntu.com*
Pin-Priority: -1
Package: nsight-systems
Pin: origin *ubuntu.com*
Pin-Priority: -1
Package: *
Pin: release l=NVIDIA CUDA
Pin-Priority: 600
mmatthews@ThinkPad:~/Downloads$ cat /etc/apt/preferences.d/nsolid
Package: nsolid
Pin: origin deb.nodesource.com
Pin-Priority: 600
mmatthews@ThinkPad:~/Downloads$ cat /etc/apt/preferences.d/ubuntu-pro-esm-apps
# This file is used by Ubuntu Pro and supplied by the ubuntu-advantage-tools
# package. It has no effect if Ubuntu Pro services are not in use since no
# other apt repositories are expected to match o=UbuntuESMApps.
#
# Pin esm-apps packages to a slightly higher value than the default,
# so those are preferred over a non-ESM package from the archive when the
# service is enabled.
Package: *
Pin: release o=UbuntuESMApps
Pin-Priority: 510
mmatthews@ThinkPad:~/Downloads$ cat /etc/apt/preferences.d/ubuntu-pro-esm-infra
# This file is used by Ubuntu Pro and supplied by the ubuntu-advantage-tools
# package. It has no effect if Ubuntu Pro services are not in use since no
# other apt repositories are expected to match o=UbuntuESM.
#
# Pin esm-infra packages to a slightly higher value than the default,
# so those are preferred over a non-ESM package from the archive when the
# service is enabled.
Package: *
Pin: release o=UbuntuESM
Pin-Priority: 510 |
Also getting this in Ubuntu Jammy ARM64
|
Describe your bug
sudo apt-get install nodejs -y
fails unpacking the deb file see screen shot
Distribution Information:
Node Version:
To Reproduce
Steps to reproduce the behavior:
executed the install instructions for node 20 in the distros page (copy/paste)
Expected behavior
should have worked as does on 32 bit systems
Screenshots
Additional context
all prior nodejs was purged using the purge instructions from the distro page
system info
The text was updated successfully, but these errors were encountered: