Run apt-get update before apt-get install to ensure up-to-date sources?

Issue #26 new
Nate Aune
created an issue

I added "python-imaging" to the packages = section of app.ini, but when it attempts to install PIL on the remote server, I get an error about libfreetype not being found:


"Failed to fetch 404 Not Found [IP: 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Looks like the correct URL should be: (notice an extra .2 in the URL above?)

So maybe we need to issue an apt-get update before we attempt to install any new OS packages to make sure the sources are up-to-date.

Comments (2)

  1. Ian Bicking repo owner

    You mean before installing something listed in packages? The one concern I have there is on every deployment apt-get install <packages> happens because it's a fairly fast way to confirm the packages are installed, and install them if they are not. If you add an update to that it gets a lot slower.

  2. Nate Aune reporter

    Yes, I mean running apt-get update before installing the packages listed in packages =. I know that apt-get update would slow things down, but maybe it could be an optional thing that you could set in your app.ini file, so that if you want to make sure that you always have the latest sources, you can turn it on, whereas if you don't care about that, and just want the updates to be the fastest they can be, then you can leave it off.

    Right now, I can't install python-imaging with Silverlining, because there is no opportunity to run apt-get update, so the install fails.

  3. Log in to comment