Jump to content
jpgs

Fresh install of ch_fw_1.5_298.tar.gz and problem with apt-get uprade (procps)

Recommended Posts

Hi there,

I've just freshly installed ch_fw_1.5_298.tar.gz. After ssh'ing into BB I've performed apt-get update and apt-get upgrade. This is the error I've got:

Preparing to unpack .../procps_2%3a3.3.9-9+deb8u1_armhf.deb ...
Failed to stop procps.service: Unit procps.service not loaded.
invoke-rc.d: initscript procps, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop procps.service: Unit procps.service not loaded.
invoke-rc.d: initscript procps, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/procps_2%3a3.3.9-9+deb8u1_armhf.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
Failed to start procps.service: Unit procps.service failed to load: No such file or directory.
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
 /var/cache/apt/archives/procps_2%3a3.3.9-9+deb8u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

How can this problem be solved? It looks more the problem is linux/debian related but maybe someone here has seen this problem as well.

 

Best regards, Pedro

 

Share this post


Link to post
Share on other sites

Do you have internet sharing for the bunny?  what OS.  Can you ping 8.8.8.8?

Share this post


Link to post
Share on other sites

Hi b0N3z,

thanks for replying. And yes, internet sharing is working, pinging google's DNS works as well. apt-get update worked without any problems. The error happens when apt-get upgrade is running and the procps package causes for whatever reason this problems. Googling around on the internet didn't lead me to a solution yet.

Best regards, Pedro

Share this post


Link to post
Share on other sites

oops. forgot to mention the OS: Windows 10, build 17134, only today updates are missing, didn't reboot yet.

Share this post


Link to post
Share on other sites

Took me ages to solve this problem... If you are desperate run the following two commands:

rm /var/lib/dpkg/info/libprocps*

rm /var/lib/dpkg/info/procps*

 

Followed by:

apt-get upgrade

 

Now you should be able to run:

apt-get update && apt-get upgrade

 

By this stage I was able to apt-get install any packages and everything seems to work... Hope this works the same for you!!

Share this post


Link to post
Share on other sites

Hi MB60893,

thank you for your reply. I hope to have some free time next Friday. The World Cup is eating all of my free time :).

I will come back you.

Best regards, Pedro

Share this post


Link to post
Share on other sites
5 hours ago, vay3t said:

I have the same problem. I can not update the bash bunny. @MB60893 your solution did not work ?

Can you provide more information @vay3t? Possibly some things you've tried, or the error messages you're getting?

Share this post


Link to post
Share on other sites

Hi MB60893,

sorry for the delay, I simply forgot this topic. After deleting the libprocps and procps stuff as you described above I've got several warnings (maybe understandable since we deleted someting):

dpkg: warning: files list file for package 'libprocps3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'procps' missing; assuming package has no files currently installed

 

At the end I get this error message:

 

Preparing to unpack .../procps_2%3a3.3.9-9+deb8u1_armhf.deb ...
Unpacking procps (2:3.3.9-9+deb8u1) over (2:3.3.9-9) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u7) ...
Setting up procps (2:3.3.9-9+deb8u1) ...
Failed to start procps.service: Unit procps.service failed to load: No such file or directory.
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing package procps (--configure):
 subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
 procps
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

 

Best regards, Pedro

Share this post


Link to post
Share on other sites

Yeah .. I'm getting this error as well.

@MB60893 When *I ran your advice given above, I get this error message after running apt-get upgrade:

Preconfiguring packages ...
Setting up procps (2:3.3.9-9+deb8u1) ...
Failed to start procps.service: Unit procps.service failed to load: No such file or directory.
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing package procps (--configure):
 subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
 procps
E: Sub-process /usr/bin/dpkg returned an error code (1)

I imagine its an error with the procps .deb file somehow but haven't fully looked into yet.

Edited by _0NiTy
goofed spelling

Share this post


Link to post
Share on other sites

I will attempt to find another solution... For the time being, I would attempt to get the bash bunny connected to the internet, and ensure you can ping a known server on the internet. If you get ping replies, try running my scripts again, and rebooting before running the apt-get upgrade and update. Also: try clearing the apt-cache. That may also help.

Share this post


Link to post
Share on other sites
On 5/25/2018 at 9:52 PM, jpgs said:

Hi there,

I've just freshly installed ch_fw_1.5_298.tar.gz. After ssh'ing into BB I've performed apt-get update and apt-get upgrade. This is the error I've got:

Preparing to unpack .../procps_2%3a3.3.9-9+deb8u1_armhf.deb ...
Failed to stop procps.service: Unit procps.service not loaded.
invoke-rc.d: initscript procps, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop procps.service: Unit procps.service not loaded.
invoke-rc.d: initscript procps, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/procps_2%3a3.3.9-9+deb8u1_armhf.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
Failed to start procps.service: Unit procps.service failed to load: No such file or directory.
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
 /var/cache/apt/archives/procps_2%3a3.3.9-9+deb8u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

How can this problem be solved? It looks more the problem is linux/debian related but maybe someone here has seen this problem as well.

 

Best regards, Pedro

 

After sharing an internet connection with the bash bunny, and then ssh-ing in, the following seemed to work for me when updating the bunny:

apt-get update
apt-mark hold procps
apt-get upgrade

When apt-get then listed out what it was going to upgrade, it showed procps as not being upgraded.

  • Upvote 2

Share this post


Link to post
Share on other sites
13 hours ago, simonRP said:

apt-mark hold procps

I can confirm inputting this command before upgrade will "--ignore" upgrades for procps. BB has successfully upgraded, thanks!

Share this post


Link to post
Share on other sites

Hi,

 

Here is the solution;

 

The problem is there is a file missing because of that procps service cannoty be started, here is how to fix it;

 

cp /lib/systemd/system/bak/systemd-sysctl.service /lib/systemd/system
ln -s /lib/systemd/system/procps.service /etc/systemd/system/procps.service

 

Now you are good to go...

  • Upvote 2

Share this post


Link to post
Share on other sites
On 8/26/2018 at 1:03 PM, OluMMelegi said:

Hi,

Here is the solution;

The problem is there is a file missing because of that procps service cannoty be started, here is how to fix it;


cp /lib/systemd/system/bak/systemd-sysctl.service /lib/systemd/system
ln -s /lib/systemd/system/procps.service /etc/systemd/system/procps.service

Now you are good to go...

Thank you so much. THIS is the actual fix. Been working through this problem all night, so glad someone figured this out.

I'm shocked this isn't part of the wiki, this problem affects all bash bunnies.

  • Upvote 1

Share this post


Link to post
Share on other sites
On 11/7/2018 at 4:13 AM, seajay said:

Thank you so much. THIS is the actual fix. Been working through this problem all night, so glad someone figured this out.

I'm shocked this isn't part of the wiki, this problem affects all bash bunnies.

 

This worked for me as well.

 

Thanks

Share this post


Link to post
Share on other sites
On 8/26/2018 at 7:03 PM, OluMMelegi said:

 


cp /lib/systemd/system/bak/systemd-sysctl.service /lib/systemd/system
ln -s /lib/systemd/system/procps.service /etc/systemd/system/procps.service

 

On 11/7/2018 at 4:13 AM, seajay said:

Thank you so much. THIS is the actual fix. Been working through this problem all night, so glad someone figured this out.

I'm shocked this isn't part of the wiki, this problem affects all bash bunnies.

 

Worked for me as well.

 

Thanks

Share this post


Link to post
Share on other sites

Hmm, I have never done an update to the BashBunny using aptitude.  I just upgrade firmware and use tools package seb dropped in.  I try and keep anything I build to the base packages like with node I do not use express package.  For python don't use django, etc.  If I want to add a tool I will try the tools method first.

Only reason is so I do not change the version accidentally of some of the base packages or configs default on the BB and break something.  Also, when I keep payload installations simple, I get asked less questions on how to install and use them.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...