Read the statement by Michael Teeuw here.
Beginner MagicMirror Install Issue - apt --fix-broken install
-
Hi everyone,
I’m a complete beginner and I’ve just purchased my first Raspberry Pi 3. I purchased the Raspberry Pi mainly to create a MagicMirror, after I was so amazed by seeing this for the first time on YouTube. There are so many creative people out there who have created these thanks to Michael Teeuw. There are so many great videos on YouTube to help you and so many creative people.
So I first installed Raspbian Stretch with desktop
Image with desktop (based on Debian Stretch) which I presumed was the correct one to download? I used this as originally there was the mention of installing Jessie but from what I’ve read this is the new version, I’m not sure if that’s correct but I’m no longer able to find the Jessie file.So I installed everything there were some issues along the way trying to format my 32GB and 64GB micro SD card. Does anyone have any idea how to format an 64GB micro SD XC to FAT32? I’ve tried a load of suggestions, but none of then seem to work correctly and I’m still stuck with a 64GB micro SD card I’m not able to use which seems a waste. Any advice would be greatly appreciated thanks.
So I’ve been following TaylorTech who runs you through installing the MagicMirror in three great videos. https://youtu.be/0Q04SKvibik
I thought I had followed his instructions correctly but unfortunately, there seems to be an issue. I went and pasted the code below for the quick install of MagicMirror.
bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
I’ve seen in videos once this is first installed it says MagicMirror2 at the top in text but instead I got this.
$$\ $$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$\ $$$ | \__| $$$\ $$$ |\__| $$ __$$\ $$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$$$\ $$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ \__/ $$ | $$\$$\$$ $$ | \____$$\ $$ __$$\ $$ |$$ _____|$$\$$\$$ $$ |$$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$$$$$ | $$ \$$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$ \$$$ $$ |$$ |$$ | \__|$$ | \__|$$ / $$ |$$ | \__|$$ ____/ $$ |\$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ |\$ /$$ |$$ |$$ | $$ | $$ | $$ |$$ | $$ | $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ | $$ | \$$$$$$ |$$ | $$$$$$$$\ \__| \__| \_______| \____$$ |\__| \_______|\__| \__|\__|\__| \__| \______/ \__| \________| $$\ $$ | \$$$$$$ | \______/
I’m not sure if that is normal?
so I went ahead a tried the code again and finally I got the text MagicMirror2 at the top as I’d seen in videos.
Unfortunately for some reason it did not install as suspected and I got the code below. If any one would be able to assist me with this I would be most grateful.
I’m very new to all of this as I’ve mentioned, so please any help or advice would be great. I love to learn with this Raspberry Pi I can see I’m going to have a lot of fun.
Thanks very much
IDCreateUpdating packages ... Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease Hit:2 http://archive.raspberrypi.org/debian stretch InRelease Reading package lists... Done Installing helper tools ... Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.3). unzip is already the newest version (6.0-21). You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: apt-utils : Depends: apt (= 1.4.7) but 1.4.8 is to be installed curl : Depends: libcurl3 (= 7.52.1-5+deb9u2) but 7.52.1-5 is to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-
Without being able to give the reason (since I haven’t tried stretch), I’d suggest to try out what the system asked of you.
You want to learn, after all:-)So go ahead with
sudo apt --fix-broken install
What does that give you?
For the next time: I’d suggest, after setting up a new system, at first do a
sudo apt-get update && sudo apt-get upgrade
to get your system up-to-date.
-
Hi lavolp,
Thanks very much for your reply. I appreciate you replying to me so quickly, I’m very new to all of this and I’ve never used code before. This is all a big learning curve, I’m also dyslexic which does not help.
I’ve seen loads of videos and read loads of information on setting up the magic mirror, but none of then make it clear. They either use code that they expect people to know already and also use lots of different terms that mean nothing to me. I wish there was a book or PDF available that told you every single step in an easy way to for people new to this like me that struggle to take things. I really like to learn but unfortunately being dyslexic, it does take me a little longer to learn and take on board what things mean. You have been a great help so far. I wish there was a course on the Raspberry Pi for people with learning disability’s and dyslexia that you could go on, that would teach you all these things.
The videos are great but unfortunately when you come up against a problem, there’s no way of moving forward. So thank goodness for this website/forum.
Please explain what does sudo mean? What are you running on your Raspberry Pi?
So I typed in what you said and I got this:
pi@raspberrypi:~ $ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: apt-utils The following packages will be upgraded: apt-utils 1 upgraded, 0 newly installed, 0 to remove and 106 not upgraded. 4 not fully installed or removed. Need to get 392 kB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf apt-utils armhf 1.4.8 [392 kB] Fetched 392 kB in 0s (1,976 kB/s) Reading changelogs... Done (Reading database ... 122683 files and directories currently installed.) Preparing to unpack .../apt-utils_1.4.8_armhf.deb ... Unpacking apt-utils (1.4.8) over (1.4.7) ... Setting up perl-modules-5.24 (5.24.1-3+deb9u2) ... Setting up libapt-inst2.0:armhf (1.4.8) ... Setting up libperl5.24:armhf (5.24.1-3+deb9u2) ... Setting up apt-utils (1.4.8) ... Setting up perl (5.24.1-3+deb9u2) ... Processing triggers for libc-bin (2.24-11+deb9u1) ... Processing triggers for man-db (2.7.6.1-2) ... pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
I then tried entering the install again and got this
pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)" $$\ $$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$\ $$$ | \__| $$$\ $$$ |\__| $$ __$$\ $$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$$$\ $$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ \__/ $$ | $$\$$\$$ $$ | \____$$\ $$ __$$\ $$ |$$ _____|$$\$$\$$ $$ |$$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$$$$$ | $$ \$$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$ \$$$ $$ |$$ |$$ | \__|$$ | \__|$$ / $$ |$$ | \__|$$ ____/ $$ |\$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ |\$ /$$ |$$ |$$ | $$ | $$ | $$ |$$ | $$ | $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ | $$ | \$$$$$$ |$$ | $$$$$$$$\ \__| \__| \_______| \____$$ |\__| \_______|\__| \__|\__|\__| \__| \______/ \__| \________| $$\ $$ | \$$$$$$ | \______/ Updating packages ... Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease Reading package lists... Done Installing helper tools ... Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.3). unzip is already the newest version (6.0-21). The following additional packages will be installed: libcurl3 Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn The following packages will be upgraded: curl git libcurl3 wget 4 upgraded, 0 newly installed, 0 to remove and 102 not upgraded. Need to get 4,629 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf git armhf 1:2.11.0-3+deb9u2 [3,380 kB] Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf wget armhf 1.18-5+deb9u1 [768 kB] Get:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf curl armhf 7.52.1-5+deb9u2 [220 kB] Get:4 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u2 [261 kB] Fetched 4,629 kB in 1s (3,226 kB/s) Reading changelogs... Done (Reading database ... 122683 files and directories currently installed.) Preparing to unpack .../git_1%3a2.11.0-3+deb9u2_armhf.deb ... Unpacking git (1:2.11.0-3+deb9u2) over (1:2.11.0-3) ... Preparing to unpack .../wget_1.18-5+deb9u1_armhf.deb ... Unpacking wget (1.18-5+deb9u1) over (1.18-5) ... Preparing to unpack .../curl_7.52.1-5+deb9u2_armhf.deb ... Unpacking curl (7.52.1-5+deb9u2) over (7.52.1-5) ... Preparing to unpack .../libcurl3_7.52.1-5+deb9u2_armhf.deb ... Unpacking libcurl3:armhf (7.52.1-5+deb9u2) over (7.52.1-5) ... Setting up libcurl3:armhf (7.52.1-5+deb9u2) ... Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ... Processing triggers for libc-bin (2.24-11+deb9u1) ... Setting up wget (1.18-5+deb9u1) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up git (1:2.11.0-3+deb9u2) ... Setting up curl (7.52.1-5+deb9u2) ... Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v5.1.0 Installed Node version: v4.8.2 Node should be upgraded. Installing Node.js ... ## Installing the NodeSource Node.js v6.x repo... ## Populating apt-get cache... + apt-get update Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease Reading package lists... Done ## Confirming "stretch" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dists/stretch/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - OK ## Creating apt sources list file for the NodeSource Node.js v6.x repo... + echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease Get:3 https://deb.nodesource.com/node_6.x stretch InRelease [4,647 B] Get:4 https://deb.nodesource.com/node_6.x stretch/main Sources [765 B] Get:5 https://deb.nodesource.com/node_6.x stretch/main armhf Packages [1,006 B] Fetched 6,418 B in 1s (4,083 B/s) Reading package lists... Done ## Run `apt-get install nodejs` (as root) to install Node.js v6.x and npm Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libuv1 Use 'sudo apt autoremove' to remove it. The following packages will be REMOVED: nodejs-legacy nodered The following packages will be upgraded: nodejs 1 upgraded, 0 newly installed, 2 to remove and 102 not upgraded. Need to get 8,764 kB of archives. After this operation, 27.9 MB of additional disk space will be used. Get:1 https://deb.nodesource.com/node_6.x stretch/main armhf nodejs armhf 6.11.5-1nodesource1 [8,764 kB] Fetched 8,764 kB in 2s (3,117 kB/s) apt-listchanges: Reading changelogs... (Reading database ... 122683 files and directories currently installed.) Removing nodered (0.17.4) ... Removing nodejs-legacy (4.8.2~dfsg-1) ... (Reading database ... 115794 files and directories currently installed.) Preparing to unpack .../nodejs_6.11.5-1nodesource1_armhf.deb ... Unpacking nodejs (6.11.5-1nodesource1) over (4.8.2~dfsg-1) ... Processing triggers for mime-support (3.60) ... Processing triggers for desktop-file-utils (0.23-1) ... Setting up nodejs (6.11.5-1nodesource1) ... Processing triggers for gnome-icon-theme (3.12.0-2) ... Processing triggers for man-db (2.7.6.1-2) ... Processing triggers for gnome-menus (3.13.3-9) ... Node.js installation Done! It seems like MagicMirror is already installed. To prevent overwriting, the installer will be aborted. Please rename the ~/MagicMirror folder and try again. If you want to upgrade your installation run git pull from the ~/MagicMirror directory. pi@raspberrypi:~ $
I did do a few updates as suggested on the video
sudo apt-get update
&
sudo apt-get dist-upgrade
But the update you told me to do first below I just tried and it went on for ages, what is the difference between all these updates? What are the main updates to do regularly?
sudo apt-get update && sudo apt-get upgrade
I’m not sure what it all means it says it’s installed by how do I start it? I just need a step by step guide from setting up the raspberry pi from scratch to how to install MagicMirror2
What is the difference between Raspbian Stretch and jessie ?
I know it’s asking a lot but if there’s anyone out there will to do this for somebody less competent so they can learn I would be grateful.
Just please reply in your own time, I’m just great full that someone is happy to help. I just want a better understanding of how it all works so I can make sense of it all in an easy way.
Many Thanks
IDCreate