{"id":6419,"date":"2023-07-04T11:23:52","date_gmt":"2023-07-04T11:23:52","guid":{"rendered":"https:\/\/www.iseepassword.com\/blog\/?p=6419"},"modified":"2023-10-16T07:29:10","modified_gmt":"2023-10-16T07:29:10","slug":"how-to-run-a-deb-file-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/","title":{"rendered":"How to Run A Deb File on Ubuntu"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_69_1 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 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Video_Tutorial\" title=\"Video Tutorial:\">Video Tutorial:<\/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.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Why_You_Need_to_Run_a_Deb_File_on_Ubuntu\" title=\"Why You Need to Run a Deb File on Ubuntu\">Why You Need to Run a Deb File on Ubuntu<\/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.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Method_1_Using_Gdebi\" title=\"Method 1: Using Gdebi\">Method 1: Using Gdebi<\/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.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Method_2_Using_the_dpkg_command\" title=\"Method 2: Using the dpkg command\">Method 2: Using the dpkg command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Method_3_Using_the_apt_command\" title=\"Method 3: Using the apt command\">Method 3: Using the apt command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Method_4_Using_Ubuntu_Software_Center\" title=\"Method 4: Using Ubuntu Software Center\">Method 4: Using Ubuntu Software Center<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#What_to_Do_If_You_Cant_Run_A_Deb_File_on_Ubuntu\" title=\"What to Do If You Can&#8217;t Run A Deb File on Ubuntu\">What to Do If You Can&#8217;t Run A Deb File on Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Bonus_Tips\" title=\"Bonus Tips\">Bonus Tips<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#5_FAQs\" title=\"5 FAQs\">5 FAQs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.iseepassword.com\/blog\/how-to-run-a-deb-file-on-ubuntu\/#Final_Thoughts\" title=\"Final Thoughts\">Final Thoughts<\/a><\/li><\/ul><\/nav><\/div>\n<p>Ubuntu is one of the most popular and widely-used Linux-based Operating Systems. It is renowned for its user-friendly interface, reliability, and low hardware requirements. It provides support for a wide range of packages and software that make it a great choice for developers, enthusiasts, and professionals. One of the most popular package formats that Ubuntu supports is a \u201cdeb\u201d file. A deb file is a binary package format used by Debian-based systems and contains software packages, dependencies, and configuration files. If you have just switched to Ubuntu from another operating system and are not familiar with the deb packages, you may find it challenging to install software and packages downloaded from the internet. This blog post will teach you how to run a deb file on Ubuntu in multiple ways to help you install the software you need.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Video_Tutorial\"><\/span>Video Tutorial:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p> <\/p>\n<h2><span class=\"ez-toc-section\" id=\"Why_You_Need_to_Run_a_Deb_File_on_Ubuntu\"><\/span> Why You Need to Run a Deb File on Ubuntu <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Ubuntu Software Center provides an easy and efficient way to install a wide range of software. You can search, install, and manage software packages via GUI in just a few clicks. However, some people prefer to download software and packages from third-party sources that may not be in the official Ubuntu repositories. In such cases, you may have to download a Debian package (.deb file) and install it manually in Ubuntu. Additionally, a deb file provides a faster, more convenient and reliable way to install software in the terminal. Installing packages via the command line is generally faster, and the terminal provides more granular control over the installation process. Running deb files on Ubuntu can also be useful when you need to test the latest version of a package or install software not yet included in the official Ubuntu repositories.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_1_Using_Gdebi\"><\/span> Method 1: Using Gdebi <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Gdebi is a graphical package installer in Ubuntu used to install, view, and remove packages. It is a user-friendly tool and provides straightforward installation of packages. Follow these steps to install a deb file in Ubuntu via Gdebi.<\/p>\n<p>Step 1: Open the terminal by pressing Ctrl + Alt + T or search the terminal in the Ubuntu launcher.<\/p>\n<p>Step 2: Download the deb file from the internet and save it to the Downloads folder.<\/p>\n<p>Step 3: Type the following command in the terminal to install Gdebi.<br \/>\n&#8220;`<br \/>\nsudo apt install gdebi<br \/>\n&#8220;`<br \/>\nStep 4: Next, navigate to the downloaded deb file location in the terminal. For example, if you downloaded a file named &#8220;package.deb&#8221; in the Downloads folder, type the following command in the terminal.<br \/>\n&#8220;`<br \/>\ncd ~\/Downloads<br \/>\n&#8220;`<br \/>\nStep 5: Type the following command to run the Gdebi installer for the downloaded package.<br \/>\n&#8220;`<br \/>\nsudo gdebi package.deb<br \/>\n&#8220;`<br \/>\nStep 6: The Gdebi GUI package installation window will open containing details of the package you want to install, such as its name, version, and size. Click the Install Package button to proceed.<\/p>\n<p>Step 7: Enter your Ubuntu password if prompted, and the package installation process will begin. Wait for the package to install, and once complete, the installation window will close.<\/p>\n<h4>Pros:<\/h4>\n<ul>\n<li>Gdebi provides a simple and straightforward way to install packages.<\/li>\n<li>It automatically installs dependencies required by the package, making it convenient to use.<\/li>\n<li>With Gdebi, you can view the details of the package before installation.<\/li>\n<\/ul>\n<h4>Cons:<\/h4>\n<ul>\n<li>Gdebi does not provide much granular control or options for configuring the installation.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Method_2_Using_the_dpkg_command\"><\/span> Method 2: Using the dpkg command <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The dpkg command is a simple, yet powerful command-line tool used to install, remove, and manage .deb packages in Debian and Ubuntu systems. You can install deb files on Ubuntu using the dpkg command if you are comfortable with the command line. Here\u2019s how:<\/p>\n<p>Step 1: Open the terminal by pressing Ctrl + Alt + T or search for the terminal in the Ubuntu launcher.<\/p>\n<p>Step 2: Download the deb file from the internet and save it to the Downloads folder.<\/p>\n<p>Step 3: Type the following command in the Terminal to navigate to the downloaded package location. For example, if your downloaded deb file is located in the Downloads folder, type:<br \/>\n&#8220;`<br \/>\ncd ~\/Downloads<br \/>\n&#8220;`<br \/>\nStep 4: Run the following command in the terminal to install the package.<br \/>\n&#8220;`<br \/>\nsudo dpkg -i package.deb<br \/>\n&#8220;`<br \/>\nStep 5: Enter your Ubuntu password when prompted. The installation process will start, and you will see the progress in the terminal.<\/p>\n<p>Step 6: If the dpkg command prompts you with any dependency errors, run the following command to fix dependencies.<br \/>\n&#8220;`<br \/>\nsudo apt-get install -f<br \/>\n&#8220;`<br \/>\nStep 7: Wait for the installation process to complete. The installation process may take some time, depending on the size and complexity of the package.<\/p>\n<h4>Pros:<\/h4>\n<ul>\n<li>The dpkg command provides more granular control over package installation and configuration.<\/li>\n<li>The dpkg command is fast and reliable.<\/li>\n<\/ul>\n<h4>Cons:<\/h4>\n<ul>\n<li>The dpkg command does not automatically install dependencies required for the package.<\/li>\n<li>You may need to manually fix dependency issues if they occur.<\/li>\n<li>The dpkg command does not have a graphical interface, making it less user-friendly for new Ubuntu users.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Method_3_Using_the_apt_command\"><\/span> Method 3: Using the apt command <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Ubuntu comes with the Advanced Packaging Tool (apt), a command-line tool used to install, remove and manage Ubuntu packages. The apt command is a convenient and straightforward way to install deb files in Ubuntu. Here\u2019s how:<\/p>\n<p>Step 1: Download the deb file from the internet and save it to the Downloads folder.<\/p>\n<p>Step 2: Open the terminal by pressing Ctrl + Alt + T or search for the terminal in the Ubuntu launcher.<\/p>\n<p>Step 3: Navigate to the Downloads folder using the cd command. For example:<br \/>\n&#8220;`<br \/>\ncd ~\/Downloads<br \/>\n&#8220;`<br \/>\nStep 4: Install the package using the apt command by typing:<br \/>\n&#8220;`<br \/>\nsudo apt install .\/package.deb<br \/>\n&#8220;`<br \/>\nThe Ubuntu system will check for package dependencies and prompt you to confirm installation by pressing the Y key. Press \u201cY\u201d and hit enter to start the installation.<\/p>\n<p>Step 5: The apt command will install the deb package, and you can monitor the installation process in the terminal.<\/p>\n<h4>Pros:<\/h4>\n<ul>\n<li>The apt command is user-friendly and provides convenient dependency handling.<\/li>\n<li>The apt command provides the most up-to-date version of the package, if available, from Ubuntu&#8217;s repositories.<\/li>\n<li>The apt command installs packages from trusted sources, reducing the risk of installing compromised software.<\/li>\n<\/ul>\n<h4>Cons:<\/h4>\n<ul>\n<li>The apt command does not provide much granular control for configuring package installation.<\/li>\n<li>The apt command may not be useful for installing packages that are not available in the Ubuntu repository.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Method_4_Using_Ubuntu_Software_Center\"><\/span>Method 4: Using Ubuntu Software Center <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Ubuntu Software Center is a graphical user interface program used to search, install and manage software packages in Ubuntu. It provides a comprehensive list of packages available in the Ubuntu repository and a convenient method for installing .deb files. Here\u2019s how to install a deb file via the Ubuntu Software Center:<\/p>\n<p>Step 1: Double-click on the deb file you downloaded to open it.<\/p>\n<p>Step 2: The package installer will open. Click on the Install button to start the installation process.<\/p>\n<p>Step 3: Enter your Ubuntu password if prompted.<\/p>\n<p>Step 4: Wait for the package to install, and once complete, the installation window will close.<\/p>\n<h4>Pros:<\/h4>\n<ul>\n<li>The Ubuntu Software Center provides a user-friendly graphical interface and dependency handling.<\/li>\n<li>The Ubuntu Software Center automatically installs package dependencies.<\/li>\n<li>The Ubuntu Software Center provides a comprehensive library of software available in the Ubuntu repositories.<\/li>\n<\/ul>\n<h4>Cons:<\/h4>\n<ul>\n<li>The Ubuntu Software Center may not be able to install packages not present in the Ubuntu repositories.<\/li>\n<li>The Ubuntu Software Center may provide dated package versions.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"What_to_Do_If_You_Cant_Run_A_Deb_File_on_Ubuntu\"><\/span> What to Do If You Can&#8217;t Run A Deb File on Ubuntu <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If for some reason you are unable to install deb files on Ubuntu, you could try the following fixes.<\/p>\n<p>1. Check if the deb file is compatible with your system architecture. Deb files come in 32-bit and 64-bit versions. Ensure that you download the appropriate version for your system architecture.<\/p>\n<p>2. Make sure that you have proper system updates. Type the following command to update system libraries that are essential for installing the downloaded deb file.<br \/>\n&#8220;`<br \/>\nsudo apt-get update &amp;&amp; sudo apt-get upgrade<br \/>\n&#8220;`<br \/>\n3. If the deb file shows some errors while installing, you can try installing it via the dpkg or apt-get commands.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Bonus_Tips\"><\/span> Bonus Tips <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>1. Make sure to download packages or software from a trusted source only.<br \/>\n2. Always perform a virus scan on downloaded .deb files to avoid installing compromised software.<br \/>\n3. Avoid using sudo with unverified or unknown software packages.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_FAQs\"><\/span> 5 FAQs <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h4> Q1: What are deb files? <\/h4>\n<p>A: A deb file is a binary package format used by Debian-based systems and contains software packages, dependencies, and configuration files.<\/p>\n<h4> Q2: Why can&#8217;t I run my deb file on Ubuntu? <\/h4>\n<p>A: You may not have installed or have dependencies required for the package. <\/p>\n<h4> Q3: Can I install deb files on other Linux-based operating systems? <\/h4>\n<p>A: Yes, you can install deb files on most Debian-based systems like Debian, Mint, etc.<\/p>\n<h4> Q4: How can I remove a deb package installed on Ubuntu? <\/h4>\n<p>A: You can remove a package installed via \u201cdpkg\u201d using the command:<br \/>\n&#8220;`<br \/>\nsudo dpkg -r package-name<br \/>\n&#8220;`<br \/>\nIf the package was installed via \u201capt,\u201d use the command:<br \/>\n&#8220;`<br \/>\nsudo apt remove package-name<br \/>\n&#8220;`<\/p>\n<h4> Q5: What happens if I install a compromised .deb file? <\/h4>\n<p>A: Installing a compromised .deb file might harm your system, exposing your personal information and private data or even render your system unusable.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span> Final Thoughts <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Installing software via a deb package in Ubuntu is a practical and efficient way of installing packages. It provides a granular level of control over the installation process and can save you time searching for software via the Ubuntu Software Center. With the options we have discussed above, you now have multiple ways of installing .deb files, depending on your expertise and preference. However, ensure that before installing any software package, you download from trusted sources and always verify package authenticity before installing.{&#8220;@context&#8221;:&#8221;https:\/\/schema.org&#8221;,&#8221;@type&#8221;:&#8221;FAQPage&#8221;,&#8221;mainEntity&#8221;:null}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu is one of the most popular and widely-used Linux-based Operating Systems. It is renowned for its user-friendly interface, reliability, and low hardware requirements. It provides support for a wide range of packages and software that make it a great choice for developers, enthusiasts, and professionals. One of the most popular package formats that Ubuntu [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6419","post","type-post","status-publish","format-standard","hentry","category-resources"],"_links":{"self":[{"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/posts\/6419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/comments?post=6419"}],"version-history":[{"count":2,"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/posts\/6419\/revisions"}],"predecessor-version":[{"id":9749,"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/posts\/6419\/revisions\/9749"}],"wp:attachment":[{"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/media?parent=6419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/categories?post=6419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iseepassword.com\/blog\/wp-json\/wp\/v2\/tags?post=6419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}