apt-get -y install ntp gives error Failed to fetch http://security...

586 views
Skip to first unread message

Matt99eo

unread,
Jun 9, 2016, 6:47:04 PM6/9/16
to BeagleBoard
Hi,

I am trying to reinstall ntp on some BBB running 3.8.13-bone70  debian wheezy.

When I run apt-get -y install --reinstall ntp I get:

apt-get install --reinstall ntp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 81 not upgraded.
Need to get 494 kB of archives.
After this operation, 0 B of additional disk space will be used.
Err http://security.debian.org/ wheezy/updates/main ntp armhf 1:4.2.6.p5+dfsg-2+deb7u4
  404  Not Found [IP: 128.101.240.215 80]
Failed to fetch http://security.debian.org/pool/updates/main/n/ntp/ntp_4.2.6.p5+dfsg-2+deb7u4_armhf.deb  404  Not Found [IP: 128.101.240.215 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I don't want to run apt-get update -- as this device is running remotely off a 2G slow connection.  

How can I fix this without having to run apt-get update?  

Did my sources.list get too old?  Here is what is in there now:

cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free

deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
#deb-src http://security.debian.org/ wheezy/updates main contrib non-free

#deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
##deb-src http://ftp.debian.org/debian wheezy-backports main contrib non-free

#
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp
#
deb [arch=armhf] http://repos.rcn-ee.net/debian/ wheezy main
#deb-src [arch=armhf] http://repos.rcn-ee.net/debian/ wheezy main

Regards,
Matt

Robert Nelson

unread,
Jun 9, 2016, 7:10:55 PM6/9/16
to Beagle Board
On Thu, Jun 9, 2016 at 5:47 PM, Matt99eo <mattmahe...@gmail.com> wrote:
> Hi,
>
> I am trying to reinstall ntp on some BBB running 3.8.13-bone70 debian
> wheezy.
>
> When I run apt-get -y install --reinstall ntp I get:
>
> apt-get install --reinstall ntp
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 81 not
> upgraded.
> Need to get 494 kB of archives.
> After this operation, 0 B of additional disk space will be used.
> Err http://security.debian.org/ wheezy/updates/main ntp armhf
> 1:4.2.6.p5+dfsg-2+deb7u4
> 404 Not Found [IP: 128.101.240.215 80]
> Failed to fetch
> http://security.debian.org/pool/updates/main/n/ntp/ntp_4.2.6.p5+dfsg-2+deb7u4_armhf.deb
> 404 Not Found [IP: 128.101.240.215 80]
> E: Unable to fetch some archives, maybe run apt-get update or try with
> --fix-missing?
>
> I don't want to run apt-get update -- as this device is running remotely off
> a 2G slow connection.
>
> How can I fix this without having to run apt-get update?

Look at:

http://security.debian.org/pool/updates/main/n/ntp/

See: ntp_4.2.6.p5+dfsg-2+deb7u6_armhf.deb

wget http://security.debian.org/pool/updates/main/n/ntp/ntp_4.2.6.p5+dfsg-2+deb7u6_armhf.deb

sudo dpkg -i ntp_4.2.6.p5+dfsg-2+deb7u6_armhf.deb

Regards,

--
Robert Nelson
https://rcn-ee.com/

William Hermans

unread,
Jun 9, 2016, 7:43:40 PM6/9/16
to beagl...@googlegroups.com
. . .


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYi%2B-puq3Ew0L13d_hAXsm0rM7CLpm1YJE6BeVDe289HLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Wally Bkg

unread,
Jun 9, 2016, 9:26:02 PM6/9/16
to BeagleBoard
Maybe this is overkill for your purposes, but when I was working with multiple Pandaboards in a lab that didn't allow them real internet access I used this to set up  "local repos" using a laptop and external USB drive connected and home and then moved into the lab and connected to the isolated local network as necessary:


While the initial setup took over night, keeping it updated wasn't too bad.


Matt

unread,
Jun 20, 2016, 5:12:08 PM6/20/16
to BeagleBoard
Thanks Robert.  Worked like a charm.

Did have to also install libopts25 with 

apt-get -y install libopts25
Reply all
Reply to author
Forward
0 new messages