{"id":820,"date":"2021-01-09T11:41:47","date_gmt":"2021-01-09T03:41:47","guid":{"rendered":"https:\/\/byy3.com\/?p=820"},"modified":"2021-01-09T11:42:03","modified_gmt":"2021-01-09T03:42:03","slug":"solved-umet-dependencies-libc6-dev-breaks-libgcc-9-dev%e8%a7%a3%e5%86%b3linux-package%e5%8c%85%e7%89%88%e6%9c%ac%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=820","title":{"rendered":"Solved umet dependencies &#8211; libc6-dev breaks libgcc-9-dev\u89e3\u51b3linux package\u5305\u7248\u672c\u95ee\u9898"},"content":{"rendered":"<h2>1. Introduction<\/h2>\n<p>Not so long ago I had the following issue:<\/p>\n<pre class=\"language-markup\"><code>The following packages have unmet dependencies.\r\nlibc6-dev : Breaks : libgcc-9-dev (&lt; 9.3.0.5~) but 9.2.1-19 is to be installed<\/code><\/pre>\n<p>I was trying to\u00a0<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/javahowtos.com\/guides\/129-linux\/404-troubleshoot-and-enable-bluetooth-on-kali-linux.html\" rel=\"nofollow\" >install Blueman to be able to easily deal with my Bluetooth devices on Kali Linux<\/a>, and then this error popped up.<\/p>\n<h2>2. Solution<\/h2>\n<h3>2.1. Find the var\/lib\/dpkg\/status file and open it with handy text editor<\/h3>\n<p>To solve this issue, we need to open the\u00a0<em>var\/lib\/dpkg\/status<\/em>\u00a0file with one of the text editors and remove info related to\u00a0<em>libgcc-9-dev<\/em>. For this purpose, we'll be using nano text editor:<\/p>\n<pre class=\"language-markup\"><code>sudo nano \/var\/lib\/dpkg\/status \uff08\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\u4fee\u6539\u5305\uff09<\/code><\/pre>\n<p>You'll notice that the file consists of a list of package names and their statuses. Our goal here is to locate<em>\u00a0libgcc-9-dev<\/em>\u00a0package info block.<\/p>\n<h3>2.2. Locate the libgcc-9-dev package info in the file and remove it<\/h3>\n<p>\u7136\u540e\u627e\u5230\u4e0b\u9762\u6709\u95ee\u9898\u7248\u672c\u7684\u5305\u5220\u9664\u76f4\u5230homepage\u90a3\u4e00\u884c\uff0c\u7136\u540e\u518d\u66f4\u65b0apt update \u548capt upgrade<\/p>\n<p>So, look for the following block in the text:\u00a0 \uff08\u5c0f\u6280\u5de7Linux\u4e2d\u4e0d\u597d\u64cd\u4f5c\u53ef\u4f7f\u7528python3 -m http.server \u4e0b\u8f7d\u540e\u672c\u5730notepad\u4fee\u6539\u540e\u518d\u5728\u672c\u5730\u542f\u52a8\u670d\u52a1wget\u4e00\u4e0b\u5c40\u57df\u7f51\u6ce8\u610f\u6253\u5f00\u7aef\u53e3\u8f6c\u53d1\uff09<\/p>\n<pre class=\"language-markup\"><code>Package: libgcc-9-dev\r\nStatus: install ok installed\r\nPriority: important\r\n....\r\n....\r\nHomepage: http:\/\/gcc.gnu.org\/\r\n<\/code><\/pre>\n<p>When you find it, delete the whole block, from the Package to the Homepage line and after that save and close the file.<\/p>\n<p>2.3. Update &amp; Upgrade<\/p>\n<p>After you removed the\u00a0<em>libgcc-9-dev<\/em>\u00a0block from the\u00a0<em>status<\/em>\u00a0file, do the system update&amp;upgrade:<\/p>\n<pre class=\"language-markup\"><code>sudo apt-get update\r\nsudo apt-get upgrade<\/code><\/pre>\n<h3>2.4. Fix broken installations<\/h3>\n<p>Execute the following command to fix broken installations:<\/p>\n<pre class=\"language-markup\"><code>sudo apt --fix-broken install<\/code><\/pre>\n<h2>3. Conclusion<\/h2>\n<p>In this short tutorial we showed how to solve<em><strong>\u00a0libc6-dev : Breaks : libgcc-9-dev (&lt; 9.3.0.5~) but 9.2.1-19 is to be installed<\/strong><\/em>\u00a0issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Introduction Not so long ago I had the following iss [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[360,361,357,358,353,359],"class_list":["post-820","post","type-post","status-publish","format-standard","hentry","category-linux","tag-libc6-dev","tag-libgcc-9-dev","tag-linux-package","tag-linux","tag-package"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=820"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/820\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}