학교에서 mpich 프로그래밍 개발환경 구축을 위해 실습을 하는데, apt-get update를 하던 중 처음보는 오류가 났다.
E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 3h 50min 47s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 3h 50min 55s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease is not valid yet (invalid for another 3h 51min 18s). Updates for this repository will not be applied.
이런 오류가 나면서 update가 정상적으로 이루어지지 않는데, 찾아보니
컴퓨터의 시간대가 맞지 않아 나는 오류라고 한다.
호스트를 다시 시작하거나
sudo hwclock --hctosys
이 명령어를 사용하면 window 시스템의 RTC 시간대를 최신으로 가져오고 시스템 시간을 설정된다.
sudo apt-get update
다시하면 정상적으로 패키지가 업데이트 되는 걸 볼 수 있다.