apt-get update
したら URL が見つからないよと言われたので。リポジトリを ftp.riken.jp にしてるんだけど Zesty のサポートが2018年1月までだったのでサーバから無くなったようだ。
$ cd /etc/apt $ sudo gzip -k sources.list $ sudo sed -i'' 's/zesty/artful/g' sources.list $ sudo apt-get update $ sudo apt-get dist-upgrade
追記:do-release-upgrade
というコマンドがあった。
$ sudo do-release-upgrade --help Usage: do-release-upgrade [options] Options: -h, --help show this help message and exit -V, --version Show version and exit -d, --devel-release If using the latest supported release, upgrade to the development release --data-dir=DATA_DIR Directory that contains the data files -p, --proposed Try upgrading to the latest release using the upgrader from $distro-proposed -m MODE, --mode=MODE Run in a special upgrade mode. Currently 'desktop' for regular upgrades of a desktop system and 'server' for server systems are supported. -f FRONTEND, --frontend=FRONTEND Run the specified frontend -c, --check-dist-upgrade-only Check only if a new distribution release is available and report the result via the exit code -q, --quiet
が、これをやると色々と吹っ飛んだ…。
あと、Mac で久しぶりに git 使ってたら git tag --sort=v:refname
が使えなくなってた。一番新しいタグを拾うのに使ってたのに…。
調べてみたら for-each-ref
で一番新しいタグを拾いたければ --count=1 --sort=-taggerdate
で逆順出せばいいようだ。楽ちん。
git for-each-ref --sort=-taggerdate --count=1 --format '%(refname:short)' refs/tags