Welcome to the Community Site!

You've been redirected here from forum.linode.com. This is your new place to find answers, ask questions, and help others.

Join our Community
X

Arch Linux lib Directory Becomes a symlink

Having some problems with the latest Arch update. I am getting the following error:

error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem

Checking the wiki page at:

~~[https://wiki.archlinux.org/index.php/DeveloperWiki:usrlib" target="_blank">](https://wiki.archlinux.org/index.php/De … iki:usrlib">https://wiki.archlinux.org/index.php/DeveloperWiki:usrlib](

and following the suggestions I can see that there are several files not owned by glibc:

error: cannot determine ownership of directory '/lib/modules'
error: cannot determine ownership of directory '/lib/modules/3.0.4-linode38'
error: No package owns /lib/modules/3.0.4-linode38/modules.dep
error: cannot determine ownership of directory '/lib/modules/3.0.18-linode43'
error: No package owns /lib/modules/3.0.18-linode43/modules.dep
error: cannot determine ownership of directory '/lib/modules/3.4.2-linode44'
error: No package owns /lib/modules/3.4.2-linode44/modules.dep

These are all linode modules. The wiki suggests that these packaged need to be rebuilt to install their files in /lib. I presume that these have been built by Linode. So how to proceed?

Ian.

7 Replies

Those are created by the "modules.dep" option in your configuration profile in the Linode Manager, and are automatically generated at boot.

You can just "rm -rf /lib/modules", finish upgrading all your packages, and reboot to have them regenerated, or move that directory elsewhere, update, then move it back.

  • Les

Thanks, that worked perfectly. I was worried that moving/deleting them might render the system unbootable.

I have misread that article and I deleted the /lib, and I can not boot my linode, I do not know how to recover my system.

@saleh:

I have misread that article and I deleted the /lib, and I can not boot my linode, I do not know how to recover my system.

Sorry to hear about that. :/ But it sounds like you'll need to start with a fresh installation, or restore from a backup if you have one available. If the latter isn't an option, you can use Rescue Mode to back up your files.

Thankfully, we just pushed a new Arch Linux image and you should be able to deploy without having to worry about this update.

-Tim

Thank you very much for your reply. I am trying to use Rescue Mode to backup my files, so I can see my files and deal with them, but I do not know how can I make a backup for them, especially for the directory /srv/http.

Regards

You can copy the files to your local PC, you could also just shrink the disk image and deploy the new one alongside, mount the old image in the new distro and copy.

Depends how you want to do it.

-T

You may be able to rescue your old install. Have a look at https://bbs.archlinux.org/viewtopic.php?id=145006 this thread on the Arch forums.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct