{"id":85149,"date":"2022-10-07T18:29:43","date_gmt":"2022-10-07T23:29:43","guid":{"rendered":"https:\/\/blogging-techies.com\/sw\/forsta-filen-sources-list-i-ubuntu\/"},"modified":"2022-10-07T18:29:43","modified_gmt":"2022-10-07T23:29:43","slug":"forsta-filen-sources-list-i-ubuntu","status":"publish","type":"post","link":"https:\/\/blogging-techies.com\/sw\/forsta-filen-sources-list-i-ubuntu\/","title":{"rendered":"F\u00f6rst\u00e5 filen sources.list i Ubuntu"},"content":{"rendered":"<div>\n<p class=\"heading_excerpt\">sources.list \u00e4r en av de m\u00e5nga filer du kommer att se n\u00e4r du l\u00e4gger till programvaruf\u00f6rr\u00e5d.  H\u00e4r \u00e4r vad du beh\u00f6ver veta om det.<\/p>\n<figure>\n<\/figure>\n<p>N\u00e4r du l\u00e4gger till ett nytt arkiv p\u00e5 Ubuntu l\u00e4gger systemet till en post till <strong>sources.list<\/strong> fil.<\/p>\n<p>Vilken annan information relaterad till arkiv inneh\u00e5ller den h\u00e4r filen?  Och \u00e4r det viktigt f\u00f6r operativsystemet att lagra denna data?  Det f\u00e5r du reda p\u00e5 i det h\u00e4r inl\u00e4gget.<\/p>\n<h2 id=\"what-is-the-sources-list-file\"><span class=\"ez-toc-section\" id=\"Vad_ar_filen_sourceslist\"><\/span>  Vad \u00e4r filen sources.list?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Som du kanske redan vet, \u00e4r repositories ansvariga f\u00f6r att tillhandah\u00e5lla paket till anv\u00e4ndarna p\u00e5 Linux.  Ubuntu och andra Debian-baserade distributioner anv\u00e4nder <strong>sources.list<\/strong> fil f\u00f6r att h\u00e5lla ett register \u00f6ver alla arkiv som finns p\u00e5 ett system.<\/p>\n<p>De <strong>sources.list<\/strong> filen inneh\u00e5ller arkivdetaljer, d\u00e4r varje okommenterad rad representerar ett separat arkiv.<\/p>\n<figure>\n<\/figure>\n<p>Varje rad i <strong>sources.list<\/strong> filen f\u00f6ljer ett vanligt format:<\/p>\n<pre>deb https:\/\/repository.url distro type<\/pre>\n<p>Det f\u00f6rsta f\u00e4ltet anger typen av paket som tillhandah\u00e5lls av f\u00f6rvaret.  P\u00e5 Debian och Ubuntu hittar du en av dessa tv\u00e5 arkivtyper: <strong>deb<\/strong> och <strong>deb-src<\/strong>.  Som standard inaktiverar Ubuntu arkiven som tillhandah\u00e5ller <strong>deb-src<\/strong> paket.<\/p>\n<p>Det andra f\u00e4ltet \u00e4r reserverat f\u00f6r arkivets URL.  Denna URL pekar p\u00e5 servern som lagrar alla paketfiler tillsammans med databasen.<\/p>\n<p>Det tredje f\u00e4ltet anger versionskoden f\u00f6r versionen av din Ubuntu-installation.  Du kanske hittar <strong>xenial<\/strong>, <strong>bioniska<\/strong>, och <strong>fokal-<\/strong> i fallet med Ubuntu, och <strong>buster<\/strong> eller <strong>sid<\/strong> om du anv\u00e4nder Debian.<\/p>\n<p>Den fj\u00e4rde posten inneh\u00e5ller information om typen av f\u00f6rvar.  P\u00e5 Ubuntu skulle det fj\u00e4rde f\u00e4ltet inneh\u00e5lla n\u00e5gon av dessa fyra f\u00f6rvarskomponenter: huvud, begr\u00e4nsad, universell och multiversum.<\/p>\n<h2 id=\"managing-repository-information-on-linux\"><span class=\"ez-toc-section\" id=\"Hantera_forradsinformation_pa_Linux\"><\/span>  Hantera f\u00f6rr\u00e5dsinformation p\u00e5 Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>L\u00e4gga till f\u00f6rvarsinformation manuellt i <strong>sources.list<\/strong> fil rekommenderas inte.  Ist\u00e4llet b\u00f6r du anv\u00e4nda <strong>add-apt-repository<\/strong> kommando eftersom det \u00e4r s\u00e4krare och p\u00e5litligt.  Det s\u00e4kerst\u00e4ller ocks\u00e5 att du inte l\u00e4gger till n\u00e5got som inte \u00e4r relaterat till inneh\u00e5llet i filen.<\/p>\n<p>P\u00e5 Linux kan du l\u00e4gga till och ta bort paket oberoende som du vill.  Faktum \u00e4r att mjukvaruhantering \u00e4r en av m\u00e5nga saker som Ubuntu g\u00f6r b\u00e4ttre \u00e4n Windows.<\/p>\n<p>    <strong class=\"section-sub-title\">Om f\u00f6rfattaren<\/strong><\/p>\n<p>            <strong class=\"bio-title\">Deepesh Sharma (110 publicerade artiklar)<br \/><\/strong><\/p>\n<p>Deepesh \u00e4r Junior Editor f\u00f6r Linux p\u00e5 MUO.  Han skriver informationsguider om Linux, i syfte att ge alla nykomlingar en lycksalig upplevelse.  Inte s\u00e4ker p\u00e5 filmer, men om du vill prata om teknik \u00e4r han din kille.<\/p>\n<p>                            Mer fr\u00e5n Deepesh Sharma<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Prenumerera_pa_vart_nyhetsbrev\"><\/span>Prenumerera p\u00e5 v\u00e5rt nyhetsbrev<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>G\u00e5 med i v\u00e5rt nyhetsbrev f\u00f6r tekniska tips, recensioner, free e-b\u00f6cker och exklusiva erbjudanden!<\/p>\n<p>Klicka h\u00e4r f\u00f6r att prenumerera<\/p>\n<\/p><\/div>\n  <div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blogging-techies.com\/sw\/forsta-filen-sources-list-i-ubuntu\/#Vad_ar_filen_sourceslist\" >Vad \u00e4r filen sources.list?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blogging-techies.com\/sw\/forsta-filen-sources-list-i-ubuntu\/#Hantera_forradsinformation_pa_Linux\" >Hantera f\u00f6rr\u00e5dsinformation p\u00e5 Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blogging-techies.com\/sw\/forsta-filen-sources-list-i-ubuntu\/#Prenumerera_pa_vart_nyhetsbrev\" >Prenumerera p\u00e5 v\u00e5rt nyhetsbrev<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n ","protected":false},"excerpt":{"rendered":"<p>sources.list \u00e4r en av de m\u00e5nga filer du kommer att se n\u00e4r du l\u00e4gger till programvaruf\u00f6rr\u00e5d. H\u00e4r \u00e4r vad du beh\u00f6ver veta om det. N\u00e4r du l\u00e4gger till ett nytt arkiv p\u00e5 Ubuntu l\u00e4gger systemet till en post till sources.list fil. Vilken annan information relaterad till arkiv inneh\u00e5ller den h\u00e4r filen? Och \u00e4r det viktigt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":85150,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[5],"tags":[34127,352,43307,30994],"class_list":["post-85149","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bloggar","tag-filen","tag-forsta","tag-sources-list","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/posts\/85149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/comments?post=85149"}],"version-history":[{"count":0,"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/posts\/85149\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/media\/85150"}],"wp:attachment":[{"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/media?parent=85149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/categories?post=85149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogging-techies.com\/sw\/wp-json\/wp\/v2\/tags?post=85149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}