jenkins-infra / jenkins.io

A static site for the Jenkins automation server
https://jenkins.io
Other
321 stars 1.22k forks source link

Jenkins download and deployment page - TODO: Error when I do apt-get install jenkins #5995

Closed KikyoC closed 1 year ago

KikyoC commented 1 year ago

Problem with the Jenkins download and deployment page, content//download/index.html.haml

TODO: Describe the expected and actual behavior here

Screenshots

TODO: image

This is error code: root@hms59572:~# wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK root@hms59572:~# echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list deb https://pkg.jenkins.io/debian-stable binary/ root@hms59572:~# sudo apt-get update sudo apt-get install jenkins Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease Hit:2 https://ppa.launchpadcontent.net/duplicity-team/duplicity-release-git/ubuntu jammy InRelease
Hit:3 https://deb.nodesource.com/node_16.x jammy InRelease
Hit:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:7 https://pkg.jenkins.io/debian-stable binary/ InRelease
Hit:8 https://pkg.jenkins.io/debian-stable binary/ Release
Hit:9 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:10 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:11 https://packagecloud.io/ookla/speedtest-cli/ubuntu jammy InRelease
Reading package lists... Done W: https://pkg.jenkins.io/debian-stable/binary/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. Reading package lists... Done Building dependency tree... Done Reading state information... Done jenkins is already the newest version (2.375.2). The following packages were automatically installed and are no longer required: apache2-bin dbconfig-common dbconfig-mysql fonts-droid-fallback fonts-noto-mono ghostscript gsfonts icc-profiles-free imagemagick-6-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libc-client2007e libfftw3-double3 libgs9 libgs9-common libijs-0.35 libjbig2dec0 libjs-bootstrap4 libjs-codemirror libjs-jquery-mousewheel libjs-jquery-timepicker libjs-jquery-ui libjs-popper.js libjs-sizzle liblqr-1-0 liblua5.3-0 libmagickcore-6.q16-6 libmagickwand-6.q16-6 libmcrypt4 libopenjp2-7 libpaper-utils libpaper1 libwebpdemux2 libwebpmux3 mlock node-jquery poppler-data Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up jenkins (2.375.2) ... Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xeu jenkins.service" for details. invoke-rc.d: initscript jenkins, action "start" failed. ● jenkins.service - Jenkins Continuous Integration Server Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2023-02-02 20:49:08 CET; 13ms ago Process: 20531 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE) Main PID: 20531 (code=exited, status=1/FAILURE) CPU: 4.682s dpkg: error processing package jenkins (--configure): installed jenkins package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: jenkins needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) root@hms59572:~# ufw allow 8080 Skipping adding existing rule Skipping adding existing rule (v6)

MarkEWaite commented 1 year ago

The command that you listed in your output is not mentioned anywhere on that page. The Debian / Ubuntu installation instructions and the Debian package download page both show more modern commands than the commands that you listed.

If you can provide a link to the jenkins.io page that provided those instructions, we're happy to investigate a fix. I assume you are using some other set of instructions to perform the installation.

Maybe you're using the installation document on the outdated Chinese translation site? The Chinese site is expected to be removed in the future. The people that had been maintaining the Chinese translation have not provided new translations in several years. See the action item noted in the Jenkins governance board meeting notes from Nov 14, 2022

MarkEWaite commented 1 year ago

If the issue you are reporting is that the Jenkins service did not start and you expected it to start, then please raise that question in https://community.jenkins.io . The issue tracker on this repository is used to track documentation issues, not to diagnose startup issues.