Solaris 10 package removal

I get the following errors during pkgrm process. Any suggestion? Thanks a lot.
# pkgrm SUNWudapltr
## Verifying package <SUNWudapltr> dependencies in global zone
## Processing package information.
## Executing preremove script.
datadm: cannot open /etc/dat/dat.conf
datadm -r failed
pkgrm: ERROR: preremove script did not complete successfully
Removal of <SUNWudapltr> failed.
# pkgrm SUNWwsr2
The following package is currently installed:
SUNWwsr2 Solaris Product Registry & Web Start runtime support
(sparc) 4.0.0,REV=2005.01.09.23.05
Do you want to remove this package? [y,n,?,q] y
ld.so.1: pkgremove: fatal: libwanboot.so.1: open failed: No such file or directory
# pkgrm SUNWxge
The following package is currently installed:
SUNWxge Xframe 10GE NIC Driver
(sparc) 11.10.0,REV=2005.01.21.15.53
Do you want to remove this package? [y,n,?,q] y
ld.so.1: pkgremove: fatal: libwanboot.so.1: open failed: No such file or directory
pkgrm: ERROR: Unable to release package administration lock for this system; try again later
pkgrm: ERROR: Unable to release package administration lock for this system; try again later

The first error should indeed be solved if you run
touch /etc/dat/dat.conf
As for the following errors; Solaris 10 seems to use an utility called "pkgremove", which is located in /usr/sadm/install/bin, this utility is dependant on the libwanboot.so.1 library, which is available in the SUNWwbsup package.
My guess is that you removed this package.
I don't think you can add this package at the moment, since pkgadd will execute the /usr/sadm/install/bin/pkginstall utility, which also requires libwanboot.so.1.
The easiest way to solve this problem is probably to copy the /usr/lib/libwanboot.so.1 from another computer, or from the CD and then re-run pkgrm .

Similar Messages

  • Solaris package patch creation

    I am looking for documentation or procedure regarding Solaris package patch creation.
    I have created Solaris packages for an ISV application. Now I'd like to create a Solaris
    patch to replace one of those package's binaries - where if the patch is backed out, the
    previous binary is restored.
    I have read the Sun Application Packaging Developer's Guide (both 1994 and current),
    and the subsection on Patching Packages does not contain sufficient information to
    accomplish my goal. I have searched the Net for information, and found other's
    questions and few answers.
    Can anyone produce the procedure for Solaris package patch creation?
    Thank you.

    Here is why no info is available. Sun advises:
    "We cannot make patch building utility publicly available irrespective of the customer having support contract. We suggest you to provide an updated package instead of patches to your customer and tell them to remove the old version and add the new version of the package."

  • Solaris Package Information database on the web

    I've cobbled together a web interface to the Solaris package information. For security reasons, I no longer install the "Entire" distribution. This database was designed as an aid to help me determine dependencies as I pick and choose which packages to include in a custom Solaris install. It's still a beta app, but I was wondering if it was worth doing more development on. Take a look at http://rocky.uta.edu/doran/pkginfo/search.cgi
    Feedback is welcome.
    -- Michael
    # Michael Doran
    # [email protected]

    Well, I certainly like it! That made it easy to find out which packages I can remove from my Jumpstart process to speed it up!
    No suggestion for additions that would be of any value at this point.

  • Packages removed from DP's with machine account

    Hi,
    We have an incident wherein the packages are removed from the DP's with machine account.
    ISSUE: Packages removed from the DP’s.
    The package was successfully copied to all the DP’s on Friday however, today early morning the packages were missing from the DP’s.
    The logs mention the details of package being removed with the “Machine account”.
    SMS Distribution Manager successfully removed package "C00007C5" from distribution point "["Display=\\DP_NAME\"]MSWNET:["SMS_SITE=820"]\\DP_NAME\".
    The only distinguishing factor i could find in the distmgr log shows the below
    STATMSG: ID=2330 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=AUDEMPSSSS01 SITE=806 PID=2232 TID=3872 GMTDATE=Mon Jan 06 01:52:42.099 2014 ISTR0="C00007C5" ISTR1="["Display=\\DP_NAME\"]MSWNET:["SMS_SITE=806"]\\DP_NAME\"
    ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=2 AID0=400 AVAL0="C00007C5" AID1=404 AVAL1="["Display=\\DP_NAME\"]MSWNET:["SMS_SITE=806"]\\DP_NAME\"
    SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 3872 (0x0F20)
    Updating package info for package C00007C5 SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    Package C00007C5 does not have a preferred sender. SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    Sent package server list to parent site R08 for package C00007C5 SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    StoredPkgVersion (2) of package C00007C5. StoredPkgVersion in database is 2. SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    SourceVersion (3) of package C00007C5. SourceVersion in database is 3. SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=AUDEMPSSSS01 SITE=806 PID=2232 TID=5128 GMTDATE=Mon Jan 06 01:52:42.114 2014 ISTR0="Update Default User Account Picture" ISTR1="C00007C5"
    ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="C00007C5" SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    Why was this package removed from DP??
    System Security analyst at CapG

    The Status message shows this way
    "SMS Distribution Manager successfully removed package "C00007C5" from distribution point "["Display=\\DP_NAME\"]MSWNET:["SMS_SITE=820"]\\DP_NAME\"."
    And under the distmgr log,
    Updating package info for package C00007C5 SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    Package C00007C5 does not have a preferred sender. SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    Sent package server list to parent site R08 for package C00007C5 SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    StoredPkgVersion (2) of package C00007C5. StoredPkgVersion in database is 2. SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    SourceVersion (3) of package C00007C5. SourceVersion in database is 3. SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    STATMSG: ID=2301 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=AUDEMPSSSS01 SITE=806 PID=2232 TID=5128 GMTDATE=Mon Jan 06 01:52:42.114 2014 ISTR0="Update Default User Account Picture" ISTR1="C00007C5" ISTR2="" ISTR3="" ISTR4="" ISTR5=""
    ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="C00007C5" SMS_DISTRIBUTION_MANAGER 1/6/2014 12:52:42 PM 5128 (0x1408)
    I can see the packages were removed with "Machine account"
    Why did the machine account delete the package from the DP's?
    Does the difference in DB version and Source version of the package make any difference???
    System Security analyst at CapG

  • Querry on solaris package install

    Hi,
    I am not able to use environment variables inside preinstall or post install scripts while packaging a solaris package. I am trying to export variables in a shell (where i am giving pkgadd command) and trying to access the same variables during pre/post install. Is this functionality supported on Solaris ?
    Do you have any workaround for this ?
    Thanks,
    Vinay

    WHICH Solaris? SPARC or x86? There's NO 9i for Solaris-x86, in case of SPARC you need to execute runInstaller with the -ignoreSysPrereqs option.
    Werner

  • What Solaris packages are needed to run WebLogic 5.1?

    Solaris by default comes with 4 installation methods, namely core, end-user,
    developer, full. In comparison, full consists of 300+ solaris packages and
    core about 30+. I was wondering if there are any docs lying around on
    specifcally what packages are required of Solaris 2.6 by Weblogic 5.1. Would
    greatly appreciate any help here. Thx
    Rgrds,
    Wong.

    Acckk a full installation is bad... real bad for security in a production
    env. You guys should investigate thoroughly exactly what packages are needed
    to run JVM. There are a lot of useless binaries/libs in a full Solaris
    installation. For the record, I installed a core installation + two packages
    (required by JDK). The thing works anyhow... but I thought BEA would have
    some guidelines on a Solaris installation for host security. I mean, even
    M$ have guidelines on running IIS securely, and apache have theirs long ago.
    Any of you guys ever tried stripping Solaris to run weblogic??
    Rgrds,
    Wong.
    "Michael Girdley" <[email protected]> wrote in message
    news:3988bbd3$[email protected]..
    We certify with full installations, but others may work as well. The
    ability to run the JVM is the biggest factor.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    "C.M. Wong" <[email protected]> wrote in message
    news:[email protected]..
    Solaris by default comes with 4 installation methods, namely core,end-user,
    developer, full. In comparison, full consists of 300+ solaris packages
    and
    core about 30+. I was wondering if there are any docs lying around on
    specifcally what packages are required of Solaris 2.6 by Weblogic 5.1.Would
    greatly appreciate any help here. Thx
    Rgrds,
    Wong.

  • How extract Solaris package without root privilege

    Hi!
    Is there any way to extract files from Solaris package file (.pkg) without root privilege?
    Like I can do it for rpm: rpm2cpio foo-2.0.i386.rpm | cpio -ivmud

    You can use 'pkgtrans':
    Syntax:
    pkgtrans <package> <destination directory>
    .7/M.

  • Solaris 10 sparc - gnome/2 package removal

    Hello all
    Is it safe to use a command like: yes |pkgrm `pkginfo |grep -i "staroffice" |awk '{ print $2 }'`
    to remove gnome from a system? I have used that command above to remove things like staroffice and evolution. I'm just curious if there are issues with removing gnome2 from an entire distribution installation that is used only as a server.
    I am looking to reduce the amount of packages installed on some systems.
    thanks in advance!

    Wouldn't it be easier to just install a smaller cluster rather than all or all+eom? You could start with the lowest level cluster and move up the chain until you find something adequate or use it as a starting point.
    alan

  • How to Upgrade Solaris Package ?

    Hi,
    I created a solais package (*.pkg), which I've installed with the following command:
    "pkgadd -d mypkg.pkg"
    1. What command should I use in order to upgrade it to a higher version?
    2. What are the changes I have to do in the installation pkg for supporting this option?
    3. Where can I find more info about this?
    tx in advance,
    devshlom

    You would also use pkgadd. You can either remove the original package with pkgrm, and then run pkgadd on the new package, or you can upgrade by just running pkgadd directly on the new package. If the VERSION string has changed, then a new "instance" of the package is installed: mypkg.2.
    You can find more information in these two documents:
    http://docs.sun.com/app/docs/doc/817-1985 : Solaris 10 System Adminstration Guide
    http://docs.sun.com/app/docs/doc/817-0406: Solaris 10 Application Packaging Developer's Guide
    -- Alan

  • Solaris11 Wireless Package Removal

    X86 Team I know that I need to remove bad wireless packages from my laptop and I am being denied. -
    SUNWralink Ralink RT2500 802.11b/g Wireless Driver This is a Live Image. The install operation can't be performed
    The working package is from Intel that works for me.
    system
    SUNWipw                    
    Intel Pro. Wireless 802.11b IPW2100B Driver
    system
    SUNWiwi                    
    Intel Pro. Wireless 802.11a/b/g IPW2200B/G IPW2915A/B/G Driver

    For a different reason, I also have the exact same issue. In my case, it is due to a particular SAS2 controller. I have an Oracle server (X5-2L) and loaded Solaris 11.2.
    The server came with LSI MegaRAID 9361-8i controller card. I want to enable and use JBOD disks, so that I can use the disks in a ZFS file system.
    The Solaris installer runs just fine, however I cannot pass JBOD disks through to the system - only RAID virtual disks, including single-disk RAID0's. While it "works", it will not work well if/when a disk fails and I need to replace, or extend.
    The base install picks up the controller using the LMRC package. This too is a LSI MegaRAID controller driver, and is compatible with the card. However, I need to load the latest LSI drivers from LSI.com website in order to activate newer features found in the latest firmware. To do this, I've loaded the LSI driver, however Solaris refuses to favor the 3rd party driver over its own native driver.
    As a hopeful workaround, I wanted to remove the LMRC package to see if it would then pick it up using MR_SAS - which, too is a native driver, but then could be updated using the LSI package supplied by LSI. But, first things first - I need to remove LMRC.
    I may not be taking the correct approach to getting the card to run under the LSI-supplied driver - if anyone has a better suggestion than removing the stock driver, I'm open to suggestions!
    -John

  • Making Solaris package and dealing with symlinks

    Hello,
    we are developping an application that runs on Solaris 8 and 9, and we distribute it as a number of packages. We have a problem in one package where we have to install some binaries in a subdirectory under /opt. If we put:
    d base /opt 0775 root bin
    d base /opt/subdir 0755 root bin
    In the template file used in building the package, then we have a problem on one of our machines, where /opt
    is a symlink to /export/home/opt - it seems pkgadd wants /opt to be a regular directory, so it creates it, overwriting the symlink and making everything previously under /opt unavailable (though it's still under /export/home/opt).
    If we remove the files, when we install the package on a machine without an /opt directory, the install fails. Is there some way around these two corner cases? Like telling pkgadd that if /opt is a symlink to leave it like that?

    I checked out https://wiki.archlinux.org/index.php/Initramfs, and I'm not sure what to do. I rebooted a few times in attempt to get things going. I'm assuming I need to start by logging in to the live CD as root and mounting the sda in which Arch is installed? I don't know how to mount root nor know the complete title for the Arch partition (sda x,x). Sorry for the hassle.
    Edit: Found https://wiki.archlinux.org/index.php/Ch … partitions. Be back in a bit.
    I currently have the temporary filesystems mounted, chrooted, and am in bash.
    # mkinitcpio -p linux
    doesn't work. I tried
    mkinitcpio -g ..... 3.6.10-1-ARCH
    and I received something about 3.6.10 and a module directory.
    Last edited by illusory (2012-12-23 23:26:00)

  • Solaris packaging - "build" class action script

    I tried to create a package with a build class action script but having problem with it. I am wondering if any one could give me hint on how to solve this problem? I tried to follow the example on the Solaris tutorial but it didn't work either.
    In the prototype file, I have added: e build /etc/randomtable=etc/randomtable ? ? ?
    In the pkginfo I have added: CLASSES=�none build�
    Content of etc/randomtable in my build directory:
    !install
    # randomtable builder
    if [ -f $PKG_INSTALL_ROOT/etc/randomtable ]; then
    echo "/etc/randomtable is already in place.";
    else
    echo "# /etc/randomtable" > /etc/randomtable
    echo "1121554 # first random number" >> /etc/randomtable
    fi
    !remove
    # randomtable deconstructor
    if [ -f $PKG_INSTALL_ROOT/etc/randomtable ]; then
    # the file can be removed if it's unchanged
    if [ egrep "first random number" /etc/randomtable ]; then
    rm /etc/randomtable;
    fi
    fi
    The error I got after running pkgadd on that package:
    Modifying /etc/randomtable
    /var/sadm/pkg/BPCttdb.2/save/build/etc/randomtable: !install: not found
    /var/sadm/pkg/BPCttdb.2/save/build/etc/randomtable: !remove: not found
    /var/sadm/pkg/BPCttdb.2/save/build/etc/randomtable: test: unknown operator first random number
    pkgadd: ERROR: class action script did not complete successfully
    Some links related to class action script for solaris build:
    http://docs.sun.com/app/docs/doc/817-0406/6mg76stf7?a=view
    http://dlc.sun.com/osol/docs/content/PACKINSTALL/ch5pkgcasestudies-80583.html#ch5pkgcasestudies-56
    Thanks!

    I looked at the build script (/usr/sadm/install/scripts/i.build and r.build), and didn't see anything that parses the "!" directive. I'm not very familiar with build scripts, and the documentation is actually inherited from the original SVR4 documentation (not originating from Sun). But in looking at an example of a script that uses the build class, it expects the first argument to be either "install" or "remove" when called. So your example would look like this below. Note that my comment about the escaped comment can be ignored. It's surrounded by quotes, so is okay.
    if [ $1 = install ] ; then
    # randomtable builder
    if [ -f $PKG_INSTALL_ROOT/etc/randomtable ]; then
    echo "/etc/randomtable is already in place.";
    else
    echo "# /etc/randomtable" > /etc/randomtable
    echo "1121554 # first random number" >> /etc/randomtable
    fi
    else
    # randomtable deconstructor
    if [ -f $PKG_INSTALL_ROOT/etc/randomtable ]; then
    # the file can be removed if it's unchanged
    if \[ egrep "first random number" $PKG_INSTALL_ROOT/etc/randomtable \]; then
    rm /etc/randomtable;
    fi
    fi
    So basically the SVR4 Applications Developers Guide incorrectly tries to use the "!install" and "!remove" commands.
    -- Alan
    Edited by: alanst on Apr 4, 2008 12:26 PM

  • Solaris Package Management

    We have approx. 400 Solaris servers, about half are 2.6, the rest a mixture of 8 and 9. We have a number of packages we want to manage automatically, i.e. remove redundant packages, install new packages and upgrade packages.
    Are there any tools that help with package management over a "large" number of servers? I know we do not have a particularly big server base, so what do those places the do have to manage packages?

    Sorry, hit the entery key too soon.
    Dtrace,zone etc are all cool stuff. but I like to see the PMS got imporved.
    Sun's pkgadd is an ok PMS but it can be better. The biggest problem I see is the lack of package dependency install/remove and package depot support.
    HPUX's SD-UX allow us to install apache package and its depended packages like openldap,berkely db etc automatically. all happend with just one command.
    tj

  • How to add solaris packages to installled system...

    Hello,
    I have a minimally installed Sun Solaris system. I need a lot more functionality on it, like developper tools.
    I know how to install a packege. The problem is finding out which packages to install. The installation CD contains a whol ot of SUNW* packages with cryptic names, and when you try to install one of them I usually run in to dependency problems.
    So is there a convenient way to do the following:
    - Given I need a particular tool (eg /usr/ccs/bin/as )
    - Find out what package that tool belongs too
    - Install that package and all its dependencies automatically?
    Under Linux (an Os where I do have somewhat more experience) this is a trivial exercise. But how do I do this under Solaris?

    I know I can just try to install a package using pkgadd and see where it breaks. But to do this I first have to know what package to install. That is the first problem. I need "foo", how do I find out what package contains "foo"?
    Searching for sollutions I came across a concept called "metacluster", which is aparently sun's way of packaging lots of related stuff together. I found out that the metacluster installed on my system was "SUNWCuser" and that I probably want it to be "SUNWCprog". But I have no idea how to get there.

  • GTK3 apps ugly since yesterday (either upgrade or package removal!)

    I have an issue where GTK3 apps (spacefm & file-roller as examples) are looking messed up since yesterday. It is not GTK theme related, as it looks the same for root. I use openbox, and trimmed some unused packages from my system yesterday. Hopefully I just removed something that wasn't shown as a dependancy when it really should have been!
    See below for a screenshot of GTK2 vs GTK3. The gtk3 title bar area and close button function, but there's no real window decoration. It's odd!
    EDIT: as someone else has the same issue... it was likely the updates at fault, and not me removing some packages
    Last edited by dennis123123 (2014-04-16 18:39:48)

    dennis123123 wrote:
    Hmm this is harder than I first thought it would be...
    :: audacious: requires gtk3
    :: easytag: requires gtk3
    :: file-roller: requires gtk3
    :: galculator: requires gtk3
    :: ghex: requires gtk3
    :: goffice: requires gtk3
    :: gsimplecal: requires gtk3
    :: guvcview: requires gtk3
    :: spacefm: requires gtk3
    :: vte3: requires gtk3
    :: zenity: requires gtk3
    (vte3 being the dependancy for tilda, goffice for abiword)
    I've uploaded a PKGBUILD to build the gtk2 version of gsimplecal to the AUR.
    easytag is easy enough to rebuild against gtk2, I'll upload a PKGBUILD for that shortly.
    goffice0.8 in extra uses gtk2. I use it (with some modifications to remove the gconf crap) with abiword-minimal in the AUR.
    zenity-gtk2 is in the AUR.
    Dunno about the others, I don't use them.
    EDIT: easytag-gtk2.
    Last edited by WorMzy (2014-04-17 16:55:36)

Maybe you are looking for

  • How to create textsymbols by using satndard function module?

    Hi. Guru's. There is a report in which at first i can read textpool of a another program through standard function module  ( RS_TEXTPOOL_READ  /  BX_AGR_READ_TEXTPOOL  ) and i don't know  how to insert textsymbols into the textpool after reading thro

  • HELP! MY AIRPORT EXPRESS KEEPS RESTARTING ITSELF????

    SO, I had this baby for a while now, maybe since novemberish and it was working great until the inevitable happens... Airport utility won't detect my airport express device at all and i've tried everything! All my airport express does is turn amber f

  • TS2988 Ringtone Not showing up on actual phone

    The ringtone shows up in my itunes on my computer and under my phone when it is connected.  But when i look at the sounds setting on my phone the ringtone is not there.  And when i look for the ring tone on my actual phone it is not found.

  • Dynamic table from an structure

    Hi, I want to create one alv grid using function REUSE_ALV_GRID_DISPLAY,for this i have passing the fieldcatalog to slis_t_fieldcat_alv.i have been passing my fieldnames ,and col,sel_text_m to fieldcatalog.instead of passing the fields can we assign

  • Create user-defined type

    Can I create a user-defined type with a range between 1 to 10. e.g. insert into table values (udt(11)) will prompt an error