I am trying to run the softwareupdate command in single user mode. I have mounted the main volume and started the network so I have internet access and write acces too the file system. When I execute the command I get the following error.

dydl: softewareupdate truncated or malformed library:/System/Library/PrivateFrameworks/DiskManagment.framework/Versions/A/DiskManagement (file is empty)

anyway I can force and update or fix this file?
TIA
Ollie

IBook G4 Mac OS X 10.3.6

Dani AI

Generated

Short explanation and practical recovery steps.

As pointed out, single-user mode is a very minimal environment: the root volume is typically mounted read-only and most launchd services and user-space frameworks are not started. Command-line tools that expect the full runtime (network daemons, system frameworks, prelinked caches) can fail or report corrupted/missing libraries when run from single-user. That makes the result ambiguous: the tool may be correctly reporting a broken system file, or it may simply be unable to see/instantiate the framework it needs.

Quick checklist to try before a reinstall:

  • From single-user, run the filesystem check and then remount root read/write:

    /sbin/fsck -fy
    /sbin/mount -uw /
    reboot
  • Boot to the normal GUI (or Safe Mode) and use Disk Utility to Repair Disk and Repair Disk Permissions, then run Software Update from that full environment.

If a system framework is actually zero bytes or corrupted, restore it rather than trying to force updates in single-user. Options that avoid wiping user data:

  • Restore the file from a known-good backup or from another machine running the same OS build.
  • Use the OS X installer DVD (Archive & Install / non-destructive reinstall) or the appropriate Combo updater for your OS version to reinstall system files.
  • If you prefer to replace just that package, a package-extractor tool can pull the binary from Apple installer packages so you can restore a single file.

When replacing a system binary, ensure correct ownership and permissions (root-owned, and executable bit set). Do not overwrite system files with arbitrary downloads. The non-destructive reinstall route is safe and what ultimately used; it is often the fastest reliable fix for missing/corrupt framework binaries.

Recommended Answers

All 2 Replies

I decided to do a non-destructive reinstall. Thanks to those who were thinking about helping.

Ollie

Hello,

I am curious why you were in single user mode to try and update the system. Single User mode is a really pared down system, and a lot of the libraries are unloaded. Perhaps the file you are referring to is populated dynamically when the system is loaded. Thus, without the underlying library loading, the file would remain empty. Just a thought.

Christian

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.