Debian sid amd64 環境で apt upgrade を行ったところ見慣れないエラーメッセージが表示され,処理もなかなか進みません.
sh: 0: getcwd() failed: No such file or directory
Debian sid amd64 環境で apt upgrade を行ったところ見慣れないエラーメッセージが表示され,処理もなかなか進みません.
sh: 0: getcwd() failed: No such file or directory
apt update時に一部のリポジトリで以下のようなメッセージが出ていました.特に問題はないので放置していましたが直してみました.
$ sudo apt update --snip-- Notice: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386' Notice: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://download.vscodium.com/debs vscodium InRelease' doesn't support architecture 'i386' --snip--
Debian sidでパッケージ更新をすると新しいaptがやってきました.そしてapt-listchangesで気になる記述が表示されました.
$ zcat /usr/share/doc/apt/NEWS.Debian.gz | head apt (2.9.11) unstable; urgency=medium The ftp, rsh, and ssh methods have been removed. They have been unsupported and disabled since 1.8. Please, migrate to http(s) instead, or contribute an sftp method. If you need ad hoc access to a remote repository, you can usually run `python3 -m http.server` on that machine and use SSH port forwarding to run HTTP over SSH.
ftp, rsh, sshメソッドが削除されたようです.
最大128kbps の povo 2.0 未課金回線で apt upgrade を試みました.
最近何度か apt upgrade でエラーとなってしまいました.恐らくBtrfs 環境依存かつ disk full 時に起こるようです.
メモしておきます.
先日開催された「鹿児島Linux勉強会 2024.02(オンライン開催)」でYamano さんの発表で知ったのですが,Mozilla がDebian ベールのディストリビューション向けにAPT リポジトリが提供されているそうです.
これを試してみました.
Mozilla は Firefox 122 から apt リポジトリでの提供を開始したので、これを用いることにします。 (昨年 11 月ごろから Nightly は提供していたらしい)
Ubuntu 19.10 amd64 環境でapt upgrade でエラーになります.
新しいKernel が降りてきてinitramfs のところでdm-crypy 領域が見つからない感じのようです.
initramfs-tools (0.133ubuntu9) のトリガを処理しています ... update-initramfs: Generating /boot/initrd.img-5.2.0-8-generic cryptsetup: ERROR: Couldn't resolve device /dev/disk/by-uuid/805938be-2c29-4a53-9ed2-36fb233d76ea cryptsetup: ERROR: Couldn't resolve device UUID=31145c5b-93fc-4fe0-9e46-3a68bfcadeae W: initramfs-tools configuration sets RESUME=UUID=31145c5b-93fc-4fe0-9e46-3a68bfcadeae W: but no matching swap device is available. 処理中にエラーが発生しました:
エラーメッセージで検索すると以下のページを発見.
The problem is that cryptsetup is not supported in the /etc/initramfs-tools/initramfs.conf configuration anymore.
The new location for loading dm-crypt during boot is /etc/cryptsetup-initramfs/conf-hook
CRYPTSETUP=y
you’ll see it in the conf-hook file commented out, just set it as above and it will work again.
If you build a system with encryption, I believe this gets changed at some point, but the live builds are systems that are not built like this, and there isn’t a lot to go on to direct you to make this change.
When you set that and re-make your iso image, you’ll be able to do encrypted persistence again. Worked for me on latest Kali January 2019. :-)
なるほど,この環境はいつも development branch にしているのでこの問題に当たったようですね.
/etc/cryptsetup-initramfs/conf-hook を CRYPTSETUP=y と編集して,
$ sudo vi /etc/cryptsetup-initramfs/conf-hook $ sudo git diff HEAD /etc/cryptsetup-initramfs/conf-hook diff --git a/cryptsetup-initramfs/conf-hook b/cryptsetup-initramfs/conf-hook index 8a6a474..fdd7920 100644 --- a/cryptsetup-initramfs/conf-hook +++ b/cryptsetup-initramfs/conf-hook @@ -15,7 +15,7 @@ # cryptsetup initramfs integration. # -#CRYPTSETUP= +CRYPTSETUP=y # # KEYFILE_PATTERN: ...
apt でfix-broken を掛けると正常にinitramfs が通り,再起動して新しいkernal で起動しました :)
$ sudo apt install -f
$ dpkg-query -W cryptsetup* initramfs-tools* cryptsetup 2:2.1.0-5ubuntu2 cryptsetup-bin 2:2.1.0-5ubuntu2 cryptsetup-initramfs 2:2.1.0-5ubuntu2 cryptsetup-run 2:2.1.0-5ubuntu2 initramfs-tools 0.133ubuntu9 initramfs-tools-bin 0.133ubuntu9 initramfs-tools-core 0.133ubuntu9 $ lsb_release -dr Description: Ubuntu Eoan Ermine (development branch) Release: 19.10 $ uname -m x86_64
2019-07-06 に Debian Buster 10 がリリースされました.
Debian 10 Buster testing 環境でリリース後に apt update をするとエラーになってしまいます.
$ sudo apt update Get:1 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB] Get:2 http://deb.debian.org/debian buster InRelease [118 kB] N: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Version' value from '' to '10' E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '' to '10.0' E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] Reading package lists... Done E: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease E: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease E: Some index files failed to download. They have been ignored, or old ones used instead.
--allow-releaseinfo-change を指定してAPT にリリースを情報を確認したことを教えます.
$ sudo apt --allow-releaseinfo-change update
次からはオプション無しで実行してもエラーが出なくなります.
$ sudo apt update Hit:1 http://deb.debian.org/debian buster InRelease Hit:2 http://security.debian.org/debian-security buster/updates InRelease Reading package lists... Done Building dependency tree Reading state information... Done 3 packages can be upgraded. Run 'apt list --upgradable' to see them.
ちなみに stable でなく testing 環境を使い続けたい場合は /etc/apt/sources.list を現在の Debian testing の bullseye に修正すればいいはず.
$ dpkg-query -W apt
apt 1.8.2
$ hostnamectl | egrep 'Operating System|Architecture'
Operating System: Debian GNU/Linux 10 (buster)
Architecture: x86-64昨夜なんとなく apt コマンドのイースターエッグの apt moo を実行してみました.するといつもとは違った牛が!

Debian sid 環境だったのでもしかしてキャラクター変更されたのだろうかと思ったのですがしばらくしてから再度実行するといつもの牛.

時計を見ると日付が04/01から04/02に変わったところでした.
04/01に出現したってことはエイプリルフールな牛かな?と faketime command を利用して1日前にして実行すると出てきました.
$ faketime -f '-1d' apt moo
_ _
(_\___( \,
)___ _ Have you smashed some milk today?
/( (_)-(_) /
,---------' \_
//( ',__,' \ (' ')
// ) '----'
'' ; \ .--. ,/
| )',_,'----( ;
||| ''' '||若しくは04/01を指定
$ faketime '20190401' apt moo
_ _
(_\___( \,
)___ _ Have you smashed some milk today?
/( (_)-(_) /
,---------' \_
//( ',__,' \ (' ')
// ) '----'
'' ; \ .--. ,/
| )',_,'----( ;
||| ''' '||多分この辺ですね
$ grep -A21 bool\ DoMooApril ./apt-private/private-moo.cc
static bool DoMooApril() /*{{{*/
{
// by Christopher Allan Webber and proposed by Paul Tagliamonte
// in a "Community outreach": https://lists.debian.org/debian-devel/2013/04/msg00045.html
if (_config->FindI("quiet") >= 2)
{
std::cerr << "Have you smashed some milk today?" << std::endl;
return true;
}
c1out <<
" _ _\n"
" (_\\___( \\,\n"
" )___ _ Have you smashed some milk today?\n"
" /( (_)-(_) /\n"
" ,---------' \\_\n"
" //( ',__,' \\ (' ')\n"
" // ) '----'\n"
" '' ; \\ .--. ,/\n"
" | )',_,'----( ;\n"
" ||| ''' '||\n";
return true;
}1.4 で入ったぽい?
$ zgrep -A2 \(1.4\) /usr/share/doc/apt/changelog.gz apt (1.4) unstable; urgency=medium * The April Fools' Release
ちなみに moo moo でカラフルな牛が出てこないときは,APT::Moo::Color オプションが使えるようです.(エイプリルフール牛は単色のみみたい)

永続化する場合や色をカスタマイズしたい場合は /usr/share/doc/apt/examples/configure-index.gz を参考に /etc/apt/apt.conf に設定すればok.
$ zgrep moo::color /usr/share/doc/apt/examples/configure-index.gz apt::moo::color "<BOOL>"; $ echo 'apt::moo::color "true";' | sudo tee -a /etc/apt/apt.conf apt::moo::color "true";
$ dpkg-query -W apt faketime apt 1.8.0 faketime 0.9.7-3 $ lsb_release -dr Description: Debian GNU/Linux buster/sid Release: unstable $ uname -m x86_64
パッケージ情報更新のために apt update 中にエラーが発生しました.Googleのアプリケーション(Google Chrome等)を導入ししたときに入るGoogleのリポジトリで Google, Inc. が Google LLC に変わったためのようです.
E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N]
Google LCCには去年変わっていてこのリポジトリにもやっと修正が入ったということのようです.(Androidアプリなどはもっと早かったですね)
ここで y で受け入れると次からこのエラーは現れません.
ヒット:4 http://dl.google.com/linux/chrome/deb stable Release
$ dpkg-query -W apt apt 1.7.0 $ lsb_release -d Description: Debian GNU/Linux unstable (sid) $ uname -m x86_64
$ dpkg-query -W apt apt 1.7.0 $ lsb_release -d Description: Parrot 4.3 $ uname -m x86_64