{"id":128,"date":"2025-12-20T02:19:38","date_gmt":"2025-12-20T02:19:38","guid":{"rendered":"https:\/\/blogs.giamkichsan.com\/?p=128"},"modified":"2025-12-20T02:19:39","modified_gmt":"2025-12-20T02:19:39","slug":"cai-dat-dotnet-tren-ubuntu","status":"publish","type":"post","link":"https:\/\/blogs.giamkichsan.com\/index.php\/2025\/12\/20\/cai-dat-dotnet-tren-ubuntu\/","title":{"rendered":"C\u00e0i \u0111\u1eb7t dotnet tr\u00ean Ubuntu"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1\ufe0f\u20e3 Th\u00eam Microsoft package repository<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install -y wget apt-transport-https software-properties-common\nwget https:\/\/packages.microsoft.com\/config\/ubuntu\/$(lsb_release -rs)\/packages-microsoft-prod.deb -O packages-microsoft-prod.deb\nsudo dpkg -i packages-microsoft-prod.deb\nrm packages-microsoft-prod.deb<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2\ufe0f\u20e3 C\u1eadp nh\u1eadt apt v\u00e0 c\u00e0i .NET SDK 8<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install -y dotnet-sdk-8.0\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>N\u1ebfu mu\u1ed1n ch\u1ec9 c\u00e0i runtime (ch\u1ec9 ch\u1ea1y \u1ee9ng d\u1ee5ng, kh\u00f4ng build):<\/p>\n<\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y dotnet-runtime-8.0\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3\ufe0f\u20e3 Ki\u1ec3m tra c\u00e0i \u0111\u1eb7t<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet --version\n<\/code><\/pre>\n\n\n\n<p>K\u1ebft qu\u1ea3 s\u1ebd hi\u1ec3n th\u1ecb:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>8.0.x<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5\ufe0f\u20e3 C\u1eadp nh\u1eadt .NET 8 sau n\u00e0y<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>1\ufe0f\u20e3 Th\u00eam Microsoft package repository 2\ufe0f\u20e3 C\u1eadp nh\u1eadt apt v\u00e0 c\u00e0i .NET SDK 8 N\u1ebfu mu\u1ed1n ch\u1ec9 c\u00e0i runtime (ch\u1ec9 ch\u1ea1y \u1ee9ng d\u1ee5ng, kh\u00f4ng build): <a class=\"mh-excerpt-more\" href=\"https:\/\/blogs.giamkichsan.com\/index.php\/2025\/12\/20\/cai-dat-dotnet-tren-ubuntu\/\" title=\"C\u00e0i \u0111\u1eb7t dotnet tr\u00ean Ubuntu\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-ubuntu-he-dieu-hanh"],"_links":{"self":[{"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":1,"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":129,"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/posts\/128\/revisions\/129"}],"wp:attachment":[{"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.giamkichsan.com\/index.php\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}