Fixing the "Failed writing body" error in Pacman

Yesterday I was using Archbang, a distro derived from Arch Linux, and for some reason I couldn't update Pacman. After browsing for a while, I realized that it was a nonsense, very easy to solve ... I had run out of disk space.


The error that appeared to me was similar to the following:

error: failed retrieving file 'extra.db' from mirrors.kernel.org: Failed writing body (417! = 1348)

The numbers changed, as well as the name of the file that I couldn't download… which made everything much more intriguing. My first suspicion was that the servers might be running bad, so I didn't give it much thought. After a few days, the error persisted which made me doubt my diagnosis. Something was wrong ...

The problem was that I had run out of disk space. To find out, it was enough to run:

df -h

My disk was quite empty, not the partition where my root was (which is where, for example, all the packages downloaded by Pacman are stored)

The most obvious and easy-to-apply solution is to delete the Pacman cache to free up space. This is achieved with a simple:

pacman-Scc

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.