
If Emacs still can't find your font, it likely up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to Use the sudo apt update and then you should be able to install software as usual.To quote the default config.el that doom install employs (assuming you've installed in the past week or so): If you or Emacs can't find your font, use 'M-x describe-font' to look them Now all I needed to do was to remove these files: sudo mv /var/lib/dpkg/info/polar-bookshelf.* /tmp

rwxr-xr-x 1 root root 84 Aug 10 04:28 polar-bookshelf.postrm

rwxr-xr-x 1 root root 113 Aug 10 04:28 polar-bookshelf.postinst So I looked for the files associated with it: ls -l /var/lib/dpkg/info | grep -i polar-bookshelf In my case, I had an issue with polar-bookshelf. You need to know a little about basic Linux commands to figure out what’s happening and how can you use the same with your problem. You can try removing the files associated to the package in question from /var/lib/dpkg/info. sudo apt remove package_name Method 4: Remove post info files of the troublesome package Please don’t do it for Linux Kernels (packages starting with linux-). If it’s not an issue for you, you may try to remove the package manually. sudo apt-get install -f Method 3: Try removing the troublesome package If a package installation was interrupted previously, you may try to do a force install. sudo dpkg -configure -a Method 2: Use force install Probably the database got corrupted while installing a package. The first method you can try is to reconfigure the package database. You should try to run sudo apt update and then try to install a new package or upgrade after trying each of the methods discussed here. Fixing Sub-process /usr/bin/dpkg returned an error code (1) This might be crucial to how you fix this error here. It tells me that the package polar-bookshelf is causing and issue. Errors were encountered while processing: The last three lines are of the utmost importance here. Įrrors were encountered while processing:Į: Sub-process /usr/bin/dpkg returned an error code (1) Subprocess installed post-installation script returned error exit status 1 Ln: failed to create symbolic link '/usr/local/bin/polar-bookshelf': No such file or directoryĭpkg: error processing package polar-bookshelf (-configure): Setting up polar-bookshelf (1.0.0-beta56). Processing triggers for mime-support (3.59ubuntu1).

Processing triggers for gnome-menus (3.13.3-6ubuntu3.1). Rebuilding /usr/share/applications/bamf-2.index. Processing triggers for bamfdaemon (0.5.3~bzr0+0209-0ubuntu1). Processing triggers for desktop-file-utils (0.22-1ubuntu5.2). Processing triggers for man-db (2.7.5-1). Selecting previously unselected package radiotray. I was trying to install a radio application in Ubuntu when it threw me this error: Unpacking python-gst-1.0 (1.6.2-1build1). That’s what happened to me the other day.

You try to update the system or install a new package and you encounter an error like ‘Sub-process /usr/bin/dpkg returned an error code’. One of the common issue in Ubuntu and other Debian based distribution is the broken packages. If you are encountering “sub process usr bin dpkg returned an error code 1” while installing software on Ubuntu Linux, here is how you can fix it.
