{"id":1153,"date":"2020-08-14T11:38:43","date_gmt":"2020-08-14T17:38:43","guid":{"rendered":"https:\/\/wmbuck.net\/blog\/?p=1153"},"modified":"2020-08-14T11:38:43","modified_gmt":"2020-08-14T17:38:43","slug":"raspberry-pi-updates","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=1153","title":{"rendered":"Raspberry pi updates"},"content":{"rendered":"\n<p>It has become a constant annoyance that every time I build a new Raspberry Pi, the thing which is the most difficult is doing updates. I have scripts written to set everything up, but the first thing the script does is attempt to update software. Before I even reach that point, the first thing the Pi itself does is ask to update software. And it always fails. <\/p>\n\n\n\n<p>I think this may be because of where I live. I think that the Raspbian (now Raspberry Pi OS apparently) mirrors must have one locally that is unreliable, and it gives me that one. <\/p>\n\n\n\n<p>Two things I need to do. One is that it tries to connect using ipv6, and fails. I have to tell it to use ipv4. So one thing I end up having to do is tell apt not to use ipv6: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'Acquire::ForceIPv4 \"true\";' > \/etc\/apt\/apt.conf.d\/99-useipv4<\/code><\/pre>\n\n\n\n<p>The second thing is to change the location of the mirror. One can look up the mirrors at https:\/\/www.raspbian.org\/RaspbianMirrors, and pick one nearby, and replace the entry in \/etc\/apt\/sources.list. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>It has become a constant annoyance that every time I build a new Raspberry Pi, the thing which is the most difficult is doing updates. I have scripts written to set everything up, but the first thing the script does is attempt to update software. Before I even reach that point, the first thing the &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=1153\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Raspberry pi updates<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,50],"tags":[],"class_list":["post-1153","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-raspbian"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1153"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1153"}],"version-history":[{"count":1,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1153\/revisions"}],"predecessor-version":[{"id":1154,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1153\/revisions\/1154"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}