You are not logged in.

#176 2012-07-17 22:22:25

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,134

Re: glibc update refusing to proceed. File ownership problem

stevepa wrote:

I think this entire /lib episode should at least drive home the importance of system backups.

And an excellent advertisement for pacmatic...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#177 2012-07-17 22:23:39

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,134

Re: glibc update refusing to proceed. File ownership problem

@mini,

What does the output of the other (find) command from the wiki give? You need to deal with unowned files and directories under lib/ as well...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#178 2012-07-18 02:41:19

japenagosc
Member
Registered: 2012-01-19
Posts: 78

Re: glibc update refusing to proceed. File ownership problem

Hello everybody.

I updated my system a few days ago, and it appeared to have a problem regarding glibc (mentioned in the news http://www.archlinux.org/news/the-lib-d … a-symlink/ ). I didn't read these news at that time, and i used the --force option with pacman. Now the system is broke. What should i do?

Thanks for your help.

Offline

#179 2012-07-18 02:48:18

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,112

Re: glibc update refusing to proceed. File ownership problem

japenagosc wrote:

Hello everybody.

I updated my system a few days ago, and it appeared to have a problem regarding glibc (mentioned in the news http://www.archlinux.org/news/the-lib-d … a-symlink/ ). I didn't read these news at that time, and i used the --force option with pacman. Now the system is broke. What should i do?

Thanks for your help.

Check the info in the pink box on this page:

https://wiki.archlinux.org/index.php/De … iki:usrlib


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#180 2012-07-18 02:51:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: glibc update refusing to proceed. File ownership problem

Merging with the glibc stickied thread...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#181 2012-07-18 04:11:41

Zeta Syanthis
Member
Registered: 2012-07-18
Posts: 1

Re: glibc update refusing to proceed. File ownership problem

EDIT: Found the answer a short while after posting.  I didn't realize Issue 1 of https://wiki.archlinux.org/index.php/De … iki:usrlib applied to me, having read and dismissed it early on while having other issues well before running into this one.  Sorry!

I've read over all the posts I can find here, but I'm still unable to complete my update.  GCC 4.7.1-1 seems to be the holdout, but refuses to update to 4.7.1-4 even with  --ignore glibc set due to an unmet dependency on the new glibc.  Any help would be appreciated.

find /lib -exec pacman -Qo -- {} +
error: cannot determine ownership of directory '/lib'
/lib/libc.so.6 is owned by glibc 2.15-12
/lib/libpthread.so.0 is owned by glibc 2.15-12
/lib/ld-linux-x86-64.so.2 is owned by glibc 2.15-12
/lib/libnss_files-2.15.so is owned by glibc 2.15-12
/lib/librt.so.1 is owned by glibc 2.15-12
/lib/libmemusage.so is owned by glibc 2.15-12
/lib/libcidn-2.15.so is owned by glibc 2.15-12
/lib/libutil.so.1 is owned by glibc 2.15-12
/lib/libnss_nis.so.2 is owned by glibc 2.15-12
/lib/libanl.so.1 is owned by glibc 2.15-12
/lib/libresolv-2.15.so is owned by glibc 2.15-12
/lib/libthread_db-1.0.so is owned by glibc 2.15-12
/lib/libnss_hesiod.so.2 is owned by glibc 2.15-12
/lib/libpthread-2.15.so is owned by glibc 2.15-12
/lib/libdl-2.15.so is owned by glibc 2.15-12
/lib/libnss_compat-2.15.so is owned by glibc 2.15-12
/lib/libcrypt.so.1 is owned by glibc 2.15-12
/lib/libc-2.15.so is owned by glibc 2.15-12
/lib/libnss_db.so.2 is owned by glibc 2.15-12
/lib/libpcprofile.so is owned by glibc 2.15-12
/lib/libcidn.so.1 is owned by glibc 2.15-12
/lib/libthread_db.so.1 is owned by glibc 2.15-12
/lib/libresolv.so.2 is owned by glibc 2.15-12
/lib/libdl.so.2 is owned by glibc 2.15-12
/lib/ld-2.15.so is owned by glibc 2.15-12
/lib/libnss_nisplus-2.15.so is owned by glibc 2.15-12
/lib/librt-2.15.so is owned by glibc 2.15-12
/lib/libSegFault.so is owned by glibc 2.15-12
/lib/libnsl-2.15.so is owned by glibc 2.15-12
/lib/libnss_dns-2.15.so is owned by glibc 2.15-12
/lib/libm-2.15.so is owned by glibc 2.15-12
/lib/libnss_hesiod-2.15.so is owned by glibc 2.15-12
/lib/libBrokenLocale.so.1 is owned by glibc 2.15-12
/lib/libnss_files.so.2 is owned by glibc 2.15-12
/lib/cpp is owned by gcc 4.7.1-1
/lib/libutil-2.15.so is owned by glibc 2.15-12
/lib/libanl-2.15.so is owned by glibc 2.15-12
/lib/libm.so.6 is owned by glibc 2.15-12
/lib/libcrypt-2.15.so is owned by glibc 2.15-12
/lib/libnss_nis-2.15.so is owned by glibc 2.15-12
/lib/libBrokenLocale-2.15.so is owned by glibc 2.15-12
/lib/libnss_dns.so.2 is owned by glibc 2.15-12
/lib/libnsl.so.1 is owned by glibc 2.15-12
/lib/libnss_compat.so.2 is owned by glibc 2.15-12
/lib/libnss_nisplus.so.2 is owned by glibc 2.15-12
/lib/libnss_db-2.15.so is owned by glibc 2.15-12
grep '^lib/' /var/lib/pacman/local/*/files
/var/lib/pacman/local/gcc-4.7.1-1/files:lib/
/var/lib/pacman/local/gcc-4.7.1-1/files:lib/cpp
/var/lib/pacman/local/glibc-2.15-12/files:lib/
/var/lib/pacman/local/glibc-2.15-12/files:lib/ld-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/ld-linux-x86-64.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libBrokenLocale-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libBrokenLocale.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libSegFault.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libanl-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libanl.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libc-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libc.so.6
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcidn-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcidn.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcrypt-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libcrypt.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libdl-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libdl.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libm-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libm.so.6
/var/lib/pacman/local/glibc-2.15-12/files:lib/libmemusage.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnsl-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnsl.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_compat-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_compat.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_db-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_db.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_dns-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_dns.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_files-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_files.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_hesiod-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_hesiod.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nis-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nis.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nisplus-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nisplus.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/libpcprofile.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libpthread-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libpthread.so.0
/var/lib/pacman/local/glibc-2.15-12/files:lib/libresolv-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libresolv.so.2
/var/lib/pacman/local/glibc-2.15-12/files:lib/librt-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/librt.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libthread_db-1.0.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libthread_db.so.1
/var/lib/pacman/local/glibc-2.15-12/files:lib/libutil-2.15.so
/var/lib/pacman/local/glibc-2.15-12/files:lib/libutil.so.1

Thank you!

Last edited by Zeta Syanthis (2012-07-18 04:19:06)

Offline

#182 2012-07-18 13:26:34

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: glibc update refusing to proceed. File ownership problem

I was just following directions, I was deleting all files on /lib owned by glibc. And then, out of the sudden, terminator executable doesn't exist. "ls"? Doesn't exist. sudo? Doesn't exits.

Only command that worked was cd, not vim, nano, nothing!

I had to shutdown on laptop power button, and tried to boot, some kernel panic.


What now? I was following the directions give on the wiki and this thread and baaam.

Offline

#183 2012-07-18 13:28:43

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: glibc update refusing to proceed. File ownership problem

ephan wrote:

I was just following directions, I was deleting all files on /lib owned by glibc. And then, out of the sudden, terminator executable doesn't exist. "ls"? Doesn't exist. sudo? Doesn't exits.

Unfortunately you misread the wiki, the instructions state to remove all files *not* owned by a package.

As for how to recover, boot a livecd (or to some other recovery shell), mount your partitions, and reinstall glibc.

Offline

#184 2012-07-18 13:33:40

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: glibc update refusing to proceed. File ownership problem

Barrucadu wrote:
ephan wrote:

I was just following directions, I was deleting all files on /lib owned by glibc. And then, out of the sudden, terminator executable doesn't exist. "ls"? Doesn't exist. sudo? Doesn't exits.

Unfortunately you misread the wiki, the instructions state to remove all files *not* owned by a package.

As for how to recover, boot a livecd (or to some other recovery shell), mount your partitions, and reinstall glibc.

Any useful link on how I can mount my partitions from a live cd? And to reinstall glibc, I nede to boot Arch, right?

Also, what about all the executables, they are gone, right? Mouting my partitions will bring them back? Also, I didn't misread the wiki, I misread the thread, I'm very sure some post said that :S Too bad, I guess I can't trust everything.

Offline

#185 2012-07-18 13:43:02

ArchLinuxSA
Member
Registered: 2009-10-30
Posts: 9

Re: glibc update refusing to proceed. File ownership problem

I followed this post https://wiki.archlinux.org/index.php/De … iki:usrlib and I have deleted the /lib direcotry. Now I cannot boot my system, so I am really in a serious issue, any help would be appreciated.

regards

Offline

#186 2012-07-18 13:56:11

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: glibc update refusing to proceed. File ownership problem

ArchLinuxSA wrote:

I followed this post https://wiki.archlinux.org/index.php/De … iki:usrlib and I have deleted the /lib direcotry. Now I cannot boot my system, so I am really in a serious issue, any help would be appreciated.

No, you misread it, it doesn't say to delete /lib.

ephan wrote:

Any useful link on how I can mount my partitions from a live cd? And to reinstall glibc, I nede to boot Arch, right?

Also, what about all the executables, they are gone, right? Mouting my partitions will bring them back? Also, I didn't misread the wiki, I misread the thread, I'm very sure some post said that :S Too bad, I guess I can't trust everything.

mount /dev/whatever /mnt/whatever

If you boot an Arch livecd you can use pacman to reinstall glibc.

pacman -r /mnt/whatever -S glibc

The executables are not gone, but the linker is and so they can't be loaded, hence the error. Reinstalling glibc will fix this.

Offline

#187 2012-07-18 15:37:08

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: glibc update refusing to proceed. File ownership problem

Shall I do mount /dev/sda1 /mnt/temporarymount?

Offline

#188 2012-07-18 15:44:14

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: glibc update refusing to proceed. File ownership problem

If /dev/sda1 is your root partition, yes.

Offline

#189 2012-07-18 15:56:11

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: glibc update refusing to proceed. File ownership problem

Barrucadu wrote:

If /dev/sda1 is your root partition, yes.

I am a bit lost here. I have 4 partitions:

/dev/sda1 boot
/dev/sda2 (no idea)
/dev/sda3 root
/dev/sda4 home

Do I need to mount all of them?

Offline

#190 2012-07-18 15:59:54

progandy
Member
Registered: 2012-05-17
Posts: 5,201

Re: glibc update refusing to proceed. File ownership problem

Mount sda3 to /mnt/arch and sda1 to /mnt/arch/boot The home partition is not necessary. If sda2 is /var, then you'll have to mount that to /mnt/arch/var, too.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#191 2012-07-18 16:02:29

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: glibc update refusing to proceed. File ownership problem

I do not know how I can know what sda2, but I do know the file system is linux-swap, so nothing to do with it, right?

Offline

#192 2012-07-18 16:56:35

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,366

Re: glibc update refusing to proceed. File ownership problem

ephan wrote:

I do not know how I can know what sda2, but I do know the file system is linux-swap, so nothing to do with it, right?

You shouldn't need it with the LiveCD when you are recovering your system.  If you happen to need it swapon /dev/sda2, but just to recover you won't need it.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#193 2012-07-18 17:17:01

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: glibc update refusing to proceed. File ownership problem

So, I mounted everything as you said, and I still get kernel panic when booting Arch on hard disk. Any ideas?

Offline

#194 2012-07-18 18:03:29

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: glibc update refusing to proceed. File ownership problem

@ephan: After the mounts, did you reinstall the version of glibc you unintentionally deleted?

Offline

#195 2012-07-18 19:25:57

ephan
Member
Registered: 2011-11-02
Posts: 171

Re: glibc update refusing to proceed. File ownership problem

Strike0 wrote:

@ephan: After the mounts, did you reinstall the version of glibc you unintentionally deleted?

I can't install glib if I can't boot, can I? So, the answer is no.

Offline

#196 2012-07-18 19:31:35

progandy
Member
Registered: 2012-05-17
Posts: 5,201

Re: glibc update refusing to proceed. File ownership problem

ephan wrote:
Strike0 wrote:

@ephan: After the mounts, did you reinstall the version of glibc you unintentionally deleted?

I can't install glib if I can't boot, can I? So, the answer is no.

boot from cd. Mount root, /var and /boot. Install glibc from cache in mounted arch. pacman -U -r /mnt/arch /mnt/arch/var/cache/pacman/pkg/glibc.... Unmount. Reboot.

Last edited by progandy (2012-07-18 19:32:20)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#197 2012-07-18 19:37:47

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: glibc update refusing to proceed. File ownership problem

On my Linode VPS I get this:

$ find /lib -exec pacman -Qo -- {} +                                                                                                                                                                                       
error: cannot determine ownership of directory '/lib'                                                                                                                                                                                        
/lib/libnss_files.so.2 is owned by glibc 2.16.0-1                                                                                                                                                                                            
/lib/ld-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                                   
/lib/libmemusage.so is owned by glibc 2.16.0-1                                                                                                                                                                                               
/lib/libanl-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                               
/lib/libutil-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                              
/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-1                                                                                                                                                                                          
/lib/libc.so.6 is owned by glibc 2.16.0-1                                                                                                                                                                                                    
/lib/libnss_db-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                            
error: cannot determine ownership of directory '/lib/modules'                                                                                                                                                                                
error: cannot determine ownership of directory '/lib/modules/2.6.35.4-x86_64-linode16'                                                                                                                                                       
error: No package owns /lib/modules/2.6.35.4-x86_64-linode16/modules.dep                                                                                                                                                                     
error: cannot determine ownership of directory '/lib/modules/2.6.39.1-x86_64-linode19'                                                                                                                                                       
error: No package owns /lib/modules/2.6.39.1-x86_64-linode19/modules.dep                                                                                                                                                                     
/lib/libnss_compat.so.2 is owned by glibc 2.16.0-1                                                                                                                                                                                           
/lib/libdl-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                                
/lib/libnss_files-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                         
/lib/libcidn-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                              
/lib/libnss_dns.so.2 is owned by glibc 2.16.0-1                                                                                                                                                                                              
/lib/libBrokenLocale-2.16.so is owned by glibc 2.16.0-1                                                                                                                                                                                      
/lib/librt.so.1 is owned by glibc 2.16.0-1
/lib/libm-2.16.so is owned by glibc 2.16.0-1
/lib/libSegFault.so is owned by glibc 2.16.0-1
/lib/libnss_dns-2.16.so is owned by glibc 2.16.0-1
/lib/librt-2.16.so is owned by glibc 2.16.0-1
/lib/libc-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_db.so.2 is owned by glibc 2.16.0-1
/lib/libnsl.so.1 is owned by glibc 2.16.0-1
/lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-1
/lib/libdl.so.2 is owned by glibc 2.16.0-1
/lib/ld-linux-x86-64.so.2 is owned by glibc 2.16.0-1
/lib/libpthread.so.0 is owned by glibc 2.16.0-1
/lib/libcrypt-2.16.so is owned by glibc 2.16.0-1
/lib/libthread_db.so.1 is owned by glibc 2.16.0-1
/lib/libnsl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-1
/lib/libthread_db-1.0.so is owned by glibc 2.16.0-1
/lib/libpthread-2.16.so is owned by glibc 2.16.0-1
/lib/libanl.so.1 is owned by glibc 2.16.0-1
/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-1
/lib/libpcprofile.so is owned by glibc 2.16.0-1
/lib/libutil.so.1 is owned by glibc 2.16.0-1
/lib/libnss_nis.so.2 is owned by glibc 2.16.0-1
/lib/libcrypt.so.1 is owned by glibc 2.16.0-1
/lib/libresolv-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_hesiod-2.16.so is owned by glibc 2.16.0-1
/lib/libresolv.so.2 is owned by glibc 2.16.0-1
/lib/libcidn.so.1 is owned by glibc 2.16.0-1
/lib/libm.so.6 is owned by glibc 2.16.0-1
/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-1

I guess this mean I have to wait for Linode to update the kernel package and move the modules out of /lib before I can do any more updates. Or would it be safe to remove /lib/modules/2.6.39.1-x86_64-linode19 (the only file in there is modules.dep)? I am being very cautious since I can't exactly use a LiveCD on my VPS.

Offline

#198 2012-07-18 19:50:38

progandy
Member
Registered: 2012-05-17
Posts: 5,201

Re: glibc update refusing to proceed. File ownership problem

Which kernel are you using? The linode files mentioned in your list are specific for two 2.6 kernels. If you don't use them you should be able to remove them.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#199 2012-07-18 19:57:08

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: glibc update refusing to proceed. File ownership problem

I think the kernel is provided by Linode, it doesn't seem to be in the package manager (or even the root filesystem). I'm not quite sure how VPSes work to be honest, I'm just a user ;-)

uname -r reports 2.6.39.1-x86_64-linode19

Offline

#200 2012-07-18 19:58:38

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: glibc update refusing to proceed. File ownership problem

I checked the Linode forum and apparently it's safe to remove /lib/modules

http://forum.linode.com/viewtopic.php?f=20&t=9145

Offline

Board footer

Powered by FluxBB