When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. :-)

#sudo freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be added as part of updating to 8.2-RELEASE-p5:
/usr/src/lib/libc/gen/libc_dlopen.c

I got the following error:

#sudo freebsd-update install
Installing updates...install: ///usr/src/lib/libc/gen/libc_dlopen.c: No such file or directory
 done.

Your Ad Here

Initially, I thought the problem was a typo in the freebsd-update profile, so I gave this a try:

sudo cat /var/db/freebsd-update/* | grep libc_dlopen.c

Unfortunately, I couldn’t find anything. So I investigated the problem, and I found that it was caused by the missing source. In a nut shell, if you did not install the FreeBSD with the source (i.e., /usr/src is empty), this problem will show up.

To fix this problem, simply create a dummy directory:

sudo mkdir -p /usr/src/lib/libc/gen

and re-run everything once again, i.e.,

#sudo freebsd-update fetch
#sudo freebsd-update install
#sudo reboot

After the computer finishes rebooting, verify that the upgrade is done:

# sudo freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.2-RELEASE from update2.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 8.2-RELEASE-p5.

That’s it!

Enjoy this last minute Christmas gift from the FreeBSD team. Merry Christmas! :-)

–Derrick

You may also like

8 Responses to “[FreeBSD-update]Installing updates…install: ///usr/src/lib/libc/gen/libc_dlopen.c: No such file or directory”

  1. Hey! Marry Christmas! Thank you for the gift from the FreeBSD team. Fix worked as expected.

    Mariusz

  2. That’s good. Merry Christmas! :-)

    –Derrick

  3. Thanks, it worked perfectly! :)

  4. Thank you

  5. Thanks for the clear advice. I’m a BSD noob coming across from Linux so this had me puzzled until I read your fix – cheers

  6. cool!
    Thank you!
    Спасибо)

  7. .kkursor says:

    Thank you very much, bro. %)

  8. thank you so much

Trackbacks/Pingbacks

  1. Upgrade FreeBSD « Blackstreetnight's Blog - [...] lagi, dan dengan hasil googling, ketemu masalahnya. Dari beberapa hasil googling, saya menemukan link ini yang cukup membantu. Unfortunately, ...

Leave a Reply