Error reinstalling isc-dhcp-server “post installation script returned error exit status 255”





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















So I am trying to install isc-dhcp-server, but when I tried installing it, the following errors show.



$ sudo apt-get install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
isc-dhcp-server is already the newest version (4.3.3-5ubuntu12.7).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up isc-dhcp-server (4.3.3-5ubuntu12.7) ...
/sbin/restorecon: lstat(/var/lib/dhcpd/dhcpd.leases) failed: No such file or directory
dpkg: error processing package isc-dhcp-server (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
isc-dhcp-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried purging it first (I am trying to reinstall it since I have an error of not connecting to upstart in DRBL). It was successfully removed but when I tried re-installing it, then that's when the errors showed up.



Tried also these commands:



sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade


Then



sudo apt-get install isc-dhcp-server


============================================



Okay, nevermind. I found my solution. I deleted all isc-dhcp-server files under /var/lib/dpkg/info/. Then re-install it again.



sudo rm /var/lib/dpkg/info/isc-dhcp-server*
sudo apt-get install isc-dhcp-server









share|improve this question

























  • Actually, you were right in writing your own answer. There is nothing wrong with it here, plus it helps others see what you did to solve it. You can also accept your own answer.

    – Terrance
    Oct 25 '17 at 6:00











  • Yes please do as @Terrance says so people know this question is already solved. Anyway you have to wait 2 days before you can accept your own answer as solution.

    – derHugo
    Oct 25 '17 at 6:47











  • Oh. I'm sorry. I am new here. Will keep that in mind thanks! @derHugo

    – Rise Lady
    Oct 27 '17 at 3:08


















1















So I am trying to install isc-dhcp-server, but when I tried installing it, the following errors show.



$ sudo apt-get install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
isc-dhcp-server is already the newest version (4.3.3-5ubuntu12.7).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up isc-dhcp-server (4.3.3-5ubuntu12.7) ...
/sbin/restorecon: lstat(/var/lib/dhcpd/dhcpd.leases) failed: No such file or directory
dpkg: error processing package isc-dhcp-server (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
isc-dhcp-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried purging it first (I am trying to reinstall it since I have an error of not connecting to upstart in DRBL). It was successfully removed but when I tried re-installing it, then that's when the errors showed up.



Tried also these commands:



sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade


Then



sudo apt-get install isc-dhcp-server


============================================



Okay, nevermind. I found my solution. I deleted all isc-dhcp-server files under /var/lib/dpkg/info/. Then re-install it again.



sudo rm /var/lib/dpkg/info/isc-dhcp-server*
sudo apt-get install isc-dhcp-server









share|improve this question

























  • Actually, you were right in writing your own answer. There is nothing wrong with it here, plus it helps others see what you did to solve it. You can also accept your own answer.

    – Terrance
    Oct 25 '17 at 6:00











  • Yes please do as @Terrance says so people know this question is already solved. Anyway you have to wait 2 days before you can accept your own answer as solution.

    – derHugo
    Oct 25 '17 at 6:47











  • Oh. I'm sorry. I am new here. Will keep that in mind thanks! @derHugo

    – Rise Lady
    Oct 27 '17 at 3:08














1












1








1








So I am trying to install isc-dhcp-server, but when I tried installing it, the following errors show.



$ sudo apt-get install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
isc-dhcp-server is already the newest version (4.3.3-5ubuntu12.7).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up isc-dhcp-server (4.3.3-5ubuntu12.7) ...
/sbin/restorecon: lstat(/var/lib/dhcpd/dhcpd.leases) failed: No such file or directory
dpkg: error processing package isc-dhcp-server (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
isc-dhcp-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried purging it first (I am trying to reinstall it since I have an error of not connecting to upstart in DRBL). It was successfully removed but when I tried re-installing it, then that's when the errors showed up.



Tried also these commands:



sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade


Then



sudo apt-get install isc-dhcp-server


============================================



Okay, nevermind. I found my solution. I deleted all isc-dhcp-server files under /var/lib/dpkg/info/. Then re-install it again.



sudo rm /var/lib/dpkg/info/isc-dhcp-server*
sudo apt-get install isc-dhcp-server









share|improve this question
















So I am trying to install isc-dhcp-server, but when I tried installing it, the following errors show.



$ sudo apt-get install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
isc-dhcp-server is already the newest version (4.3.3-5ubuntu12.7).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up isc-dhcp-server (4.3.3-5ubuntu12.7) ...
/sbin/restorecon: lstat(/var/lib/dhcpd/dhcpd.leases) failed: No such file or directory
dpkg: error processing package isc-dhcp-server (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
isc-dhcp-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried purging it first (I am trying to reinstall it since I have an error of not connecting to upstart in DRBL). It was successfully removed but when I tried re-installing it, then that's when the errors showed up.



Tried also these commands:



sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade


Then



sudo apt-get install isc-dhcp-server


============================================



Okay, nevermind. I found my solution. I deleted all isc-dhcp-server files under /var/lib/dpkg/info/. Then re-install it again.



sudo rm /var/lib/dpkg/info/isc-dhcp-server*
sudo apt-get install isc-dhcp-server






server apt upstart dhcp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 16:28









Zanna

51.3k13140243




51.3k13140243










asked Oct 25 '17 at 5:31









Rise LadyRise Lady

1113




1113













  • Actually, you were right in writing your own answer. There is nothing wrong with it here, plus it helps others see what you did to solve it. You can also accept your own answer.

    – Terrance
    Oct 25 '17 at 6:00











  • Yes please do as @Terrance says so people know this question is already solved. Anyway you have to wait 2 days before you can accept your own answer as solution.

    – derHugo
    Oct 25 '17 at 6:47











  • Oh. I'm sorry. I am new here. Will keep that in mind thanks! @derHugo

    – Rise Lady
    Oct 27 '17 at 3:08



















  • Actually, you were right in writing your own answer. There is nothing wrong with it here, plus it helps others see what you did to solve it. You can also accept your own answer.

    – Terrance
    Oct 25 '17 at 6:00











  • Yes please do as @Terrance says so people know this question is already solved. Anyway you have to wait 2 days before you can accept your own answer as solution.

    – derHugo
    Oct 25 '17 at 6:47











  • Oh. I'm sorry. I am new here. Will keep that in mind thanks! @derHugo

    – Rise Lady
    Oct 27 '17 at 3:08

















Actually, you were right in writing your own answer. There is nothing wrong with it here, plus it helps others see what you did to solve it. You can also accept your own answer.

– Terrance
Oct 25 '17 at 6:00





Actually, you were right in writing your own answer. There is nothing wrong with it here, plus it helps others see what you did to solve it. You can also accept your own answer.

– Terrance
Oct 25 '17 at 6:00













Yes please do as @Terrance says so people know this question is already solved. Anyway you have to wait 2 days before you can accept your own answer as solution.

– derHugo
Oct 25 '17 at 6:47





Yes please do as @Terrance says so people know this question is already solved. Anyway you have to wait 2 days before you can accept your own answer as solution.

– derHugo
Oct 25 '17 at 6:47













Oh. I'm sorry. I am new here. Will keep that in mind thanks! @derHugo

– Rise Lady
Oct 27 '17 at 3:08





Oh. I'm sorry. I am new here. Will keep that in mind thanks! @derHugo

– Rise Lady
Oct 27 '17 at 3:08










1 Answer
1






active

oldest

votes


















0














Wow... worked for me. Thanks! I hosted my server trying to edit permissions and stuff. I was trying to clean up old leases and everything was write protected. Uninstalled and reinstalled it and nothing was working properly. This allowed me to reinstall it and tell it to overwrite or recreate the configuration files that were missing.



sudo rm /var/lib/dpkg/info/isc-dhcp-server

sudo apt install isc-dhcp-server





share|improve this answer


























  • I want to add that after trying your solution, I had to reboot the machine to get it working properly again. I couldn't ping devices and the leases file was empty before the reboot. I obviously had to reconfigure the dhcpd.conf file with my previous settings, but all is good now! I was about to the point of reinstalling my VM. Taking a snapshot now :D

    – Brandon Brown
    May 14 '18 at 22:34











  • Why did you edit my post? "hosed" means that something broke. I did not mean "I hosted my server". Please change it back. Thanks

    – Brandon Brown
    May 17 '18 at 4:09












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f968898%2ferror-reinstalling-isc-dhcp-server-post-installation-script-returned-error-exit%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Wow... worked for me. Thanks! I hosted my server trying to edit permissions and stuff. I was trying to clean up old leases and everything was write protected. Uninstalled and reinstalled it and nothing was working properly. This allowed me to reinstall it and tell it to overwrite or recreate the configuration files that were missing.



sudo rm /var/lib/dpkg/info/isc-dhcp-server

sudo apt install isc-dhcp-server





share|improve this answer


























  • I want to add that after trying your solution, I had to reboot the machine to get it working properly again. I couldn't ping devices and the leases file was empty before the reboot. I obviously had to reconfigure the dhcpd.conf file with my previous settings, but all is good now! I was about to the point of reinstalling my VM. Taking a snapshot now :D

    – Brandon Brown
    May 14 '18 at 22:34











  • Why did you edit my post? "hosed" means that something broke. I did not mean "I hosted my server". Please change it back. Thanks

    – Brandon Brown
    May 17 '18 at 4:09
















0














Wow... worked for me. Thanks! I hosted my server trying to edit permissions and stuff. I was trying to clean up old leases and everything was write protected. Uninstalled and reinstalled it and nothing was working properly. This allowed me to reinstall it and tell it to overwrite or recreate the configuration files that were missing.



sudo rm /var/lib/dpkg/info/isc-dhcp-server

sudo apt install isc-dhcp-server





share|improve this answer


























  • I want to add that after trying your solution, I had to reboot the machine to get it working properly again. I couldn't ping devices and the leases file was empty before the reboot. I obviously had to reconfigure the dhcpd.conf file with my previous settings, but all is good now! I was about to the point of reinstalling my VM. Taking a snapshot now :D

    – Brandon Brown
    May 14 '18 at 22:34











  • Why did you edit my post? "hosed" means that something broke. I did not mean "I hosted my server". Please change it back. Thanks

    – Brandon Brown
    May 17 '18 at 4:09














0












0








0







Wow... worked for me. Thanks! I hosted my server trying to edit permissions and stuff. I was trying to clean up old leases and everything was write protected. Uninstalled and reinstalled it and nothing was working properly. This allowed me to reinstall it and tell it to overwrite or recreate the configuration files that were missing.



sudo rm /var/lib/dpkg/info/isc-dhcp-server

sudo apt install isc-dhcp-server





share|improve this answer















Wow... worked for me. Thanks! I hosted my server trying to edit permissions and stuff. I was trying to clean up old leases and everything was write protected. Uninstalled and reinstalled it and nothing was working properly. This allowed me to reinstall it and tell it to overwrite or recreate the configuration files that were missing.



sudo rm /var/lib/dpkg/info/isc-dhcp-server

sudo apt install isc-dhcp-server






share|improve this answer














share|improve this answer



share|improve this answer








edited May 15 '18 at 5:56









Filbuntu

2,979144874




2,979144874










answered May 14 '18 at 22:30









Brandon BrownBrandon Brown

11




11













  • I want to add that after trying your solution, I had to reboot the machine to get it working properly again. I couldn't ping devices and the leases file was empty before the reboot. I obviously had to reconfigure the dhcpd.conf file with my previous settings, but all is good now! I was about to the point of reinstalling my VM. Taking a snapshot now :D

    – Brandon Brown
    May 14 '18 at 22:34











  • Why did you edit my post? "hosed" means that something broke. I did not mean "I hosted my server". Please change it back. Thanks

    – Brandon Brown
    May 17 '18 at 4:09



















  • I want to add that after trying your solution, I had to reboot the machine to get it working properly again. I couldn't ping devices and the leases file was empty before the reboot. I obviously had to reconfigure the dhcpd.conf file with my previous settings, but all is good now! I was about to the point of reinstalling my VM. Taking a snapshot now :D

    – Brandon Brown
    May 14 '18 at 22:34











  • Why did you edit my post? "hosed" means that something broke. I did not mean "I hosted my server". Please change it back. Thanks

    – Brandon Brown
    May 17 '18 at 4:09

















I want to add that after trying your solution, I had to reboot the machine to get it working properly again. I couldn't ping devices and the leases file was empty before the reboot. I obviously had to reconfigure the dhcpd.conf file with my previous settings, but all is good now! I was about to the point of reinstalling my VM. Taking a snapshot now :D

– Brandon Brown
May 14 '18 at 22:34





I want to add that after trying your solution, I had to reboot the machine to get it working properly again. I couldn't ping devices and the leases file was empty before the reboot. I obviously had to reconfigure the dhcpd.conf file with my previous settings, but all is good now! I was about to the point of reinstalling my VM. Taking a snapshot now :D

– Brandon Brown
May 14 '18 at 22:34













Why did you edit my post? "hosed" means that something broke. I did not mean "I hosted my server". Please change it back. Thanks

– Brandon Brown
May 17 '18 at 4:09





Why did you edit my post? "hosed" means that something broke. I did not mean "I hosted my server". Please change it back. Thanks

– Brandon Brown
May 17 '18 at 4:09


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f968898%2ferror-reinstalling-isc-dhcp-server-post-installation-script-returned-error-exit%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

格利澤436b

When can things happen in Etherscan, such as the picture below?