Bug #4035

Update from 151a7 to 151a8 inconsistent/fails

Added by Predrag Zečević over 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:2013-08-12
Priority:NormalDue date:2014-02-06
Assignee:Jon Tibble% Done:

100%

Category:PKG (Image Packaging System)Estimated time:2.00 hours
Target version:-
Difficulty:Medium Tags:pkg

Description

Hi,

i have issues during update:

$ head -1 /etc/release
             OpenIndiana Development oi_151.1.7 X86 (powered by illumos)

When trying:

$ pkg publisher -n
PUBLISHER                             TYPE     STATUS   URI
openindiana.org                       origin   online   http://pkg.openindiana.org/dev/
sfe                                   origin   online   http://pkg.openindiana.org/sfe/
sfe-encumbered                        origin   online   http://pkg.openindiana.org/sfe-encumbered/

$ pfexec pkg refresh --full
$ pfexec pkg image-update -vn

only some packages are set to be updated:
            Packages to update:        35
     Estimated space available:  58.20 GB
Estimated space to be consumed: 103.52 MB
       Create boot environment:        No
Create backup boot environment:       Yes
          Rebuild boot archive:        No

Changed packages:
openindiana.org
  compress/xz
    5.0.3,5.11-0.151.1.7:20121003T223905Z -> 5.0.3,5.11-0.151.1.8:20130721T130349Z
  consolidation/SunVTS/SunVTS-incorporation
    0.5.11,5.11-0.151.1.7:20121003T222434Z -> 0.5.11,5.11-0.151.1.8:20130721T125047Z
  consolidation/cacao/cacao-incorporation
    0.5.11,5.11-0.151.1.7:20121003T222434Z -> 0.5.11,5.11-0.151.1.8:20130721T125047Z
  consolidation/dbtg/dbtg-incorporation
    0.5.11,5.11-0.151.1.7:20121003T223906Z -> 0.5.11,5.11-0.151.1.8:20130721T130350Z
  consolidation/gfx/gfx-incorporation
    0.5.11,5.11-0.151.1.7:20121003T222433Z -> 0.5.11,5.11-0.151.1.8:20130721T125047Z
  consolidation/jdmk/jdmk-incorporation
    0.5.11,5.11-0.151.1.7:20121003T222434Z -> 0.5.11,5.11-0.151.1.8:20130721T125047Z
  consolidation/man/man-incorporation
    0.5.11,5.11-0.151.1.7:20121003T222434Z -> 0.5.11,5.11-0.151.1.8:20130721T125047Z
  consolidation/nspg/nspg-incorporation
    0.5.11,5.11-0.151.1.7:20121003T222434Z -> 0.5.11,5.11-0.151.1.8:20130721T125047Z
  consolidation/solaris_re/solaris_re-incorporation
    0.5.11,5.11-0.151.1.7:20121003T222434Z -> 0.5.11,5.11-0.151.1.8:20130721T125047Z
  consolidation/ub_javavm/ub_javavm-incorporation
    0.5.11,5.11-0.151.1.7:20121003T223920Z -> 0.5.11,5.11-0.151.1.8:20130721T130403Z
  desktop/remote-desktop/turbovnc
    0.4,5.11-0.151.1.7:20121003T215415Z -> 0.4,5.11-0.151.1.8:20130721T122433Z
  developer/icu
    0.5.11,5.11-0.151.1.7:20121003T224004Z -> 0.5.11,5.11-0.151.1.8:20130721T130502Z
  developer/java/jdk
    0.5.11,5.11-0.151.1.7:20121003T224105Z -> 0.5.11,5.11-0.151.1.8:20130721T130600Z
  developer/java/jdk64
    0.5.11,5.11-0.151.1.7:20121003T224114Z -> 0.5.11,5.11-0.151.1.8:20130721T130610Z
  driver/network/ce
    0.5.11,5.11-0.151.1.7:20121003T215710Z -> 0.5.11,5.11-0.151.1.8:20130721T122714Z
  image/virtualgl
    2.1,5.11-0.151.1.7:20121003T220408Z -> 2.1,5.11-0.151.1.8:20130721T123138Z
  library/icu
    0.5.11,5.11-0.151.1.7:20121003T224539Z -> 0.5.11,5.11-0.151.1.8:20130721T131041Z
  library/idnkit
    0.5.11,5.11-0.151.1.7:20121003T224615Z -> 0.5.11,5.11-0.151.1.8:20130721T131117Z
  library/java/demo
    0.5.11,5.11-0.151.1.7:20121003T224618Z -> 0.5.11,5.11-0.151.1.8:20130721T131120Z
  library/java/demo64
    0.5.11,5.11-0.151.1.7:20121003T224625Z -> 0.5.11,5.11-0.151.1.8:20130721T131130Z
  library/java/host-config
    0.5.11,5.11-0.151.1.7:20121003T224625Z -> 0.5.11,5.11-0.151.1.8:20130721T131130Z
  library/java/javahelp
    0.5.11,5.11-0.151.1.7:20121003T224635Z -> 0.5.11,5.11-0.151.1.8:20130721T131142Z
  library/java/manual
    0.5.11,5.11-0.151.1.7:20121003T224638Z -> 0.5.11,5.11-0.151.1.8:20130721T131145Z
  library/python-2/mako-26
    0.4.1,5.11-0.151.1.7:20121003T224656Z -> 0.4.1,5.11-0.151.1.8:20130721T131201Z
  library/python-2/ply-26
    3.1,5.11-0.151.1.7:20121003T224657Z -> 3.1,5.11-0.151.1.8:20130721T131203Z
  library/python-2/pybonjour-26
    1.1.1,5.11-0.151.1.7:20121003T224659Z -> 1.1.1,5.11-0.151.1.8:20130721T131204Z
  package/pkgbuild
    1.3.104,5.11-0.151.1.7:20121003T224851Z -> 1.3.104,5.11-0.151.1.8:20130721T131358Z
  release/name
    0.5.11,5.11-0.151.1.7:20121003T221342Z -> 0.5.11,5.11-0.151.1.8:20130721T124004Z
  release/notices
    0.5.11,5.11-0.151.1.7:20121003T221342Z -> 0.5.11,5.11-0.151.1.8:20130721T124005Z
  runtime/java
    0.5.11,5.11-0.151.1.7:20121003T224903Z -> 0.5.11,5.11-0.151.1.8:20130721T131408Z
  runtime/java/runtime64
    0.5.11,5.11-0.151.1.7:20121003T224925Z -> 0.5.11,5.11-0.151.1.8:20130721T131429Z
  system/input-method/library/libchewing
    0.5.11,5.11-0.151.1.7:20121003T230601Z -> 0.5.11,5.11-0.151.1.8:20130721T133047Z
  system/input-method/library/libhangul
    0.5.11,5.11-0.151.1.7:20121003T230607Z -> 0.5.11,5.11-0.151.1.8:20130721T133054Z
  terminal/roxterm
    1.18.5,5.11-0.151.1.7:20121003T231426Z -> 1.18.5,5.11-0.151.1.8:20130721T133919Z
  terminal/urxvt
    9.12,5.11-0.151.1.7:20121003T231428Z -> 9.12,5.11-0.151.1.8:20130721T133920Z

So, it looks like i have somehow weird situation... I would expect, at least, package/pkg to be set for update:
$ pfexec pkg update package/pkg
No updates available for this image.   

Any idea what could be wrong (also have some packages installed from /sfe and /sfe-encumbered repositories) ?

Regards.

pkg-debug.zip - http://wiki.openindiana.org/oi/Troubleshooting+image-update+failures (55.2 KB) Predrag Zečević, 2013-08-14 01:58 PM

History

#1 Updated by Predrag Zečević over 4 years ago

I did run updates (it has created backup BE) and booted into...
After that, i have tried to update again and got:

$ pfexec pkg refresh --full && pfexec pkg image-update -vn
Creating Plan -                        
pkg update: No solution was found to satisfy constraints
Plan Creation: Package solver has not found a solution to update to latest available versions.
This may indicate an overly constrained set of packages are installed.

latest incorporations:

  pkg://openindiana.org/consolidation/jdmk/jdmk-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/gnome_l10n/gnome_l10n-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/cde/cde-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.151.1.8:20130721T130357Z
  pkg://openindiana.org/consolidation/ips/ips-incorporation@0.5.11,5.11-0.151.1.8:20130721T130353Z
  pkg://openindiana.org/entire@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/cacao/cacao-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/xvm/xvm-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/gfx/gfx-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/nspg/nspg-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/hcts/hcts-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/man/man-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/sunpro/sunpro-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/cns/cns-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/nvidia/nvidia-incorporation@0.5.11,5.11-0.151.1.8:20130721T130356Z
  pkg://openindiana.org/consolidation/X/X-incorporation@0.5.11,5.11-0.151.1.8:20130721T130405Z
  pkg://openindiana.org/consolidation/gnome/gnome-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/SunVTS/SunVTS-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/solaris_re/solaris_re-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
  pkg://openindiana.org/consolidation/l10n/l10n-incorporation@0.5.11,5.11-0.151.1.8:20130721T130354Z
  pkg://openindiana.org/consolidation/sic_team/sic_team-incorporation@0.5.11,5.11-0.151.1.8:20130721T130402Z
  pkg://openindiana.org/consolidation/install/install-incorporation@0.5.11,5.11-0.151.1.8:20130721T130351Z

The following indicates why the system cannot update to the latest version:

  No suitable version of required package pkg://openindiana.org/consolidation/gnome/gnome-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z found:
    Reject:  pkg://openindiana.org/consolidation/gnome/gnome-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z
    Reason:  A version for 'incorporate' dependency on pkg:/library/python-2/pysqlite-24@0.5.11,5.11-0.151.1.8 cannot be found

$ pkg search -r pkg:/library/python-2/pysqlite-24

Returns NO RESULT - so some dependency is broken (booted back in old BE).

Anybody?
Regards.

#2 Updated by Ken Mays over 4 years ago

  • Assignee set to Jon Tibble

#3 Updated by Jon Tibble over 4 years ago

  • Status changed from New to Feedback

Please use the process here to debug:

http://wiki.openindiana.org/oi/Troubleshooting+image-update+failures

Please attach the log file to the ticket.

#4 Updated by Predrag Zečević over 4 years ago

Hi Jon,

I have created pkg-debug.log file according to guide. What is funny, no problems are found:

$ egrep "(FAIL|OBSOLETE)" pkg-debug.log
[returns nothing]

BUT, since this was OpenSolaris (once upon time), there are plenty of "cannot be found" errors:

$ grep "cannot be found" pkg-debug.log > pkg-debug.cannot_be_found.log
$ wc -l pkg-debug.cannot_be_found.log
317 pkg-debug.cannot_be_found.log

Here, unique list of packages making trouble:

$ awk '{print $8 }' pkg-debug.cannot_be_found.log | cut -d "@" -f 1 | sort -u
pkg:/database/mysql-5
pkg:/database/mysql-5/connector/jdbc
pkg:/database/mysql-5/tests
pkg:/release/copyright
pkg:/SUNWapch22m-php52
pkg:/SUNWced
pkg:/SUNWghostscript
pkg:/SUNWgutenprint
pkg:/SUNWnet-snmp-addons
pkg:/SUNWnet-snmp-core
pkg:/SUNWnet-snmp-doc
pkg:/SUNWnet-snmp-utils
pkg:/SUNWphp52
pkg:/SUNWphp52-mysql
pkg:/SUNWphp52d
pkg:/system/ipmi/ipmitool
pkg:/web/library/apache/apr-13
pkg:/web/library/apache/apr-13/documentation
pkg:/web/library/apache/apr-util-13
pkg:/web/library/apache/apr-util-13/apr-ldap
pkg:/web/library/apache/apr-util-13/dbd-mysql
pkg:/web/library/apache/apr-util-13/dbd-pgsql
pkg:/web/library/apache/apr-util-13/dbd-sqlite
pkg:/web/library/apache/apr-util-13/documentation
pkg:/web/server/apache-22/plugin/plugin-dtrace
pkg:/web/server/apache-22/plugin/plugin-fastcgi
pkg:/web/server/apache-22/plugin/plugin-html-plugin
pkg:/web/server/apache-22/plugin/plugin-php52
pkg:/web/server/apache-22/plugin/plugin-security
pkg:/web/server/apache-22/plugin/plugin-sed
pkg:/web/server/apache-22/plugin/plugin-tomcat
pkg:/web/server/apache-22/plugin/plugin-xml2enc
pkg:/web/server/lighttpd

Should i remove those packages?

Regards.

P.S. Attached file contains both pkg-debug.log AND pkg-debug.cannot_be_found.log files.

#5 Updated by Predrag Zečević over 4 years ago

So,

which directions i have to take:
a) to wait for solution
b) do fresh install and merge changes
?

Regards.

#6 Updated by Predrag Zečević about 4 years ago

Hi,

funny enough, i was able to update packages, after move to /hipster:

Made clone of current BE and boot into (so I can revert):

beadm create -d "IO dev to hipster move" OI_151a7_dev2hipster

After reboot into dev2hipster, changed publisher:

pfexec pkg unset-publisher openindiana.org
pfexec pkg set-publisher -O http://pkg.openindiana.org/hipster openindiana.org
pfexec pkg update -v --be-name OI_151a8_hipster

Update failed because of conflicts between /sfe and /hipster repository, so removed:

pfexec pkg uninstall -v pkg://sfe/library/geoip pkg://sfe/library/g++/libtorrent-rasterbar  pkg://sfe/desktop/torrent/qbittorrent

Step above (pkg update) created new BE (OI_151a8_hipster), so rebooted into.

Regards.

P.S. I will try to run /hipster distribution for couple of days (i like idea of using MariaDB instead MySQL, but still missing Apache 2.4 - that would be proper version for Hipster repository)

#7 Updated by Ken Mays almost 4 years ago

  • Due date set to 2014-02-06
  • Tags changed from needs-triage to pkg
  • Estimated time set to 2.00
  • % Done changed from 0 to 100
  • Status changed from Feedback to Closed
  • Category set to PKG (Image Packaging System)

Tested. Upgrades from a7->a9 successful. Currently, changes being made to test migrations from oi_151a(0-9,dev) to /hipster. Apache 2.4.7 being added at a later date to hipster.

"Be sure to have openindiana sticky, opensolaris (if still installed)
non-sticky, sfe non-sticky, sfe-encumbered sticky, the rest should be
non-sticky."

Also available in: Atom