{"id":26678,"date":"2018-05-17T02:01:43","date_gmt":"2018-05-17T07:01:43","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=26678"},"modified":"2022-06-03T03:35:01","modified_gmt":"2022-06-03T08:35:01","slug":"how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/","title":{"rendered":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"371\" class=\"wp-image-26852\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg\" alt=\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Ubuntu and Debian both use packages to add to the system\u2019s capabilities, allowing users to do more with their machines. However, as great as this package system is, things can still break. Whether it\u2019s a bad install, a bad configuration, or if something externally modified the files after installation, packages can sometimes go wrong and not work anymore, making them \u2018broken\u2019. This can also affect apt-get, the built-in <a href=\"https:\/\/www.rosehosting.com\/blog\/linux-package-managers\/\">package manager<\/a>, which can lead to you being unable to install any additional packages, updating them, or even removing any altogether.<\/p>\r\n\r\n\r\n\r\n<p>In this tutorial, we will go over several methods for fixing your broken packages on both Ubuntu 16.04 as well as Debian 9. Since this problem can happen due to several reasons, several solutions exist, some of which may or may not work on your machine. Therefore it is best to see which specific package broke and why, which will help you decide which method to follow first.<\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69eb686f4a077\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69eb686f4a077\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#Method-1-Using-apt-get\" >Method 1: Using apt-get<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#Method-2-Using-dpkg-and-apt-get\" >Method 2: Using dpkg and apt-get<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#Method-3-Using-dpkg-for-forceful-removal\" >Method 3: Using dpkg for forceful removal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#Other-Solutions\" >Other Solutions<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-method-1-using-apt-get\"><span class=\"ez-toc-section\" id=\"Method-1-Using-apt-get\"><\/span>Method 1: Using apt-get<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>More often than not, a broken package that broke after it was installed can be relatively easy to fix, thanks to a built-in tool inside of apt-get. Performing the following commands will try and fix any broken packages currently installed on your system:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt-get update --fix-missing<\/pre>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt-get install -f<\/pre>\r\n\r\n\r\n\r\n<p>(the -f option is short for fix-broken.)<\/p>\r\n\r\n\r\n\r\n<p>Try and see if the first command fixes your problem before executing the second command. Give it a few moments to try and fix any errors that it may find. If it works, then try and use the package that was broken &#8211; it will likely be fixed now. \u00a0In case it still isn\u2019t fixed, proceed to the next solution below.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-method-2-using-dpkg-and-apt-get\"><span class=\"ez-toc-section\" id=\"Method-2-Using-dpkg-and-apt-get\"><\/span>Method 2: Using dpkg and apt-get<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>This solution will help out if a software package broke while being installed. You can try using the previous method before continuing, as it may help. First, we clean apt-get and try using dpkg to configure any packages that need it:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo dpkg --configure -a\r\n\r\nsudo apt-get clean\r\n\r\nsudo apt-get update<\/pre>\r\n\r\n\r\n\r\n<p>After this, see if the package has been fixed. If it hasn\u2019t, you may need to delete the lock files. Lock files are used to keep resources available for certain programs &#8211; it helps prevent other programs from accessing files at the same time. This can be done by simply deleting the lockfile list:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo rm \/var\/lib\/apt\/lists\/lock<\/pre>\r\n\r\n\r\n\r\n<p>After this, try and run the above commands once more. From there, try and reinstall the package to see if it can now be successfully installed.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-method-3-using-dpkg-for-forceful-removal\"><span class=\"ez-toc-section\" id=\"Method-3-Using-dpkg-for-forceful-removal\"><\/span>Method 3: Using dpkg for forceful removal<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Sometimes, on rare occasions, the above commands won\u2019t work, and a broken package won\u2019t be fixable. In this case, you will need to remove the package manually and with force. This method requires that you already know which package is broken.<\/p>\r\n\r\n\r\n\r\n<p>You can first try and remove the problematic package normally through apt-get by entering the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt-get remove<\/pre>\r\n\r\n\r\n\r\n<p>It probably won&#8217;t be successful, but it is worth trying before removing it forcefully.<\/p>\r\n\r\n\r\n\r\n<p>Depending on the errors you get when trying to remove the package normally, you might be able to identify the broken package using dpkg and grep:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">dpkg -l | grep ^..r<\/pre>\r\n\r\n\r\n\r\n<p>This command lists all packages, then grep lists any results containing the \u2018r\u2019 flag in the third field, which means \u201creinst-required\u201d (reinstall required). If the broken package shows up, you will be able to remove it.<\/p>\r\n\r\n\r\n\r\n<p>Execute the following command to forcefully remove the package from your machine. Don&#8217;t forget to enter your password to authorize the deletion. Replace with the name of the broken package.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo dpkg --remove --force-remove-reinstreq<\/pre>\r\n\r\n\r\n\r\n<p>Once this is done, clean and update apt-get:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt-get clean\r\n\r\nsudo apt-get update<\/pre>\r\n\r\n\r\n\r\n<p>After that, try to install the package from scratch. It should install normally now.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-other-solutions\"><span class=\"ez-toc-section\" id=\"Other-Solutions\"><\/span>Other Solutions<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>These methods are the best ways to fix or remove a broken package from your system &#8211; but, it sometimes won&#8217;t be enough. In rare cases, the system won&#8217;t see the broken package at all, but it will still prevent your apt-get from functioning normally. In these cases, manually going and deleting files is usually the best solution. However, the process for deleting these files varies from package to package and can be risky. Therefore, try these solutions first before attempting to delete files from your system.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator\" \/>\r\n\r\n\r\n<p>Hopefully, by following these methods you will have successfully fixed or removed any broken packages found on your system. Of course, you don&#8217;t need to fix broken packages yourself if you use one of our <a href=\"https:\/\/www.rosehosting.com\/vps-hosting.html\">Managed Linux VPS<\/a> services, in which case you can simply <a href=\"https:\/\/www.rosehosting.com\/support\/\">ask our expert Linux admins<\/a> to do it for you. They&#8217;re available 24\/7 and will help you fix your broken packages immediately.<\/p>\r\n\r\n\r\n\r\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on how to fix broken packages on Ubuntu 16.04 and Debian 9, please share it with your friends on the social networks using the buttons below, or simply leave a comment. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu and Debian both use packages to add to the system\u2019s capabilities, allowing users to do more with their machines. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#more-26678\" aria-label=\"Read more about How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":26852,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,1698],"tags":[1688,48,1689,297,59],"class_list":["post-26678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-ubuntu","tag-broken-package","tag-debian","tag-fix","tag-how-to","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Fix Broken Packages on Ubuntu 16.04 and Debian 9<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will, step by step, learn how to fix broken packages on Ubuntu 16.04 and Debian 9, with ease.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\" \/>\n<meta property=\"og:description\" content=\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-17T07:01:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:35:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\",\"datePublished\":\"2018-05-17T07:01:43+00:00\",\"dateModified\":\"2022-06-03T08:35:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/\"},\"wordCount\":799,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg\",\"keywords\":[\"broken package\",\"debian\",\"fix\",\"how-to\",\"ubuntu\"],\"articleSection\":[\"Debian\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/\",\"name\":\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg\",\"datePublished\":\"2018-05-17T07:01:43+00:00\",\"dateModified\":\"2022-06-03T08:35:01+00:00\",\"description\":\"In this tutorial, you will, step by step, learn how to fix broken packages on Ubuntu 16.04 and Debian 9, with ease.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9","description":"In this tutorial, you will, step by step, learn how to fix broken packages on Ubuntu 16.04 and Debian 9, with ease.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9","og_description":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-05-17T07:01:43+00:00","article_modified_time":"2022-06-03T08:35:01+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9","datePublished":"2018-05-17T07:01:43+00:00","dateModified":"2022-06-03T08:35:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/"},"wordCount":799,"commentCount":3,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg","keywords":["broken package","debian","fix","how-to","ubuntu"],"articleSection":["Debian","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/","name":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg","datePublished":"2018-05-17T07:01:43+00:00","dateModified":"2022-06-03T08:35:01+00:00","description":"In this tutorial, you will, step by step, learn how to fix broken packages on Ubuntu 16.04 and Debian 9, with ease.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/05\/How-to-Fix-Broken-Packages-on-Ubuntu-16.04-and-Debian-9.jpg","width":742,"height":371,"caption":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-broken-packages-on-ubuntu-16-04-and-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix Broken Packages on Ubuntu 16.04 and Debian 9"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=26678"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26678\/revisions"}],"predecessor-version":[{"id":41417,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26678\/revisions\/41417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/26852"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=26678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=26678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=26678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}