我的詹金斯看上去很腐败。安装旧版本后,我尝试升级。当我尝试
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
升级失败。然后我使用删除了詹金斯
sudo apt-get remove jenkins
然后我再次尝试安装。
Reading package lists... Done
Building dependency tree
Reading state information... Done
jenkins is already the newest version.
The following packages were automatically installed and are no longer required:
libjna-java libhttpcore-java libxbean-java libargs4j-java libhttpclient-java
libplexus-build-api-java libbackport-util-concurrent-java
libplexus-utils-java libjffi-java libjffi-jni
libmaven-common-artifact-filters-java libjsr305-java libcommons-jexl-java
libplexus-bsh-factory-java libplexus-container-default-java
libganymed-ssh2-java jenkins-cli libplexus-sec-dispatcher-java
libcommons-net2-java libjsoup-java libmaven2-core-java libplexus-cipher-java
libjenkins-remoting-java libeasymock-java libplexus-i18n-java
libmaven-invoker-java libplexus-containers-java libjaffl-java libdoxia-java
libmaven-dependency-tree-java libmodello-java libplexus-archiver-java
libconstantine-java libmaven-scm-java libmaven-enforcer-plugin-java
libplexus-io-java libwagon-java libcommons-vfs-java libanimal-sniffer-java
libgoogle-collections-java libnetbeans-cvsclient-java
libmaven-plugin-testing-java libplexus-classworlds-java libitext1-java
libplexus-interactivity-api-java libcommons-jxpath-java jenkins-common
libplexus-interpolation-java libclassworlds-java
libcommons-configuration-java libjnr-posix-java libplexus-ant-factory-java
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 513 not upgraded.
但是service jenkins restart
命令抛出
jenkins: unrecognized service
即使http://localhost:8080/
不工作。
我想从头开始安装。有什么建议么?
编辑:
我按照以下步骤操作:
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install -f && sudo apt-get autoremove
然后按照上述相同的步骤进行安装。
但仍然是相同的错误。我再次尝试使用删除包
sudo apt-get remove jenkins && sudo apt-get install jenkins
这是输出的一部分:
The following NEW packages will be installed:
jenkins
0 upgraded, 1 newly installed, 0 to remove and 268 not upgraded.
Need to get 0 B/61.3 MB of archives.
After this operation, 67.4 MB of additional disk space will be used.
Selecting previously unselected package jenkins.
(Reading database ... 224579 files and directories currently installed.)
Unpacking jenkins (from .../archives/jenkins_1.557_all.deb) ...
Processing triggers for ureadahead ...
Setting up jenkins (1.557) ...
但是仍然无法识别服务。
我注意到的另一件事 /etc/init.d/jenkins
是空的。
还有其他方法可以安装相同的詹金斯软件包吗?
安装jenkins软件包,然后运行上面的命令。
—
Avinash Raj 2014年
@AvinashRaj我刚刚更新了问题。请参考其他信息。我按照您的建议运行命令。它给出了grep:–:没有这样的文件或目录
—
stefun 2014年
首先安装jenkins软件包,然后将
—
Avinash Raj 2014年
ls /etc/init.d
命令的输出发布到pastebin.com中,最后在此处提供链接。
你能参考我的问题吗?我已经编辑过。它显示就像安装了jenkins软件包,并且命令给出了:
—
stefun 2014年
jenkins jenkins.dpkg-new
ls /etc/init.d | grep jen