'Cannot install libedit-dev with APT-GET on Raspberry Pi

I tried installing libedit-dev on Raspberry Pi using:

sudo apt-get install libedit-dev

and it reports that it requires multiple dependencies, such as libbsd-dev (>= 0.1.3). However, when I run apt --fix-broken install, it reports that:

Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/libb/libbsd/libbsd-dev_0.9.1-2_armhf.deb 404 Not Found

I have already updated apt but still cannot install this package. How can I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source