在我的 Ubuntu 机器上,我正在尝试在本地安装 jenkins。我已遵循本指南:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
但是当我运行sudo apt-get install jenkins
我得到这个错误:
After this operation, 66.4 MB of additional disk space will be used.
(Reading database ... 303314 files and directories currently installed.)
Preparing to replace jenkins 1.480.3+dfsg-1~exp2 (using .../archives/jenkins_1.535_all.deb) ...
Unpacking replacement jenkins ...
dpkg: error processing /var/cache/apt/archives/jenkins_1.535_all.deb (--unpack):
trying to overwrite '/usr/share/jenkins/jenkins.war', which is also in package jenkins-common 1.480.3+dfsg-1~exp2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
jenkins stop/waiting
Errors were encountered while processing:
/var/cache/apt/archives/jenkins_1.535_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
似乎较旧的安装阻止了安装。我试图删除:
/var/lib/jenkins
/usr/share/jenkins/
有任何想法吗?