Skip to content

[CI][Docs] test-ubuntu-22.04-docs failed on installing Node.js #37120

@kou

Description

@kou

Describe the bug, including details regarding any error messages, version, and platform.

https://github.com/ursacomputing/crossbow/actions/runs/5815469472/job/15767078411#step:7:2635

#12 [ 6/16] RUN wget -q -O - https://deb.nodesource.com/setup_18.x | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn
#12 0.662 
#12 0.663 ## Installing the NodeSource Node.js 18.x repo...
#12 0.663 
#12 0.665 
#12 0.665 ## Populating apt-get cache...
#12 0.665 
#12 0.665 + apt-get update
#12 0.784 Get:1 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease [3626 B]
#12 0.792 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#12 0.833 Get:3 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#12 0.883 Get:4 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ Packages [43.3 kB]
#12 1.055 Get:5 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [849 kB]
#12 1.078 Get:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#12 1.135 Get:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
#12 1.193 Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#12 7.627 Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_amd64.deb ...
#12 7.632 Unpacking nodejs (18.17.1-deb-1nodesource1) over (12.22.9~dfsg-1ubuntu3) ...
#12 9.893 dpkg: error processing archive /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb (--unpack):
#12 9.893  trying to overwrite '/usr/include/node/common.gypi', which is also in package libnode-dev 12.22.9~dfsg-1ubuntu3
#12 9.971 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
#12 9.984 Errors were encountered while processing:
#12 9.984  /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb
#12 9.998 E: Sub-process /usr/bin/dpkg returned an error code (1)
#12 ERROR: process "/bin/bash -o pipefail -c wget -q -O - [https://deb.nodesource.com/setup_${node}.x](https://deb.nodesource.com/setup_$%7Bnode%7D.x) | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn" did not complete successfully: exit code: 100
------
 > importing cache manifest from apache/arrow-dev:amd64-ubuntu-22.04-docs:
------
------
 > [ 6/16] RUN wget -q -O - https://deb.nodesource.com/setup_18.x | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn:
7.560 Removing node-which (2.0.2+~cs1.3.2-2) ...
7.598 (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 63250 files and directories currently installed.)
7.627 Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_amd64.deb ...
7.632 Unpacking nodejs (18.17.1-deb-1nodesource1) over (12.22.9~dfsg-1ubuntu3) ...
9.893 dpkg: error processing archive /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb (--unpack):
9.893  trying to overwrite '/usr/include/node/common.gypi', which is also in package libnode-dev 12.22.9~dfsg-1ubuntu3
9.971 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
9.984 Errors were encountered while processing:
9.984  /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb
9.998 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
linux-apt-docs.dockerfile:71
--------------------
  70 |     ARG node=16
  71 | >>> RUN wget -q -O - [https://deb.nodesource.com/setup_${node}.x](https://deb.nodesource.com/setup_$%7Bnode%7D.x) | bash - && \
  72 | >>>     apt-get install -y nodejs && \
  73 | >>>     apt-get clean && \
  74 | >>>     rm -rf /var/lib/apt/lists/* && \
  75 | >>>     npm install -g yarn
  76 |     
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c wget -q -O - [https://deb.nodesource.com/setup_${node}.x](https://deb.nodesource.com/setup_$%7Bnode%7D.x) | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn" did not complete successfully: exit code: 100
Service 'ubuntu-docs' failed to build : Build failed

This is related to GH-36988 that adds npm to ci/docker/ubuntu-22.04-cpp.dockerfile and it causes this error.

Component(s)

Continuous Integration, Documentation

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions