Meu jenkins parece corrompido. Depois de instalar a versão mais antiga, tentei atualizar. Quando eu tentei
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
Falha ao atualizar. Então eu removi Jenkins usando
sudo apt-get remove jenkins
E novamente eu tentei instalar. Está dando
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.
Mas service jenkins restart
comando jogando
jenkins: unrecognized service
Mesmo http://localhost:8080/
não trabalhando.
Eu quero instalar desde o início. Alguma sugestão?
Editado:
Eu segui estes passos:
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install -f && sudo apt-get autoremove
e depois as mesmas etapas acima seguidas para instalar.
Mas ainda assim mesmo erro. Novamente tentei remover o pacote usando
sudo apt-get remove jenkins && sudo apt-get install jenkins
Isso faz parte da saída:
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) ...
Mas ainda serviço não reconhecido.
Mais uma coisa que notei é que /etc/init.d/jenkins
está vazio.
Alguma outra maneira de instalar o mesmo pacote jenkins?
ls /etc/init.d
comando em pastebin.com e, finalmente, forneça o link aqui.
jenkins jenkins.dpkg-new
ls /etc/init.d | grep jen