見出し画像

もんく [マレーシアで働いて13年→2022猫を連れて日本]

Ubuntu server 道半ば (apt update 403 error)

昨夜、Ubuntu serverを動かしたまま帰宅。朝まで大丈夫だった。

が、問題が出てきた。IPアドレスをリリースしたのかリモート接続できない。完全に静的IPでなくて他の機器が勝手に与える形で静的IPになっていたが、これを自サーバーで固定するタイプの完全静的IPにしてもいつかダメになるようになった。

それと起動時にLXCが立ち上がらなくなってしまって、マニュアル操作でもダメになった。aptも変なので再インストールしてみようと思う。

(つづく) 今日更新するつもり


追加(2019年10月2日朝)

Ubuntu server 18.04をインストールした後に sudo apt update で403エラーが出た。
これがエラーメッセージ。
----------------------
Err:1 http://my.archive.ubuntu.com/ubuntu bionic InRelease
403 Forbidden [IP: 91.189.88.149 80]
Err:2 http://my.archive.ubuntu.com/ubuntu bionic-updates InRelease
403 Forbidden [IP: 91.189.88.149 80]
Err:3 http://my.archive.ubuntu.com/ubuntu bionic-backports InRelease
403 Forbidden [IP: 91.189.88.149 80]
Err:4 http://my.archive.ubuntu.com/ubuntu bionic-security InRelease
403 Forbidden [IP: 91.189.88.149 80]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://my.archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
E: Failed to fetch http://my.archive.ubuntu.com/ubuntu/dists/bionic/InRelease 403 Forbidden [IP: 91.189.88.149 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://my.archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
E: Failed to fetch http://my.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 403 Forbidden [IP: 91.189.88.149 80]
E: Failed to fetch http://my.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease 403 Forbidden [IP: 91.189.88.149 80]
E: The repository 'http://my.archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://my.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease 403 Forbidden [IP: 91.189.88.149 80]
E: The repository 'http://my.archive.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
----------------------------

Ubuntu serverのバージョン情報
VERSION="18.04.3 LTS (Bionic Beaver)"

ハードウェアは
HP ProLiant ML350e Gen8 (Windows serverのサポート期限切れで再利用)

ネットワークは社内LAN
インターネットへの出口は通信会社の光ファイバーとその会社提供のモデム。
モデムからFortiGateファイアーウォール→ネットワークスイッチ→LANとなる。
通常程度のWebフィルターはかかっているが、プロキシは使用していない。
プロキシが設定されているかも念のため確認はした。

/etc/netplan/50-cloud-init.yamlの中身は下記です。
ちなみにインストール直後にも403エラーは発生していました。
その後再確認でインストール直後のファイルに置換しましたがそれでも発生。
network:
ethernets:
eno1:
dhcp4: no ←インストール後に記入
dhcp6: no ←インストール後に記入
addresses:
- 192.168.0.xxx/24 ←固定(インストール中に設定)
gateway4: 192.168.0.1
nameservers:
addresses:
- 208.xx.xx.xx ←インストール中に設定
- 208.xx.xx.xx ←インストール後に記入
- 8.8.8.8     ←インストール後に記入
search: [] 
optional: true
version: 2

現在時刻の設定とタイムゾーンの設定もしましたが、それでも同じエラーが出た。
タイムゾーンは日本でなく、マレーシアなので+8。

リポジトリの中身を他国(日本)のものに替えても同じエラーが出た。

/etc/apt/sources.listの中身を変更。(これで解決した)
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb ftp://my.archive.ubuntu.com/ubuntu bionic main restricted ←httpをftpに変更
# deb-src http://my.archive.ubuntu.com/ubuntu bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb ftp://my.archive.ubuntu.com/ubuntu bionic-updates main restricted ←httpをftpに変更
# deb-src http://my.archive.ubuntu.com/ubuntu bionic-updates main restricted
(まだ続くが、全てのhttpをftoに替えた。)

現象としては、インストール時にもアップデートは行われるが、そこでは問題なくアップデートは行われていた。インストール後、マシン再起動で通常起動するとアップデートができなかった。

終わり
名前:
コメント:

※文字化け等の原因になりますので顔文字の投稿はお控えください。

コメント利用規約に同意の上コメント投稿を行ってください。

 

  • Xでシェアする
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする

最新の画像もっと見る

最近の「マレーシアでニャー2019」カテゴリーもっと見る

最近の記事
バックナンバー
人気記事