snapcraft should run apt-get update

Bug #1841618 reported by Anatoli Babenia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

When run from a process container, `snapcraft` could fail, because `apt-get` caches are not up to date.

https://cirrus-ci.com/task/4766182000820224

The solution is to update the cache if it is too old. There are feature requests for that in `apt`.

https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1429285
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1709603

Some solutions were proposed on StackExchange.

https://unix.stackexchange.com/questions/271000/update-apt-get-cache-only-if-its-older-than-certain-time?rq=1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.