guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.48k stars 367 forks source link

Hash Sum mismatch #421

Closed Nexqss closed 7 years ago

Nexqss commented 7 years ago

Hi,

I wanted to install the desktop version with the script sudo /home/pi/scripts/install-desktop and then when apt-get update want i got :

pi@octopi:~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Get:2 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:3 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,536 kB]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:4 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:5 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [84.2 kB]
Get:6 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,702 kB in 57s (169 kB/s)
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/main/binary-armhf/Packages  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

And when i run the script :

sudo /home/pi/scripts/install-desktop

This will install the desktop environment on your Pi
Please keep in mind that the desktop environment needs
system resources that then might not be available for
printing, possible leading to print artifacts.
It is not recommended to run the desktop environment
alongside OctoPrint if you do not have a Pi with
multiple cores (e.g. Pi1 or PiZero). Even then, use
at your own risk.

If you do not want to install the desktop environment
after all, please hit Ctrl+C now.

Press any key to continue or Ctrl+C to exit...

The desktop environment can be set up to start
automatically when the Pi boots.
If you want to have it set up this way, please
type 'yes' now. Type 'no' if not.
Finish with ENTER: yes

Going to install the desktop environment (automatic start on boot: yes)

This will take a while, do NOT switch off the Pi or close this console until done!

--- Updating our package list

Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:2 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Get:3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [84.2 kB]
Get:5 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Get:6 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,536 kB]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,702 kB in 36s (265 kB/s)
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/main/binary-armhf/Packages  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

--- Installing desktop packages

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 raspberrypi-ui-mods : Depends: lxpanel but it is not going to be installed
                       Depends: pcmanfm but it is not going to be installed
                       Depends: openbox but it is not going to be installed
                       Depends: x11-xserver-utils but it is not installable
                       Depends: pimixer but it is not going to be installed
                       Depends: pipanel but it is not going to be installed
                       Depends: lxinput but it is not going to be installed
                       Depends: gtk2-engines-pixbuf but it is not installable
                       Depends: gtk2-engines-clearlookspix but it is not going to be installed
                       Depends: scrot but it is not installable
                       Depends: lightdm but it is not going to be installed
                       Depends: pishutdown but it is not going to be installed
                       Depends: gnome-icon-theme but it is not installable
                       Depends: xserver-xorg but it is not going to be installed
                       Depends: policykit-1 but it is not installable
                       Depends: rpd-icons but it is not going to be installed
                       Depends: pi-greeter but it is not going to be installed
                       Depends: rpd-plym-splash but it is not going to be installed
                       Depends: zenity but it is not installable
                       Recommends: xserver-xorg-video-fbturbo but it is not going to be installed
                       Recommends: libgksu2-0 but it is not installable
E: Unable to correct problems, you have held broken packages.

--- Setting up Pi to boot to desktop

--- Done!

You might want to reboot now: sudo reboot

I have been searchin the web for 10+ hours and tried to delete lists/partial, apt-get clean... and not working for me could you help me pls. Ty in advance for you precius help !

guysoft commented 7 years ago
  1. This happens when a mirror is not synced. Your raspbian regional mirror may not be updated. try running apt-get update again. This could take up to 24 hours to resolve itself.
  2. Check that your disk did not run out of space: More info: https://www.raspberrypi.org/forums/viewtopic.php?t=65062
Nexqss commented 7 years ago

Ok ill try that that a bit later on, i have 14Go of free space

pi@octopi:~ $ df -Bm
Filesystem     1M-blocks  Used Available Use% Mounted on
/dev/root         14892M 1593M    12663M  12% /
devtmpfs            426M    0M      426M   0% /dev
tmpfs               430M    0M      430M   0% /dev/shm
tmpfs               430M    6M      425M   2% /run
tmpfs                 5M    1M        5M   1% /run/lock
tmpfs               430M    0M      430M   0% /sys/fs/cgroup
/dev/mmcblk0p1       41M   21M       21M  52% /boot

Btw ty very much for you quick answer :) ill let you know when its fix or not :)

guysoft commented 7 years ago

Will close if no update soon

Nexqss commented 7 years ago

sounds fixed now ty for the support ill close the topic :)