{"id":4244,"date":"2024-11-21T18:20:45","date_gmt":"2024-11-21T09:20:45","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=4244"},"modified":"2024-11-21T18:20:47","modified_gmt":"2024-11-21T09:20:47","slug":"ftp-rsh-ssh-methods-have-been-removed-from-apt-in-debian-unstable","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2024\/11\/21\/ftp-rsh-ssh-methods-have-been-removed-from-apt-in-debian-unstable\/","title":{"rendered":"Debian unstable\u306eapt\u3067ftp, rsh, ssh\u30e1\u30bd\u30c3\u30c9\u304c\u524a\u9664"},"content":{"rendered":"<p><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 32 32\"><path fill=\"currentColor\" d=\"M18.505 16.907c-.532 0 .109.265.801.375c.188-.136.36-.297.521-.443c-.432.099-.88.12-1.323.068zm2.855-.71c.307-.437.536-.916.624-1.411c-.077.359-.265.667-.437.973c-1 .625-.093-.359 0-.744c-1.068 1.344-.145.796-.187 1.181zm1.041-2.728c.068-.964-.188-.667-.265-.297c.093.057.171.667.265.297M16.505.412c.265.057.599.093.563.161c.307-.068.369-.136-.573-.161zm.563.161l-.204.041l.188-.016V.573zm8.828 13.255c.025.855-.271 1.265-.511 2l-.464.24c-.375.719.037.463-.228 1.036c-.589.521-1.787 1.631-2.163 1.735c-.265 0 .188-.333.256-.453c-.787.536-.641.803-1.828 1.136l-.037-.084c-2.963 1.391-7.067-1.359-7-5.12c-.041.229-.093.177-.161.271a4.73 4.73 0 0 1 2.667-4.667a4.48 4.48 0 0 1 4.975.641a4.46 4.46 0 0 0-3.631-1.735c-1.573.011-3.036 1.011-3.531 2.093c-.803.505-.891 1.959-1.24 2.215c-.479 3.463.88 4.957 3.172 6.719c.359.249.109.281.161.463a6.25 6.25 0 0 1-2.041-1.547c.307.443.629.88 1.068 1.213c-.735-.239-1.693-1.729-1.975-1.796c1.24 2.213 5.041 3.891 7.016 3.067a8.3 8.3 0 0 1-3.109-.375c-.437-.213-1.027-.683-.932-.76A7.74 7.74 0 0 0 24.229 19c.583-.469 1.24-1.255 1.421-1.265c-.265.427.057.213-.156.583c.584-.957-.265-.396.609-1.651l.323.437c-.12-.797.985-1.755.88-3.011c.256-.4.267.401 0 1.292c.387-.984.105-1.131.199-1.948c.109.271.24.563.307.844c-.239-.932.267-1.599.376-2.136c-.12-.067-.376.401-.428-.708c0-.489.136-.265.188-.369c-.109-.068-.349-.428-.511-1.147c.109-.176.297.439.459.453c-.109-.563-.271-1-.271-1.443c-.453-.905-.156.136-.532-.401c-.453-1.452.401-.333.453-.984c.719 1.027 1.12 2.615 1.308 3.281a13 13 0 0 0-.657-2.349c.215.095-.343-1.651.281-.495a10.4 10.4 0 0 0-4.88-5.848c.24.224.563.515.443.557c-1-.6-.828-.641-.973-.891c-.813-.333-.871.025-1.417 0c-1.547-.829-1.839-.735-3.249-1.272l.068.308c-1.032-.333-1.204.135-2.308 0c-.068-.052.36-.188.703-.24c-.984.136-.932-.187-1.905.041c.229-.171.479-.28.735-.427c-.797.052-1.923.469-1.573.093c-1.317.6-3.651 1.428-4.959 2.652l-.041-.292c-.599.719-2.615 2.145-2.771 3.079l-.177.041c-.308.531-.505 1.135-.76 1.683c-.396.692-.6.265-.532.369c-.801 1.631-1.197 3-1.547 4.135c.24.36 0 2.199.093 3.677c-.4 7.281 5.12 14.365 11.147 16c.896.308 2.197.308 3.323.333c-1.323-.369-1.495-.197-2.776-.651c-.932-.427-1.136-.932-1.787-1.505l.265.464c-1.292-.453-.76-.557-1.812-.891l.281-.36c-.417-.041-1.109-.708-1.297-1.083l-.453.015c-.547-.667-.839-1.161-.812-1.547l-.145.267c-.172-.281-2.027-2.532-1.068-2.011c-.172-.161-.412-.271-.667-.735l.187-.229c-.463-.583-.853-1.359-.828-1.599c.271.317.428.401.604.443c-1.176-2.896-1.239-.161-2.135-2.937l.197-.027c-.129-.213-.239-.453-.344-.677l.079-.801c-.839-.984-.24-4.136-.12-5.865c.095-.724.708-1.468 1.172-2.64l-.276-.052c.532-.948 3.12-3.828 4.317-3.683c.573-.735-.119 0-.239-.187c1.281-1.319 1.681-.933 2.531-1.172c.937-.537-.797.213-.359-.204c1.604-.396 1.135-.932 3.228-1.129c.215.129-.52.187-.692.343c1.333-.651 4.197-.489 6.079.365c2.171 1.025 4.613 4.011 4.708 6.839l.104.025c-.052 1.136.177 2.428-.224 3.615l.265-.563zM12.719 17.64l-.068.376c.349.463.631.968 1.068 1.344c-.317-.625-.557-.881-1-1.735zm.828-.041c-.187-.197-.292-.453-.411-.692c.104.427.343.801.572 1.172zm14.589-3.172l-.095.199a9.4 9.4 0 0 1-.921 2.948a8.9 8.9 0 0 0 1-3.147zM16.599.161c.36-.135.88-.068 1.265-.161c-.489.041-.984.068-1.463.136l.197.025zM4.016 6.855c.088.76-.579 1.067.145.557c.401-.881-.145-.24-.135-.557zm-.844 3.546c.161-.521.203-.828.265-1.12c-.464.583-.224.703-.265 1.104z\"><\/path><\/svg><!-- https:\/\/icon-sets.iconify.design\/cib\/debian\/ --><\/p>\n<div class=\"paragraph\">\n<p>Debian sid\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u66f4\u65b0\u3092\u3059\u308b\u3068\u65b0\u3057\u3044apt\u304c\u3084\u3063\u3066\u304d\u307e\u3057\u305f\uff0e\u305d\u3057\u3066apt-listchanges\u3067\u6c17\u306b\u306a\u308b\u8a18\u8ff0\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ zcat \/usr\/share\/doc\/apt\/NEWS.Debian.gz | head\napt (2.9.11) unstable; urgency=medium\n\n  The ftp, rsh, and ssh methods have been removed. They have been unsupported\n  and disabled since 1.8. Please, migrate to http(s) instead, or contribute\n  an sftp method.\n\n  If you need ad hoc access to a remote repository, you can usually run\n  `python3 -m http.server` on that machine and use SSH port forwarding to\n  run HTTP over SSH.<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>ftp, rsh, ssh\u30e1\u30bd\u30c3\u30c9\u304c\u524a\u9664\u3055\u308c\u305f\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>\u4ee3\u308f\u308a\u306bhttp(s)\u306b\u79fb\u884c\u3059\u308b\u304b\uff0csftp\u30e1\u30bd\u30c3\u30c9\u306b\u8ca2\u732e\u3057\u3066\u304f\u3060\u3055\u3044\u3068\u306e\u3053\u3068\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30a2\u30c9\u30db\u30c3\u30af\u30a2\u30af\u30bb\u30b9\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fhttpd\u3092\u8d77\u52d5\u3057\u3066ssh\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u3044ssh\u7d4c\u7531\u3067http\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u52e7\u3081\u3089\u308c\u3066\u3044\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u81ea\u5206\u306esid\u74b0\u5883\u306esource.list\u3092\u78ba\u8a8d\u3059\u308b\u3068http\u3060\u3051\uff0c\/etc\/apt\/source.list.d\/* \u3092\u78ba\u8a8d\u3059\u308b\u3068\u3053\u3053\u306f\u5168\u3066https\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3057\u305f\uff0e\u3068\u3044\u3046\u3053\u3068\u3067\u3053\u306e\u74b0\u5883\u306f\u3053\u306e\u307e\u307e\u3067\u5927\u4e08\u592b\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ grep ^deb\\  \/etc\/apt\/sources.list\ndeb http:\/\/ftp.jp.debian.org\/debian\/ sid main contrib non-free non-free-firmware\n$ grep ^deb\\  \/etc\/apt\/sources.list.d\/*\n\/etc\/apt\/sources.list.d\/signal-xenial.list:deb [arch=amd64 signed-by=\/usr\/share\/keyrings\/signal-desktop-keyring.gpg] https:\/\/updates.signal.org\/desktop\/apt xenial main\n\/etc\/apt\/sources.list.d\/steam-stable.list:deb [arch=amd64,i386 signed-by=\/usr\/share\/keyrings\/steam.gpg] https:\/\/repo.steampowered.com\/steam\/ stable steam\n\/etc\/apt\/sources.list.d\/tailscale.list:deb [signed-by=\/usr\/share\/keyrings\/tailscale-archive-keyring.gpg] https:\/\/pkgs.tailscale.com\/stable\/debian sid main\n\/etc\/apt\/sources.list.d\/vscodium.list:deb [ signed-by=\/usr\/share\/keyrings\/vscodium-archive-keyring.gpg ] https:\/\/download.vscodium.com\/debs vscodium main\n\/etc\/apt\/sources.list.d\/wezterm.list:deb [signed-by=\/usr\/share\/keyrings\/wezterm-fury.gpg] https:\/\/apt.fury.io\/wez\/ * *<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u8a66\u3057\u306bsource.list\u3092ftp\u306b\u66f8\u304d\u63db\u3048\u3066\u8a66\u3057\u3066\u307f\u307e\u3059\uff0eftp\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u3092\u78ba\u8a8d\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092 <code>apt edit-sources<\/code> \u3067source.list\u3092\u66f8\u304d\u63db\u3048\u3053\u3053\u3067\u30b5\u30cb\u30bf\u30a4\u30ba\u30c1\u30a7\u30c3\u30af\u304c\u8d70\u3063\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u3059\u304c\u7279\u306b\u4f55\u3082\u8a00\u308f\u308c\u305a\u66f8\u304d\u63db\u3048\u3089\u308c\u307e\u3057\u305f\uff0e\u305d\u306e\u5f8c <code>apt update<\/code> \u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308aftp\u306f\u4f7f\u3048\u307e\u305b\u3093\u3067\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ curl -s ftp:\/\/ftp.jp.debian.org\/debian\/dists\/sid\/InRelease | head\n-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n\nOrigin: Debian\nLabel: Debian\nSuite: unstable\nCodename: sid\nChangelogs: https:\/\/metadata.ftp-master.debian.org\/changelogs\/@CHANGEPATH@_changelog\nDate: Thu, 21 Nov 2024 02:25:33 UTC\nValid-Until: Thu, 28 Nov 2024 02:25:33 UTC<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo apt update\n  :\n<span style=\"font-weight:bold;color:red;\">Error: <\/span><span style=\"font-weight:bold;\">The method driver \/usr\/lib\/apt\/methods\/ftp could not be found.<\/span>\n<span style=\"font-weight:bold;\">Notice: <\/span>Is the package apt-transport-ftp installed?\n  :\n<span style=\"font-weight:bold;color:red;\">Error: <\/span><span style=\"font-weight:bold;\">Failed to fetch ftp:\/\/ftp.jp.debian.org\/debian\/dists\/sid\/InRelease  <\/span>\n<span style=\"font-weight:bold;color:red;\">Error: <\/span><span style=\"font-weight:bold;\">Some index files failed to download. They have been ignored, or old ones used instead.<\/span>\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p><code>apt-transport-ftp<\/code> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u304b\u3068\u805e\u304b\u308c\u307e\u3059\u304c\u305d\u306e\u69d8\u306a\u3082\u306e\u306f\u306a\u3044\u306e\u3067\u3084\u306f\u308a\u4f7f\u3048\u306a\u3044\u3067\u3059\u306d\uff0e<br \/>\n\u305d\u306e\u4ed6\u306eapt-transport\u306f\u3053\u3093\u306a\u611f\u3058\uff0c\u3053\u306e\u4e2d\u3067\u306fhttps\u3068tor\u3057\u304b\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ apt-cache search apt-transport\napt - commandline package manager\napt-transport-https - transitional package for https support\nlibapt-pkg6.0t64 - package management runtime library\napt-transport-in-toto - apt transport method for in-toto supply chain verification\napt-transport-s3 - APT transport for privately held AWS S3 repositories\napt-transport-tor - APT transport for anonymous package downloads via Tor<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\uff0csid\u3092\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306f\u5c11\u306a\u3044\u3067\u3057\u3087\u3046\u304c\u6b21\u306eDebian 13\u3042\u305f\u308a\u304b\u3089\u3053\u308c\u304c\u964d\u3063\u3066\u304f\u308b\u3068\u601d\u3046\u306e\u3067\u65b0\u305f\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u7528\u610f\u3059\u308b\u5834\u5408\u3084dist-upgrade\u6642\u306b\u6c17\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W apt\napt     2.9.12\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux trixie\/sid\nRelease:        n\/a\n$ arch\nx86_64<\/pre>\n<\/div>\n<\/div>\n<p><iframe src=\"https:\/\/inari.opencocon.org\/@matoken\/113511962847550781\/embed\" class=\"mastodon-embed\" style=\"max-width: 100%; border: 0\" width=\"400\" allowfullscreen=\"allowfullscreen\"><\/iframe><script src=\"https:\/\/inari.opencocon.org\/embed.js\" async=\"async\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian sid\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u66f4\u65b0\u3092\u3059\u308b\u3068\u65b0\u3057\u3044apt\u304c\u3084\u3063\u3066\u304d\u307e\u3057\u305f\uff0e\u305d\u3057\u3066apt-listchanges\u3067\u6c17\u306b\u306a\u308b\u8a18\u8ff0\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff0e $ zcat \/usr\/share\/doc\/apt\/NEWS.Debian. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[7,6,199],"tags":[234,1144,1145,341],"class_list":["post-4244","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-apt","tag-ftp","tag-rsh","tag-ssh"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=4244"}],"version-history":[{"count":3,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4244\/revisions"}],"predecessor-version":[{"id":4247,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4244\/revisions\/4247"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=4244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=4244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=4244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}