【问题标题】:Jenkins installation error: E: Sub-process /usr/bin/dpkg returned an error code (1)Jenkins安装报错:E:子进程/usr/bin/dpkg返回错误码(1)
【发布时间】:2022-07-17 18:03:11
【问题描述】:

Jenkins 安装出错。
我正在使用 Ubuntu 20.04。 openjdk 1.8.0_312版
输入命令:(https://www.jenkins.io/doc/book/installing/linux/)

有没有人可以解决这个问题?

$ sudo apt-get install jenkins
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  jenkins
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/91.4 MB of archives.
After this operation, 95.0 MB of additional disk space will be used.
Selecting previously unselected package jenkins.
(Reading database ... 314328 files and directories currently installed.)
Preparing to unpack .../jenkins_2.332.3_all.deb ...
Unpacking jenkins (2.332.3) ...
Setting up jenkins (2.332.3) ...
Job for jenkins.service failed because the control process exited with error code.
See "systemctl status jenkins.service" and "journalctl -xe" 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 Sun 2022-05-22 18:50:57 IST; 3ms ago
    Process: 31287 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE)
   Main PID: 31287 (code=exited, status=1/FAILURE)
dpkg: error processing package jenkins (--configure):
 installed jenkins package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Errors were encountered while processing:
 jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)

【问题讨论】:

    标签: ubuntu jenkins


    【解决方案1】:

    做完sudo service jenkins start后一切都会正常
    你可以通过sudo service jenkins status

    检查jenkins是否启动成功

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-07-19
      • 1970-01-01
      • 1970-01-01
      • 2020-02-10
      • 2014-04-27
      • 1970-01-01
      • 1970-01-01
      • 2015-08-21
      相关资源
      最近更新 更多