我的詹金斯看起来像腐败了。安装旧版本后,我尝试升级。我试过的时候
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
未能升级。然后我用
删除了jenkinssudo 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/
无效。
我想从头开始安装。有什么建议吗?
答案 0 :(得分:2)
你可以尝试:
sudo dpkg -P jenkins
然后重新安装