Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Detecting backdoored language models at scale

    February 4, 2026

    Piezotronic-probe modulates piezoelectric-electric-thermal coupling field in GaN power electronics

    February 4, 2026

    Hyundai Motor Group partners with Vodafone IoT to deploy connected cars in the Middle East

    February 4, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»Apple»terminal – What is wrong with `locate` and `/usr/libexec/locate.updatedb`?
    Apple

    terminal – What is wrong with `locate` and `/usr/libexec/locate.updatedb`?

    big tee tech hubBy big tee tech hubFebruary 4, 2026002 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    terminal – What is wrong with `locate` and `/usr/libexec/locate.updatedb`?
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I have two Macs: one runs Sequoia, the other runs Ventura.

    On the Sequoia machine, I am using Apple’s native (and very dated) version of locate. While locate itself runs OK, I cannot update the database. After installing new packages (or individual apps from here or there), I need to be able to verify the locations of certain files and libraries. I would like to use locate for this job, but as the db is run only once per week, I cannot wait for the update!

    I assumed it was possible to perform a manual update using the following command, but I get only an odd error message that doesn’t seem to be explained anywhere:

    % sudo /usr/libexec/locate.updatedb
    mktemp: too few X's in template ‘updatedb’
    >>> ERROR
    >>> Failed to create a temporary file for database generation.
    

    What is the problem here… why does locate.updatedb fail?

    man locate.updatedb says that a job at /System/Library/LaunchDaemons/com.apple.locate.plist is run 1/week. I attempted to change the frequency of this job, but was informed by my LaunchControl app that it was not possible to change the scheduling!

    And so it seems I cannot manually update the database, and the OS has mutinied its root user (me) by locking me out of the ability to re-schedule.

    AN OPTIONAL QUESTION (need not be answered as a condition of acceptance, and included here in the hope that the problems may be related)

    I have installed MacPorts (a package manager) on both machines. As a “Plan B” I thought I would try to install the GNU locate on my Ventura machine. Unfortunately, for reasons that are not clear to me, running the updatedb command also fails:

    % sudo /opt/local/libexec/gnubin/updatedb
    gfind: '/Library/Caches/com.apple.aned': Operation not permitted
    gfind: '/System/Library/Templates/Data/private/var/db/oah': Operation not permitted
    gfind: '/System/Volumes/Data/Library/Caches/com.apple.aned': Operation not permitted
    gfind: failed to read file names from file system at or below " No such file or directory
    

    And in this case the GNU locate can find nothing because it cannot create a database!



    Source link

    locate terminal usrlibexeclocate.updatedb wrong
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    Apple Music kicks off Bad Bunny’s Road to Halftime ahead of Super Bowl LX

    February 3, 2026

    UpScrolled’s founder says the social network has zoomed past 2.5M users

    February 2, 2026

    Despite the global RAM shortage, this MacBook Pro is only $440 (MSRP $1,999)

    February 1, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Detecting backdoored language models at scale

    February 4, 2026

    Piezotronic-probe modulates piezoelectric-electric-thermal coupling field in GaN power electronics

    February 4, 2026

    Hyundai Motor Group partners with Vodafone IoT to deploy connected cars in the Middle East

    February 4, 2026

    Exclusive: Positron raises $230M Series B to take on Nvidia’s AI chips

    February 4, 2026
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Detecting backdoored language models at scale

    February 4, 2026

    Piezotronic-probe modulates piezoelectric-electric-thermal coupling field in GaN power electronics

    February 4, 2026

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2026 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.