[SOLVED]Symlinking /bin, /sbin to /usr/bin for system update

Hello everyone,
Reading this has exposed a basic gap in my knowledge of linux ownership:
https://www.archlinux.org/news/binaries … ervention/
How is it that a directory /bin can be owned by a package contained within it, as is implied by the query option "-o" to pacman in step 1 of the above linked page?:
$ pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
Incidentally, I get no output from this command or the others in steps 1 and 3, so it seems from reading the following that there are no packages causing problems (I'm pretty sure I don't have any packages from unofficial repositories):
https://bbs.archlinux.org/viewtopic.php?id=164505
Secondly, (and I may be completely wrong here), is it really as simple as this to move all the binaries from /bin and /sbin into /usr/bin, then create symbolic links in the root directory pointing to this new location?:
cd /
rsync -a /bin/ /usr/bin/
rsync -a /sbin/ /usr/bin/
ln -s /bin /usr/bin
ln -s /sbin /usr/bin
rm -R /bin /sbin
I use rsync -a here to preserve permissions, although I've heard that I could use tar. Is there a safer/more succinct way of doing this? And finally, I delete the original directories and their
contents last. If I were to delete them AFTER copying their contents to /usr/bin but BEFORE creating the symlinks, I would be in serious trouble, wouldn't I?
Last edited by Amp (2013-06-04 20:10:26)

If you dont have any packages that is in the wrong place you just have to follow the instructions from the front page to upgrade your system.
# pacman -Syu --ignore filesystem,bash
# pacman -S bash
# pacman -Su
No need for manual moving, deleting and symlinking.

Similar Messages

  • Where is the option for system updates in the update center

    Hi, I want to check if lollipop is available for my phone. So I went to software updates in the About Phone section, but I don't see the option to check for system updates. Why?
    My Z3 compact
    Android version: 4.4.4
    Build number: 23.0.1.A.5.77
    Solved!
    Go to Solution.

    @poorav Could you send me a private message with the IMEI-number of your Z3 Compact and I can look closer into this:
    http://support.sonymobile.com/global-en/xperiaz3compact/userguide/IMEI-number/
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • [solved] Pulseaudio doesn't detect sound card after system update

    Before a recent system update I had pulseaudio working flawlessly, but after doing a recent system update with pacman -Syu,
    pulseaudio no longer sees my sound card and only displays the Dummy audio device.  Among the packages updated that I can
    remember off the top of my head are the Linux keneral, udev, kmod, instead of trying to roll back my system I figured I would try
    to fix the issue.  The only thing suggested in the Pulseaudio wiki is that a asound.conf directory is overriding the /etc/asound.conf
    file which is not the case on my system.
    Looking at the output from lsmod I can see where the kernel modules for the sound card is getting loaded
    snd_hda_intel 23375 0
    snd_hda_codec 89160 3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
    snd_hwdep 6389 1 snd_hda_codec
    snd_pcm 74780 3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
    snd_page_alloc 7153 2 snd_pcm,snd_hda_intel
    snd_timer 19544 1 snd_pcm
    and looking at the output from the ps command I can see that pulseaudio is getting started
    1190 ? S<l 0:00 /usr/bin/pulseaudio --start
    1195 ? S 0:00 \_ /usr/lib/pulse/gconf-helper
    but pacmd list still reports this
    0 card(s) available.
    0 sink input(s) available.
    0 source outputs(s) available.
    0 cache entrie(s) available.
    Here is the output of pacmd dump if it helps
    ### Configuration dump generated at Thu Feb 16 08:45:56 2012
    load-module module-device-restore
    load-module module-stream-restore
    load-module module-card-restore
    load-module module-augment-properties
    load-module module-udev-detect tsched=0
    load-module module-jackdbus-detect
    load-module module-bluetooth-discover
    load-module module-esound-protocol-unix
    load-module module-native-protocol-unix
    load-module module-gconf
    load-module module-default-device-restore
    load-module module-rescue-streams
    load-module module-null-sink sink_name=auto_null sink_properties='device.description="Dummy Output"'
    load-module module-always-sink
    load-module module-intended-roles
    load-module module-suspend-on-idle
    load-module module-console-kit
    load-module module-position-event-sounds
    load-module module-cork-music-on-phone
    load-module module-filter-heuristics
    load-module module-filter-apply
    load-module module-dbus-protocol
    load-module module-x11-publish display=:0.0
    load-module module-cli-protocol-unix
    set-sink-volume auto_null 0x10000
    set-sink-mute auto_null no
    suspend-sink auto_null yes
    set-source-volume auto_null.monitor 0x10000
    set-source-mute auto_null.monitor no
    suspend-source auto_null.monitor yes
    set-default-sink auto_null
    set-default-source auto_null.monitor
    ### EOF
    EDIT: I should also add that fuser -v /dev/snd/* returns nothing and fuser -v /dev/dsp returns "Specified filename /dev/dsp does not exist".
    Last edited by vendion (2012-03-02 23:26:28)

    Digging into this further aplay -L gives different output based off of whether or not I ran is as my normal user or with sudo/as root.
    As a user (which is how pulseaudio is also being ran):
    > aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    default
    Default ALSA Output (currently PulseAudio Sound Server)
    as root it does see both my sound cards when I run it with sudo or as root:
    > sudo aplay -L
    Password:
    null
    Discard all samples (playback) or generate zero samples (capture)
    pulse
    PulseAudio Sound Server
    default
    Default ALSA Output (currently PulseAudio Sound Server)
    sysdefault:CARD=SB
    HDA ATI SB, ALC887-VD Analog
    Default Audio Device
    front:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    Front speakers
    surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
    hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    HDMI Audio Output
    This behavior is confusing to me, and if someone knows what is going on and how to fix it I really want to get sound with pulseaudio working and have sound again.

  • Error message on searching for system updates and news feeds

    I always get an error message when I attempt System Updates and when I attempt to subscribe to news feeds through the app that is pre-loaded on my phone.  Any help is greatly appreciated.

    Hello Mitch4815,
    Thank you for reaching out for assistance with the New Feeds on your new Droid Bionic. I too own this device and I hope that you are as happy with yours as I am with mine. I've subscribed to the Reuter's Technology News on my Bionic so I can stay in the know on the latest and greatest rumors in the wireless world. Not only is it my job but I enjoy reading the speculation on the latest and upcoming devices. Needless to say I've had an experience that's similar to yours.
    When I received a subscription error, I had to do a factory data reset on my new Droid Bionic in order to successfully subscribe to the News Feeds. Although I do recommend that you try this, let's save this step as a last resort. Please try to remove the battery while the device is powered on & re-insert then power the device on. Afterwards, verify that you have a good 3G/4G signal, anything more than 2 bars. If you are still experiencing access issues then the factory data reset would be the next step. Here is a link on how to perform a factory data reset on a  Droid Bionic.
    http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=46649
    Of course you will have to reactivate your device after the factory reset. Prior to completing the reset I recommend verifying that your contacts are backed up on either backup assistant or on your Gmail account. Also, your pictures, videos, and music will be saved on the memory card so this info is not in danger. After you have completed the steps above, please reply to this message as your experience may help others. 
    Thank you for being the best part of Verizon Wireless.

  • Hard drive "does not meet the requirements" for system updates

    Hi,
    I'm running 10.2 and I'm trying to update my computer to the more recent version, except that I've gone through the update downloads on this site and anything higher than 10.3 tell me I need to run 10.3 to run it. When I tried to upgrade to 10.3, I was told that I "cannot install this software on this disk. This volume does not meet the requirements for this update". What does that mean and how do I rectify the problem? Thank you very much in advance.
    - Jen

    Hi Kappy! I have a similar problem: I had a problem in the past and had to re-install the system. I now have a previous sytem folder on my mac which I do not dare touch. I used to have a later version than 10.3.3 (I cannot remember which). I am now trying to update with the 10.3.9 combo update (just bought a new ipod) and I get the famous "does not meet the requirements" message. I have repaired permissions and done Onyx maintenance - still nothing. I wonder whether somehow the installer detects that there is already some newer component installed and does not want to re-install. I am awfully frustrated... Thanks in advance for your help.

  • Password not required for system updates

    Purchased new imac at apple store in March - let them perform the set-up.  Was told by several individuals at retailer that system was secure out of the box, and that any changes to machine would require user name/password.  After three months and many updates, system has only asked for password once, and that was when we installed ilife 11.  We do have the imac set-up for automatic login, however, software update is not set-up to download updates automatically. Is this a defect in the machine, or was a setting changed inadvertently at set-up by the retailer.  What should the default settings be to ensure that downloads (apple and other) require a password to download.
    Please help.
    Thanks

    G'day,
    The first user account that you create has Administrator access to the machine.  In recent updates to Snow Leopard, an Administrator user does not need to re-enter their credentials in order to apply Apple System Updates.
    However, for any other software installation requiring access to "system" folders, the username and password will need to be entered.
    This is not a security issue at the current time, although some people (including myself) think that it is not good practice to use an Administrator account all of the time.  If malicious software ever does get through your defences, it is better if it can only run as a Standard User!
    A more secure configuration for your machine would be to create a second user account (a Standard User), and do all of your work in that. 
    If you run Software Update from that account, it will then require you to enter administrator credentials to run the update.  In fact - all Application installations (even "drag and drop" and Apple Store) to your /Applications directory will also require the entry of credentials.
    Cheers,
    Rodney

  • WER patch for system update patch 1.2 in System Update

    This patch, on my machine, removed the task scheduler entry to  run System update patch utility on Windows Event id 1001. ie , it turns off SUP a newer version of LPU, Lenovo patch utility. SUP is installed with system update.

    So first of all you solution.
    open Command Controll (CMD) (i would recommend in administator mode)
    navigate to the folder where you saved your "systemupdate.exe" 
    type systemupdate502-06-26-2013.exe /s /a /v"/qn"
    (this will install System Update silent. For more inforamtion about that you should visit the microsoft support)
    Now wait a bit (depends on how fast your maschine is)
    Now open Metro, press this new little "down arow" and there you must find your installed systemupdate
    So and now a few words more:
    I had this same Problem on a Leaked Final Windows 8.1 version. This means when in October Win8.1 will offical realease, Systemupdate will not work. I think lenovo should go back to his roots and provide the best support they could instead of blocking all work to Windwos 8.1 Threads. I know many people that buy your Laptops only because of the good support.

  • My RAZR will not look for system updates???

    It says I need a "Motorola service account", but when I follow the only prompt I have to set one up it won't connect to the server. My wifes Razr updated to JB with no problems.  Hers is a newer model, still just a Razr though...I'd like to update, anyone have any ideas??  Thanks in advance!

    Is your device on a data plan? You could download the JB update (just google it) to your PC, transfer it to your SD card, and your Razr should find it in install it when you tell it to check for update. Good luck.

  • How can I get the verification codes for system updated

    I still can't get the verification codes to be sent to my mobile phone after I updated my system to ios 8.0 since yesterday

    Hello Slordan2012
    Log in to appleid.apple.com and resend the verification email to then verify the address. If you cannot get pass that, then you can always force the restore on your iPad and then enter in the password to bypass trying to turn it off.
    Apple ID: Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/he68
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Regards,
    -Norm G.

  • What shell script found in /usr/sbin and /usr/bin in OS X made out off?

    What shell script found in /usr/sbin and /usr/bin in OS X made out off?
    thanks.

    You may have to provide more detail on what you're wanting to know if this doesn't answer your question.
    Shell scripts are just text files. You can create or open them with any text editor. They are executed by one of the command interpreters (such as sh, bash, csh, etc) or by a language interpreter (like perl or ruby). However, many of the items in the directories you mention are not shell scripts but rather binary executables. These are executed by the OS.
    You can use something like this to show you which are which:
    file /usr/bin/*
    Steve

  • Storage Bin for Interim Storage Type 902 for GR

    Hi,
    We know that the the dynamic storage bin for goods receipt for PO is the PO number. However, when we are posting GR, system creates TR with interim storage bin as material document number.
    I looked into the movement type config. However, we can only state that whether interim bin should be cordinates or fixed bin or dynamic bin. It has no way to mention what that dynamic bin would be.
    Can you please suggest a way to change the dynamic storage bin as PO number instead of material document number.
    Thanks,
    Shekhar

    Dear Shekhar,
    Could you please check in view V_T308 (transaction code OMNF) whether the indicator "Dynamic bin material document" is set for your warehouse number and requirement type B?
    Best regards,
    Christiane
    Edited by: Christiane Schnellenbach on Apr 12, 2010 10:25 PM

  • Storage bin for storage type

    Hi ,
    How to maintain storage bin for storage type in WM
    Regards
    RB

    Hi
    Check it in LS01N.
    This will do
    Regards,
    Raman

  • MOSS 2007 - Delete recycle bin for 10 personal sites - HOW???

    Hi all
    I need to delete the First and Second stage Recycle bin for all of our personal sites, as the total size of these has somehow exceeded 140GB.
    I am however stuck as to how to do this. I have tried lots of Powershell scripts to get this done, but nothing has worked. I also tried to just switch off the Recycle Bin but this operation just times out, as the Bin is too large now for this to work.
    My most recent Powershell script that I tried is the only one that didnt throw any errors and seemed to do something for about 6 seconds, but checking the recycle bin for the site I tried it against shows that it is still full:
    param([string]$Url, [switch]$help)
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    function GetHelp()
    $HelpText = @"
    DESCRIPTION:
    NAME: Remove-SPSiteSecondStageRecycleBin
    Empties the second-stage recycle bin for a Microsoft.SharePoint.SPSite Collection
    PARAMETERS:
    -url Url to SharePoint Site Collection
    SYNTAX:
    Remove-SPSiteSecondStageRecycleBin -url http://ansafile
    Empties the second stage recycle bin for the SiteCollection.
    Remove-SPSiteSecondStageRecycleBin -help
    Displays the help topic for the script
    $HelpText
    function Remove-SPSiteSecondStageRecycleBin([string]$url)
    $siteCollection = New-Object Microsoft.SharePoint.SPSite($url);
    $recycleQuery = New-Object Microsoft.SharePoint.SPRecycleBinQuery;
    $recycleQuery.ItemState = [Microsoft.SharePoint.SPRecycleBinItemState]::SecondStageRecycleBin;
    $recycleQuery.OrderBy = [Microsoft.SharePoint.SPRecycleBinOrderBy]::Default;
    $recycledItems = $siteCollection.GetRecycleBinItems($recycleQuery);
    $count = $recycledItems.Count;
    for($i = 0; $i -lt $count; $i++)
    $g = New-Object System.Guid($recycledItems[$i].ID);
    $recycledItems.Delete($g);
    $siteCollection.Dispose()
    if($help) { GetHelp; Continue }
    if($url) { Remove-SPSiteSecondStageRecycleBin -url $url }
    After pressing Enter after adding the above, I then entered the below into Powershell:
    Remove-SPSiteSecondStageRecycleBin -url http://ansafile
    This seemed to do something, but not what I needed it to do, ie delete the recycle bin for the whole sharepoint insstallation. ANSAFILE is the internal name of the Sharepoint site. Also, I am using Powershell v2, in an ISE window. My server is running Windows
    Server 2008 Std x64 edition. Sharepoint version is 12.0.0.6565
    Hopefully someone can help, as I have never used Powershell before, and had to take over the Sharepoint which I have never done before either, and its a bit of a struggle
    Thanks to all
    Naz

    Hi, I tried using that code, I pasted it into a Powershell ISE window, pressed enter, and got the following:
    GAC    Version        Location                                                                                                                                                   
    True   v2.0.50727     C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint\12.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.dll                                                      
    New-Object : Constructor not found. Cannot find an appropriate constructor for type microsoft.sharepoint.spsite.
    At line:3 char:19
    + $site = new-object <<<<  microsoft.sharepoint.spsite($url);
        + CategoryInfo          : ObjectNotFound: (:) [New-Object], PSArgumentException
        + FullyQualifiedErrorId : CannotFindAppropriateCtor,Microsoft.PowerShell.Commands.NewObjectCommand
    I have no idea what this means, or how to resolve it. I tried to find some solutions onlione, but nothing came up. Any ideas?
    Thanks for your help
    Naz

  • Putaway Block in Storage Bin for any specific Material Code

    Hi Experts,
    We have a problem, we have allowed mix storage, addition to stock in the storage type, our requirement is this, that we want to block one bin aa-01-01 for some specific material code xxxxx, but we want to allow putaway other material codes to that bin.
    How can we achieve this. Can we use LS07 or some other solution. Please suggest at the earliest.
    Regards
    Ishu

    Hi,
    In standard system, you can block one specific bin for the specific material with Putaway strategy "Fixed bin" by maintaining this bin in material master. It is unclear that you set "allowed mix storage" and again required material specific putaway in bin.
    You can change "Mixed storage" indicator to blank. Which explains "___"  Mixed storage is not allowed
           All storage units in a storage bin must contain the same material and batch (one quant).
    If you don't want to change any of current setting you'll need to use the user exit and maintain custom table where you can maintain specific bin for the material for the warehouse. After determination of the bin to putaway in the standard code you can check if it is conflicting to the entry in your custom table.
    Hope this'll help.
    Regards,
    Sudhir

  • Capacity control in storage bin for material

    Hello,
       I am trying to set up following scenario: I want to set the capacity of storge bin for material for example 16547. For one storage bin fit only 200 pieces of material 16547. So I set this in material master WM2 tab. Then I order 400 pieces, TR is generated, then I want to create TO in background, but it display error: Maximum quantity for storage bin will be exceeded. Then I have to create TO in foreground and confirmation 2 times.
    So my question is: is there any way to set up that TO will be created in background and confirmed one time?
    Thank you

    a TO split will not be triggered by remaining capacity, never.
    The TO split has to happen earlier, SAP is always trying to putaway the entire quantity of a single TO item into one bin. Hence you need to have many TO items.
    This is controlled by Palletization (WM2 view).
    If you get 200 on one pallet, the enter 200 in WM2 view and SAP will give you 2 TO items if you receive 400.

Maybe you are looking for