phoenixnap.com
Open in
urlscan Pro
2606:4700:10::ac43:eba
Public Scan
URL:
https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1
Submission: On October 04 via api from US — Scanned from DE
Submission: On October 04 via api from US — Scanned from DE
Form analysis
3 forms found in the DOMGET https://phoenixnap.com/kb/
<form role="search" method="get" id="searchform" class="searchform" action="https://phoenixnap.com/kb/">
<div> <label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s"> <input type="submit" id="searchsubmit" value="Search"> </div>
</form>
GET https://phoenixnap.com/kb/
<form class="searchform-wrapper-modal" id="searchform" method="get" action="https://phoenixnap.com/kb/">
<input type="text" class="search-field-modal" name="s" placeholder="Search..." value="" autofocus="">
<input type="submit" id="submit-button-modal" class="submit-button-modal" value="Search">
<div id="innericon-modal" class="innericon-modal">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22px" height="28px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<path id="magnifier-2-icon"
d="M460.355,421.59L353.844,315.078c20.041-27.553,31.885-61.437,31.885-98.037 C385.729,124.934,310.793,50,218.686,50C126.58,50,51.645,124.934,51.645,217.041c0,92.106,74.936,167.041,167.041,167.041 c34.912,0,67.352-10.773,94.184-29.158L419.945,462L460.355,421.59z M100.631,217.041c0-65.096,52.959-118.056,118.055-118.056 c65.098,0,118.057,52.959,118.057,118.056c0,65.096-52.959,118.056-118.057,118.056C153.59,335.097,100.631,282.137,100.631,217.041 z">
</path>
</svg>
</div>
</form>
GET https://phoenixnap.com/kb/
<form class="searchform-wrapper-modal" id="searchform" method="get" action="https://phoenixnap.com/kb/">
<input type="text" class="search-field-modal" name="s" placeholder="Search..." value="">
<button type="submit" id="submit-button" class="submit-button-modal" value="">
<div id="innericon" class="innericon-modal">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22px" height="28px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<path id="magnifier-2-icon"
d="M460.355,421.59L353.844,315.078c20.041-27.553,31.885-61.437,31.885-98.037 C385.729,124.934,310.793,50,218.686,50C126.58,50,51.645,124.934,51.645,217.041c0,92.106,74.936,167.041,167.041,167.041 c34.912,0,67.352-10.773,94.184-29.158L419.945,462L460.355,421.59z M100.631,217.041c0-65.096,52.959-118.056,118.055-118.056 c65.098,0,118.057,52.959,118.057,118.056c0,65.096-52.959,118.056-118.057,118.056C153.59,335.097,100.631,282.137,100.631,217.041 z">
</path>
</svg>
</div>
</button>
</form>
Text Content
* Call * Support * Sales * Login * Bare Metal Cloud * Channel Partners * Billing Portal * Partners * PHOENIXNAP HOME * PRODUCTS * Colocation Premier Carrier Hotel * Colocation Overview * Data Center as a Service Solutions for Digital Transformation * Hardware as a Service Flexible Hardware Leasing * Meet-Me Room The Interconnectivity Hub * Schedule a Tour Guided Virtual Data Center Tour * Data Center Locations Global Data Center Footprint * Bare Metal Cloud API-Driven Dedicated Servers * Platform Overview * Rancher Deployment One-Click Kubernetes Deployment * Intel Xeon E-2300 Entry-Level Servers * 4th Gen Intel Xeon Scalable CPUs Boost Data-Intensive Workloads * Alliances Technology Partnerships * Object Storage S3-Compatible Storage Solution * Dedicated Servers Single-Tenant Physical Machines * Dedicated Servers Overview * FlexServers Vertical CPU Scaling * Intel Xeon-E Servers Intel Xeon 2200 Microarchitecture * GPU Servers Servers with NVIDIA Tesla GPUs * Dedicated Servers vs. BMC Compare Popular Platforms * Promotions See Available Discounts * Buy Now See All Servers * Cloud Custom Cloud Solutions * Managed Private Cloud (MPC) Highly Customizable Cloud * Data Security Cloud Secure-By-Design Cloud * Hybrid Cloud Multi-Platform Environment * Edge Computing Globally Distributed Servers * Object Storage S3 API Compatible Storage Service * Bare Metal Cloud API-Driven Dedicated Servers * Alternative Cloud Provider Overcome Public Cloud Limitations * Backup & Restore Backup and DRaaS * Backup Solutions Veeam-Powered Services * Disaster Recovery VMware, Veeam, Zerto * Veeam Cloud Connect Backup and Replication * Managed Backup for Microsoft 365 Veeam-Powered Service * Security Security Services * Data Security Cloud Secure-by-Design Cloud * Encryption Management Platform (EMP) Cryptographic Key Management * Confidential Computing Data-in-Use Encryption * Ransomware Protection Data Protection and Availability * DDoS Protection Network Security Features * CONTACT SUPPORT * NETWORK * Network Overview Global Network Footprint * Network Locations U.S., Europe, APAC, LATAM * Speed Test Download Speed Test * LEARN * Blog IT Tips and Tricks * Glossary IT Terms and Definitions * Resource Library Knowledge Resources * Events Let's Meet! * Newsroom Media Library * Developers Development Resources Portal * APIs Access Our Public APIs * GitHub Public Code Repositories * Search for: HOW TO FIX SUB-PROCESS /USR/BIN/DPKG RETURNED AN ERROR CODE (1) IN UBUNTU March 31, 2019 troubleshootingubuntu Home » SysAdmin » How to Fix sub-process /usr/bin/dpkg returned an error code (1) in Ubuntu Contents 1. Options to Fix sub-process /usr/bin/dpkg returned an error code (1) 1. Method 1: Reconfigure dpkg Database 2. Method 2: Force-Install the Software 3. Method 3: Remove Bad Software Package 4. Method 4: Clean Out Unused Software Packages 5. Method 5: Remove Post Files 6. Method 6: Overwrite Package File Contents 1. Options to Fix sub-process /usr/bin/dpkg returned an error code (1) 1. Method 1: Reconfigure dpkg Database 2. Method 2: Force-Install the Software 3. Method 3: Remove Bad Software Package 4. Method 4: Clean Out Unused Software Packages 5. Method 5: Remove Post Files 6. Method 6: Overwrite Package File Introduction The error message “Sub-process /usr/bin/dpkg returned an error code (1)” indicates a problem with the package installer. This can happen in Ubuntu after a failed software installation, or if the installer becomes corrupted. The key phrase in this error is /usr/bin/dpkg. This refers to the dpkg package installer for Linux. A package installer is an application that tracks software, updates, and dependencies. If it is damaged, any new software installation will cause this error message. We cover several possible solutions, from easily-solved and straightforward solutions to more complex processes. This guide will help you resolve the dpkg returned an error code 1 on an Ubuntu operating system. Prerequisites * A user account with sudo privileges * A terminal window/command-line (Ctrl–Alt–T) OPTIONS TO FIX SUB-PROCESS /USR/BIN/DPKG RETURNED AN ERROR CODE (1) METHOD 1: RECONFIGURE DPKG DATABASE If your package database has become corrupted, reconfiguring it can repair it. Enter the following command: sudo dpkg --configure -a This command reconfigures packages that have been unpacked but not necessarily installed. An interruption at the wrong time can cause this database to become corrupt. This is especially helpful if you were running installation and the process was interrupted. METHOD 2: FORCE-INSTALL THE SOFTWARE If Method 1 does not work, you can attempt to fix the dependencies in the package installer. Enter the following: sudo apt-get install -f The -f option means fix-broken. It repairs any broken dependencies in your package manager. Broken dependencies occur when a download is interrupted, or there is a problem with the cached download. Note: Dependencies are other software packages that are required by the software you are installing. A package manager helps keep track of dependencies for you. METHOD 3: REMOVE BAD SOFTWARE PACKAGE If you know which software caused the errors on your system, you can remove it. Enter the command and package_name with the name of the software that is causing the problem: sudo apt-get remove --purge package_name The --purge option directs the system to remove config files in addition to uninstalling. This helps get rid of all traces of the offending software. METHOD 4: CLEAN OUT UNUSED SOFTWARE PACKAGES If an old, outdated, or unused package is causing the problem, you can solve the problem by removing unused software packages. Enter the following command in the terminal: sudo apt autoremove Note: Avoid the next 2 options unless all other methods have failed. METHOD 5: REMOVE POST FILES If you know the name of the package that is causing problems, you can delete the files manually. The installation files are usually located in the /var/lib/dpkg/info file. Type in the following command and replace package_name with the name of the broken software.: sudo ls -l /var/lib/dpkg/info | grep -i package_name This will generate a list of all references to the software you installed. You can then remove them by entering: sudo mv /var/lib/dpkg/info/package_name.* /tmp This command moves the files to the /tmp directory, where they cannot affect your package manager. Next, update the package manager: sudo apt-get update After which you can re-install the broken software again. METHOD 6: OVERWRITE PACKAGE FILE If you know the name of the package that is causing a problem, you can force an overwrite. Use the following command and replace full_name_of_package with the actual package name: sudo dpkg -i --force-overwrite /var/cache/apt/archives/full_name_of_package Note: If you do not know the actual name of the package, you can search for it with the following command: ls /var/cache/apt/archies/*package_name* Replace package_name with the name of your software. This should return any instances of that package name. Note the exact filename, and type it into the previous command. Conclusion The dpkg error message indicates that there is a problem with the package installer, which is commonly caused by an interrupted installation process or a corrupted database. By following these steps, you should now have several methods to fix the dpkg error message and attain a working package installer. Was this article helpful? YesNo Share on X (Twitter) Share on Facebook Share on LinkedIn Share on Email Dejan Tucakov Dejan is the Head of Content at phoenixNAP with over 8 years of experience in Web publishing and technical writing. Prior to joining PNAP, he was Chief Editor of several websites striving to advocate for emerging technologies. He is dedicated to simplifying complex notions and providing meaningful insight into data center and cloud technology. Next you should read SysAdmin Web Servers How to Fix Could not get lock /var/lib/dpkg/lock Error on Ubuntu June 22, 2020 -------------------------------------------------------------------------------- This tutorial lists the steps that will help you fix the E: Could not get lock /var/lib/dpkg/lock error you... Read more DevOps and Development SysAdmin How to Install Deb Files (Packages) on Ubuntu May 25, 2023 -------------------------------------------------------------------------------- If the software you want to install comes in a form of a deb package, you may be wondering how to extract it... Read more Security SysAdmin How to Install RPM Packages on Ubuntu July 9, 2019 -------------------------------------------------------------------------------- RPM is a package format used by Red Hat based derivatives like CentOS, RHEL or Fedora. It gets its name from... Read more DevOps and Development How To Install Node.js & NPM on Ubuntu 18.04 March 18, 2019 -------------------------------------------------------------------------------- Node.js is an open-source cross-platform JavaScript (JS) runtime environment. It is used for building fast... Read more RECENT POSTS * How to Cherry-Pick from Another Branch in Git * How to Merge a Git Branch into Master * VDI vs. VM: Understanding the Differences * How to Use Docker for Visual Studio Code * AWS Direct Connect vs. Azure ExpressRoute: An In-Depth Comparison CATEGORIES * SysAdmin * Virtualization * DevOps and Development * Security * Backup and Recovery * Bare Metal Servers * Web Servers * Networking * Databases COLOCATION * Phoenix * Ashburn * Amsterdam * Atlanta * Belgrade * Singapore PROMOTIONS SERVERS * Dedicated Servers * Database Servers * Virtualization Servers * High Performance Computing (HPC) Servers * Dedicated Streaming Servers * Dedicated Game Servers * Dedicated Storage Servers * SQL Server Hosting * Dedicated Servers in Amsterdam * Cloud Servers in Europe * Big Memory Infrastructure BUY NOW CLOUD SERVICES * Data Security Cloud * VPDC * Managed Private Cloud * Object Storage SERVERS * Disaster Recovery * Web Hosting Reseller * SaaS Hosting INDUSTRIES * Web Hosting Providers * Legal * MSPs & VARs * Media Hosting * Online Gaming * SaaS Hosting Solutions * Ecommerce Hosting Solutions COMPLIANCE * HIPAA Ready Hosting * PCI Compliant Hosting NEEDS * Disaster Recovery Solutions * High Availability Solutions * Cloud Evaluation COMPANY * About Us * GitHub * Blog * RFP Template * Careers CONNECT * Events * Press * Contact Us * PhoenixNAP Home * Blog * Resources * Glossary * GitHub * RFP Template * Live Chat * Get a Quote * Support | 1-855-330-1509 * Sales | 1-877-588-5918 * Contact Us * Legal * Privacy Policy * Terms of Use * DMCA * GDPR * Sitemap Privacy Center Do not sell or share my personal information * Contact Us * Legal * Privacy Policy * Terms of Use * DMCA * GDPR * Sitemap © 2022 Copyright phoenixNAP | Global IT Services. All Rights Reserved. Live Chat ↗ searchtwitterfacebooklinkedinchevron-circle-upyoutube-playinstagram