树莓派4B(Ubuntu22.04)安装Jenkins遇sed错误及启动失败求助
Jenkins安装失败问题(树莓派4B + Ubuntu 22.04.1 LTS)
系统环境
设备为8GB内存的树莓派4B,系统版本信息如下:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
安装报错详情
执行sudo apt-get install -y jenkins时出现错误,完整输出:
$ sudo apt-get install -y jenkins Reading package list... Completion Creating dependency tree... Completion Reading status information... Completion We will install the next new package: jenkins Zero upgrades, one fresh installation, zero removal, and seven upgrades. You must receive 0 bytes/92.9 M bytes of archive. After this operation, 93.6 M bytes of disk space will be used. Selecting previously unselected package jenkins. (Reading database...)There are currently 224160 files and directories installed.) Preparing to unpack .../jenkins_2.375.1_all.deb ... Unpacking jenkins (2.375.1) ... Setting jenkins (2.375.1)... sed: -e expression 1st row, 65th character: invalid contrast character Created symlink /etc/systemd/system/multi-user.target.wants/jenkins.service → /lib/systemd/system/jenkins.service. Job for jenkins.service failed because a timeout was exceeded. 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: timeout) since Thu 2022-12-15 22:49:44 KST; 24ms ago Process: 459913 ExecStart=/usr/bin/jenkins (code=exited, status=143) Main PID: 459913 (code=exited, status=143) Status: "Jenkins stopped" CPU: 3min 20.145s dpkg: error processing package jenkins (--configure): installed jenkins package post-installation script subprocess returned error exit status 1 There was an error processing: jenkins E: Sub-process /usr/bin/dpkg returned an error code (1)
已尝试的无效操作
- 卸载后重新安装Jenkins
- 清理apt/dpkg缓存后重装
- 重启系统后重复上述操作
强制启动Jenkins服务后,Java进程CPU占用率高达99%,长时间无响应,最终访问时出现Bad Message 431错误。
恳请有相关经验的用户提供解决方案。
内容的提问来源于stack exchange,提问作者Lucas. B
相关产品推荐
相关产品推荐

