Jenkins is not running properly anymore and it needs to be reinstall.
The packages seems messed up so it's not easy to remove jenkins well.
for the new installation:
- it must be on port 8082
- I would need jenkins to have the jobs configured like the previous existing ones
the error i have is :
sudo apt-get remove jenkins
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED
0 to upgrade, 0 to newly install, 1 to remove and 218 not to upgrade.
1 not fully installed or removed.
After this operation, 77.4 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 498290 files and directories currently installed.)
Removing jenkins (2.177) ...
/etc/init.d/jenkins: 309: /etc/init.d/jenkins: /home/orange: Permission denied
invoke-rc.d: initscript jenkins, action "stop" failed.
dpkg: error processing package jenkins (--remove):
subprocess installed pre-removal script returned error exit status 126
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)