Jump to content

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


jpgs

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

 

Link to comment
Share on other sites

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

Link to comment
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

Link to comment
Share on other sites

  • 4 weeks later...

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!!

Link to comment
Share on other sites

  • 1 month later...
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?

Link to comment
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

Link to comment
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.

Link to comment
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.

Link to comment
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.

Link to comment
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...

Link to comment
Share on other sites

  • 2 months later...
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.

Link to comment
Share on other sites

  • 2 months later...
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

Link to comment
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

Link to comment
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...