Raspberry Pi: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
</source> |
</source> |
||
where <code>192.168.1.*</code> will be your local network mask. |
where <code>192.168.1.*</code> will be your local network mask. |
||
== Troubleshoot == |
|||
=== 403 Forbidden when apt-get upgrade === |
|||
From [http://raspberrypi.stackexchange.com/questions/24782/apt-get-install-upgrade-403-forbidden]: |
|||
<source lang=text> |
|||
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc-dev-bin armhf 2.13-38+rpi2+deb7u8 |
|||
403 Forbidden |
|||
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc6-dev armhf 2.13-38+rpi2+deb7u8 |
|||
403 Forbidden |
|||
</source> |
|||
Edit {{file|/etc/apt/apt.conf}}: |
|||
<source lang=diff> |
|||
-deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi |
|||
+#deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi |
|||
+deb http://archive.raspbian.org/raspbian wheezy main contrib non-free |
|||
+deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free |
|||
</source> |
Revision as of 05:53, 27 April 2015
Network
Detect all Raspberry Pi on local network
From [1].
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
where 192.168.1.*
will be your local network mask.
We can also simply look for string Raspberry
since nmap
correctly identifies pi mac address:
sudo nmap -sP 192.168.1.0/24 | grep -B2 Raspberry
where 192.168.1.*
will be your local network mask.
Troubleshoot
403 Forbidden when apt-get upgrade
From [2]:
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc-dev-bin armhf 2.13-38+rpi2+deb7u8
403 Forbidden
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc6-dev armhf 2.13-38+rpi2+deb7u8
403 Forbidden
Edit /etc/apt/apt.conf:
-deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
+#deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
+deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
+deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free