I have a raspberry pi that is running linux. The system date and time are incorrect. I want to install NTP on it so that I can fix the time. All the instructions I can find anywhere say to use 'apt_get' to install NTP. However it seem like I don't have apt installed on my pi since I get the message "apt-get" not found whenever I try to use it.
What I have done:
I have been trying to install apt with dpkg but have been unsuccessful. I found some instruction here saying that I could use
to download a package for apt but I got a 404 error from the provided URL. I then when to http://mirrordirector.raspbian.org/raspbian/pool/main/a/apt/ in my browser and tried downloading one of the available packages
Once I had a package I tried to install it using
dpkg -i apt_1.4.6_armhf.deb but got the following error:
dpkg: error processing archive apt_1.4.6_armhf.deb (--install): package architecture (armhf) does not match system (armel) Errors were encountered while processing: apt_1.4.6_armhf.deb
Then I found another site (archive.debian.org/debian/pool/main/a/apt/) that had packages that had 'armel' in the name instead of 'armhf' and dowloaded it and tried installing the new package using
dpkg -i apt_0.7.20.2\+lenny2_armel.deb
The result was the following errors:
(Reading database ... 333 files and directories currently installed.) Preparing to unpack apt_0.7.20.2+lenny2_armel.deb ... Unpacking apt (0.7.20.2+lenny2) over (0.7.20.2+lenny2) ... dpkg: dependency problems prevent configuration of apt: apt depends on libc6 (>= 2.7-1); however: Package libc6 is not installed. apt depends on libgcc1 (>= 1:4.3); however: Package libgcc1 is not installed. apt depends on libstdc++6 (>= 4.3); however: Package libstdc++6 is not installed. apt depends on debian-archive-keyring; however: Package debian-archive-keyring is not installed. dpkg: error processing package apt (--install): dependency problems - leaving unconfigured Errors were encountered while processing: apt
I don't know what to do now. Do I need to find a way to install all those missing libraries or does someone know a better way to get NTP installed?