RobEisenrich
Posts: 4
Joined: Mon Feb 11, 2019 3:37 pm

sudo apt get install mdadm -y fails

Mon Feb 11, 2019 3:59 pm

Hello,

New to raspberry pi. I am trying to set up a raid using the following tutorial "https://pchelp.ricmedia.com/build-raspb ... -server/2/". I am stuck on the steps to run

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install mdadm -y

As I receive errors for "sudo apt-get upgrade -y" and "sudo apt-get install mdadm -y". The error messages I get for both are

Reading package lists...Done
reading state information...Done
you might want to run 'apt--fix-broken install' to correct these.
The following packages have unmet dependencies:
apt-utils : Depends: apt (=1.4.8) but 1.4.9 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)


How do I run 'apt--fix broken install' or roll back apt-utils from 1.4.9 to 1.4.8 ?

Thanks!

DirkS
Posts: 9734
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: sudo apt get install mdadm -y fails

Mon Feb 11, 2019 8:00 pm

How do I run 'apt--fix broken install'
what about

Code: Select all

sudo apt --fix-broken install
as it says in the error msg?

RobEisenrich
Posts: 4
Joined: Mon Feb 11, 2019 3:37 pm

Re: sudo apt get install mdadm -y fails

Mon Feb 11, 2019 8:16 pm

I have tried this but I get the error message back that it does not recognize the command. Was not sure if there was anything I need to add to the command

DirkS
Posts: 9734
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: sudo apt get install mdadm -y fails

Mon Feb 11, 2019 8:19 pm

RobEisenrich wrote:
Mon Feb 11, 2019 8:16 pm
I have tried this but I get the error message back that it does not recognize the command. Was not sure if there was anything I need to add to the command
Did you see that the command you wrote at the end of your post is *not* the same as in the error msg?
Try copy/paste of the command I posted and post (also copy/paste) any *full* error msgs. Use code tags when you do that.

RobEisenrich
Posts: 4
Joined: Mon Feb 11, 2019 3:37 pm

Re: sudo apt get install mdadm -y fails

Mon Feb 11, 2019 10:05 pm

Worked like charm!

Thank you sir

Return to “Troubleshooting”