You are not logged in.

#1 2013-06-09 00:25:31

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

[SOLVED] Help upgrading with the latest /bin changes

Hi!
I saw the latest changes regarding /bin dir required a manual action, so I got to it and followed the instructions on arch page's frontpage.
I use syslinux to boot my encrypted root partition, which also unlocks my /home using crypttab.
After the update, i get a complaint about /sbin/init not being found and I'm thrown back to the console.
I chrooted into the partition and modified mkinitcpio script, which had the interpreter line wrongly set to /bin/bash to /usr/bin/bash to see if re-generating the kernel was the problem, but I'm still stuck....
I don't know where to start but one thing is for sure: I won't update my "big" computer, which I use as home cinema with xmbc and 4th of storage managed by mdadm..... I'm afraid to lose data...
I need a hand with this... if any more info is necessary, please, let me know.

Cheers.

Last edited by Xi0N (2013-06-09 12:31:45)

Offline

#2 2013-06-09 00:34:35

oboenerd
Member
From: Right behind you.
Registered: 2012-08-15
Posts: 52

Re: [SOLVED] Help upgrading with the latest /bin changes

Can you post the output of the following command from a chrooted environment?

# ls -l /sbin

"I quoted myself." -oboenerd

Offline

#3 2013-06-09 01:24:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,459
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

I gather you have init=/sbin/init on your kernel line.  Remove it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-06-09 01:34:48

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

Re: [SOLVED] Help upgrading with the latest /bin changes

Also, you did not need to "correct" the interpreter in mkinitcpio.conf. /bin/bash is correct and will work just fine.


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

#5 2013-06-09 07:31:09

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

sh-4.2# ls -l /sbin
ls: cannot access /sbin: No such file or directory

Also, my syslinux looks like this:


LABEL arch
        MENU LABEL Arch Linux
        LINUX ../vmlinuz-linux
        APPEND cryptdevice=/dev/sda3:root root=/dev/mapper/root ro
        INITRD ../initramfs-linux.img

Offline

#6 2013-06-09 09:05:19

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Help upgrading with the latest /bin changes

Sanity check: 1) did the filesystem upgrade complete without any errors? 2) do you have systemd-sysvcompat installed?

Offline

#7 2013-06-09 09:13:36

msthev
Member
Registered: 2012-04-05
Posts: 177

Re: [SOLVED] Help upgrading with the latest /bin changes

It couldn't have, otherwise /sbin would exist (and be a symlink).
Xi0N, what exactly did you do when upgrading?

Offline

#8 2013-06-09 10:27:17

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 228

Re: [SOLVED] Help upgrading with the latest /bin changes

Xi0N wrote:

I'm afraid to lose data...

You should backup then wink


ktr

Offline

#9 2013-06-09 10:48:39

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

# pacman -Syu --ignore filesystem,bash
# pacman -S bash
# pacman -Su

https://www.archlinux.org/news/binaries … ervention/

As indicated here...... should i use pacstrap and re-install "filesystem" package?

Offline

#10 2013-06-09 10:49:27

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

Kooothor wrote:
Xi0N wrote:

I'm afraid to lose data...

You should backup then wink


I wish I had a cloud storage service to backup 4Tb of movies and series smile

Last edited by Xi0N (2013-06-09 10:49:37)

Offline

#11 2013-06-09 10:54:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Help upgrading with the latest /bin changes

Xi0N, data that is not properly backed up is data that is not important.
That means you can stop worrying about losing it.

Offline

#12 2013-06-09 10:54:53

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Help upgrading with the latest /bin changes

Tell us exactly what you did. Were there any foreign packages with files in /bin, /sbin or /usr/sbin? Where there any packages installed via foreign repos in those directories? Did you fix/remove those packages?

If you only did those last three commands and ignored any errors, which is what I suspect happened, then yeah, you'll end up in the state that you're in.

Last edited by jakobcreutzfeldt (2013-06-09 10:55:29)

Offline

#13 2013-06-09 11:10:42

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

Ok,
So what I did was basically ignore the part that said to look for packages from unofficial repos since the only one I use is archlinuxfr for yaourt and another packages from aur installed via this tool: I thought they were just not going to work, which I was fine with...but turns out the result is other than what I expected......
By "fix the packages" what does it mean? move the binary files manually one by one?

Can I fix (at least as a temporal solution) this issue by creating by hand some symlinks to /usr/bin ?

Offline

#14 2013-06-09 11:13:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Help upgrading with the latest /bin changes

Xi0N wrote:

By "fix the packages" what does it mean? move the binary files manually one by one?

Why don't you search the forums? You're not exactly the first person who failed to upgrade and doesn't know how to fix the foreign packages.

Offline

#15 2013-06-09 11:24:09

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

karol wrote:
Xi0N wrote:

By "fix the packages" what does it mean? move the binary files manually one by one?

Why don't you search the forums? You're not exactly the first person who failed to upgrade and doesn't know how to fix the foreign packages.

Well, what makes you think I didn't do so?
I have seen many posts but I didn't find the solution in them as different people messed their setup in many different ways.
Also, I might have been using Arch for years now but I still have some trouble with these major changes of the system and I'd appreciate your help, don't take for granted the thought that no one searches the forum before posting, and more when It's the newbie subforum.

Thanks.

Offline

#16 2013-06-09 11:27:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Help upgrading with the latest /bin changes

Xi0N, you haven't even posted which packages do you need to fix ...
These are not Care Bears(tm) Fluffy Forums, this is Spartaaaaa Arch ;P

Offline

#17 2013-06-09 11:32:51

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

karol wrote:

Xi0N, you haven't even posted which packages do you need to fix ...
These are not Care Bears(tm) Fluffy Forums, this is Spartaaaaa Arch ;P

I guess I need to fix all? I mean, apart from the packages that were in the official repos and yaourt and some aur packages, which i really don't mind: I believe they can be fixed afterwards, the damage is already done and I guess i'd need to fix all (dont know how to check this).....
Believe me, it's really frustrating for a guy like me, that is not IT illiterate, that makes a living out of this and have some machines both at home and in production as servers when I have to post silly questions like this in the newbie sub-forum..... shame on me!!!!....... jk....
I really appreciate your patience........

Last edited by Xi0N (2013-06-09 11:33:31)

Offline

#18 2013-06-09 11:36:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Help upgrading with the latest /bin changes

Offline

#19 2013-06-09 12:09:09

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

Ok, /usr/sbin was stil there, so I moved it and installed filesystem with pacman -root /mnt -Su filesystem
Now, It got successfully installed, but consolekit seems to fail.... which is a minor issue considering the system already boots up...

I'll look into it when I have some time... as for now... thanks, karol for being a bit patient with me smile

Offline

#20 2013-06-09 12:19:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Help upgrading with the latest /bin changes

consolekit is not in the repos anymore.

Offline

#21 2013-06-09 12:24:56

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

karol wrote:

consolekit is not in the repos anymore.


I see....it's not necessary anymore?

Offline

#22 2013-06-09 12:27:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Help upgrading with the latest /bin changes

Xi0N wrote:
karol wrote:

consolekit is not in the repos anymore.


I see....it's not necessary anymore?

You did search the forums, so you know <evil grin>

Offline

#23 2013-06-09 12:31:29

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: [SOLVED] Help upgrading with the latest /bin changes

karol wrote:
Xi0N wrote:
karol wrote:

consolekit is not in the repos anymore.


I see....it's not necessary anymore?

You did search the forums, so you know <evil grin>

You got me... I'm a lazy ass...... mostly because I have little time.
Thanks, I'll stop bothering you

Offline

#24 2013-06-09 12:34:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Help upgrading with the latest /bin changes

Many unsupported packages aren't silently dropped from the repos https://www.archlinux.org/news/consolek … by-logind/
Asking the devs to provide such news items is hard to justify if users keep ignoring them.

Offline

#25 2013-06-09 15:08:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,642

Re: [SOLVED] Help upgrading with the latest /bin changes

Merging with the (comprehensive) sticky thread

Edit:  Thanks Karol;  I forgot do do the actual merge hmm

Last edited by ewaller (2013-06-09 19:36:42)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB