Skip to content

[201811][apt] Instruct apt-get to NOT check the "Valid Until" date in Release files #3975

Merged
lguohan merged 1 commit intosonic-net:201811from
jleveque:no_check_valid_until_201811
Jan 8, 2020
Merged

[201811][apt] Instruct apt-get to NOT check the "Valid Until" date in Release files #3975
lguohan merged 1 commit intosonic-net:201811from
jleveque:no_check_valid_until_201811

Conversation

@jleveque
Copy link
Contributor

@jleveque jleveque commented Jan 4, 2020

Backport of PRs #3958 & #3973 to the 201811 branch.

When the Debian team archives a repo, it stops updating the "Valid Until" date, thus apt-get will not apply updates for that repo unless we explicitly tell it to ignore the "Valid Until" date. Also, this has become an issue with active (i.e., non-archived) repos twice in the past year because the Debian folks seem to occasionally let the expiration lapse before updating the date. This will cause SONiC builds to fail with a message like E: Release file for http://debian-archive.trafficmanager.net/debian-security/dists/jessie/updates/InRelease is expired (invalid since 3d 3h 11min 20s). Updates for this repository will not be applied. until the dates have been updated and propagated to all mirrors. With this patch, SONiC should no longer be affected by lapsed "Valid Until" dates, whether they be accidental or purposeful.

@jleveque jleveque self-assigned this Jan 4, 2020
@jleveque jleveque requested a review from lguohan January 4, 2020 00:45
@lguohan lguohan merged commit 0eab6a4 into sonic-net:201811 Jan 8, 2020
@jleveque jleveque deleted the no_check_valid_until_201811 branch January 15, 2020 17:20
mssonicbld added a commit that referenced this pull request Jul 17, 2025
…atically (#23364)

#### Why I did it
src/sonic-utilities
```
* 6a4a8ff5 - (HEAD -> 202505, origin/202505) [sonic-package-manager] Save tag that was used to install the application (#3975) (15 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants