installation was interrupted by an strange error

image

it happened in package installation step, the log showed that the loop filesystem’s rw property had been changed during the installation process, but I think it’s not packages’ fault, as the error happened with different packages in different running. it may have something to do with libzypp, according the log. the following is log section just before the error and after last successfully package installation:

=============================================================

2011-08-10 12:53:15 <1> linux(2993) [zypp] PackageProvider.cc(providePackage):119 provide Package (2055)perl-5.12.3-11.14.1.i586(openSUSE-11.4-11.4-0)

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:53:15 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):251 [1]./suse/i586/perl-5.12.3-11.14.1.i586.rpm{5.7 MiB|sha1-444cae18cdffd709fb9e1e54d0c3ea9a41785a55}

2011-08-10 12:53:15 <1> linux(2993) [zypp:fetcher++] Fetcher.cc(addCachePath):319 Adding fetcher cache: ‘/var/cache/zypp/packages/openSUSE-11.4-11.4-0’.

2011-08-10 12:53:15 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):271 Added cache path /var/cache/zypp/packages/openSUSE-11.4-11.4-0

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:53:15 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):281 Providing file of repo ‘openSUSE-11.4-11.4-0’ from iso:///?iso=installation.iso&url=hd:/opensuse/install?device=/dev/disk/by-id/ata-VMware_Virtual_IDE_Hard_Drive_01000000000000000001-part2

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:53:15 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:53:15 <1> linux(2993) [zypp:fetcher] Fetcher.cc(downloadAndReadIndexList):716 No indexes to read.

2011-08-10 12:53:15 <1> linux(2993) [zypp:fetcher] Fetcher.cc(provideFromCache):350 start fetcher with 1 cache directories.

2011-08-10 12:53:15 <1> linux(2993) [zypp:fetcher] Fetcher.cc(provideToDest):548 Not found in cache, downloading

2011-08-10 12:53:15 <1> linux(2993) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide  file ./suse/i586/perl-5.12.3-11.14.1.i586.rpm from media number 1

2011-08-10 12:53:15 <1> linux(2993) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(10): desired (cached)

2011-08-10 12:53:15 <1> linux(2993) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(10): desired (cached)

2011-08-10 12:53:15 <1> linux(2993) [zypp++] MediaHandler.cc(provideFile):971 provideFile(./suse/i586/perl-5.12.3-11.14.1.i586.rpm)

2011-08-10 12:53:15 <1> linux(2993) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(10): desired (cached)

2011-08-10 12:53:15 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):229 Executing ‘/bin/cp’ ‘—remove-destination’ ‘—’ ‘/mnt/var/tmp/AP_0x00000001/suse/i586/perl-5.12.3-11.14.1.i586.rpm’ ‘/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm’

2011-08-10 12:53:15 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):381 pid 4626 launched

2011-08-10 12:53:16 <1> linux(2993) [zypp++] ExternalProgram.cc(checkStatus):482 Pid 4626 successfully completed

2011-08-10 12:53:16 <1> linux(2993) [zypp] PathInfo.cc(copy):783 hardlinkCopy /mnt/var/tmp/AP_0x00000001/suse/i586/perl-5.12.3-11.14.1.i586.rpm -> /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpmcopy /mnt/var/tmp/AP_0x00000001/suse/i586/perl-5.12.3-11.14.1.i586.rpm -> /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm 

2011-08-10 12:53:16 <1> linux(2993) [zypp++] MediaSetAccess.cc(releaseFile):85 Going to release file ./suse/i586/perl-5.12.3-11.14.1.i586.rpm from media number 1

2011-08-10 12:53:16 <1> linux(2993) [zypp++] MediaHandler.cc(checkAttached):518 Mount table changed - rereading it

2011-08-10 12:53:16 <1> linux(2993) [zypp++] MediaHandler.cc(checkAttached):543 Found media device iso</dev/loop12[7,12]> in the mount table as /dev/loop12

2011-08-10 12:53:16 <1> linux(2993) [zypp:fetcher] Fetcher.cc(validate):392 Checking job [/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm] (1 checkers )

2011-08-10 12:53:16 <1> linux(2993) [Progress++] ProgressData.cc(report):86 {#139|}END

2011-08-10 12:53:16 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):330 provideFile at /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm

2011-08-10 12:53:16 <3> linux(2993) [Interpreter] PackageSlideShow.ycp:1051 division by zero

2011-08-10 12:53:16 <1> linux(2993) [YCP] PackageSlideShow.ycp:1051 Downloaded 98/0 packages (<NULL>%)

2011-08-10 12:53:16 <1> linux(2993) [zypp] PackageProvider.cc(providePackage):170 provided Package (2055)perl-5.12.3-11.14.1.i586(openSUSE-11.4-11.4-0) at /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm

2011-08-10 12:53:16 <5> linux(2993) [YCP] PackageSlideShow.ycp:1177 pkg_name: perl

2011-08-10 12:53:16 <1> linux(2993) [Pkg] PackageSlideShow.ycp:1209 Pkg Builtin called: PkgInstalled

2011-08-10 12:53:16 <1> linux(2993) [Pkg] Package.cc(searchPackage):576 Package ‘perl’ installed: false

2011-08-10 12:53:16 <1> linux(2993) [zypp] RpmDb.cc(doInstallPackage):1708 RpmDb::installPackage(/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm,0x0000000c)

2011-08-10 12:53:16 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):229 Executing ‘rpm’ ‘—root’ ‘/mnt’ ‘—dbpath’ ‘/var/lib/rpm’ ‘-U’ ‘—percent’ ‘—force’ ‘—nodeps’ ‘—’ ‘/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm’

2011-08-10 12:53:16 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):381 pid 4627 launched

2011-08-10 12:53:20 <2> linux(2993) [zypp] ExternalProgram.cc(checkStatus):495 Pid 4627 was killed by signal 11 (Segmentation fault)

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 RpmDb.cc(doInstallPackage):1825 THROW:    Subprocess failed. Error: RPM 失败:rpmdb: fsync Input/output error

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: db3 error(5) from db->sync: Input/output error

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: fsync Input/output error

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: db3 error(5) from db->sync: Input/output error

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: write: 0x80ca9dc, 4096: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Name: write failed for page 0

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Name: unable to flush page: 0

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: db3 error(30) from db->sync: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: ftruncate: 167936: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: db3 error(30) from dbcursor->c_put: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: error(30) storing record Semaphore.pm into Basenames

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: write: 0x816d2fc, 4096: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Basenames: write failed for page 1

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Basenames: unable to flush page: 1

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: db3 error(30) from db->sync: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: write: 0x823bb54, 4096: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Group: write failed for page 2

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Group: unable to flush page: 2

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: db3 error(30) from db->sync: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: write: 0x80d2314, 4096: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Requirename: write failed for page 0

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: Requirename: unable to flush page: 0

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 error: db3 error(30) from db->sync: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 rpmdb: ftruncate: 81920: Read-only file system

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 

2011-08-10 12:53:20 <5> linux(2993) [zypp] Exception.cc(log):137 

2011-08-10 12:53:20 <1> linux(2993) [YCP] PackageCallbacks.ycp:537 DonePackage(error: 3, reason: ‘Subprocess failed. Error: RPM 失败:rpmdb: fsync Input/output error

error: db3 error(5) from db->sync: Input/output error

rpmdb: fsync Input/output error

error: db3 error(5) from db->sync: Input/output error

rpmdb: write: 0x80ca9dc, 4096: Read-only file system

rpmdb: Name: write failed for page 0

rpmdb: Name: unable to flush page: 0

error: db3 error(30) from db->sync: Read-only file system

rpmdb: ftruncate: 167936: Read-only file system

error: db3 error(30) from dbcursor->c_put: Read-only file system

error: error(30) storing record Semaphore.pm into Basenames

rpmdb: write: 0x816d2fc, 4096: Read-only file system

rpmdb: Basenames: write failed for page 1

rpmdb: Basenames: unable to flush page: 1

error: db3 error(30) from db->sync: Read-only file system

rpmdb: write: 0x823bb54, 4096: Read-only file system

rpmdb: Group: write failed for page 2

rpmdb: Group: unable to flush page: 2

error: db3 error(30) from db->sync: Read-only file system

rpmdb: write: 0x80d2314, 4096: Read-only file system

rpmdb: Requirename: write failed for page 0

rpmdb: Requirename: unable to flush page: 0

error: db3 error(30) from db->sync: Read-only file system

rpmdb: ftruncate: 81920: Read-only file system

’)

2011-08-10 12:53:20 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F9 for YPushButton “Abort” at 0x9f607dc from button role YCancelButton

2011-08-10 12:53:20 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F10 for YPushButton “Ignore” at 0x9f79404 from button role YOKButton

2011-08-10 12:53:30 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F9 for YPushButton “Abort” at 0x9e8f624 from button role YCancelButton

2011-08-10 12:53:30 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F10 for YPushButton “Ignore” at 0x9e940b4 from button role YOKButton

2011-08-10 12:54:15 <1> linux(2993) [YCP] PackageCallbacks.ycp:612 DonePackage `retry

2011-08-10 12:54:15 <3> linux(2993) [zypp] HistoryLog.cc(openLog):86 Could not open logfile ‘/mnt/var/log/zypp/history’

2011-08-10 12:54:15 <1> linux(2993) [zypp] RpmDb.cc(doInstallPackage):1708 RpmDb::installPackage(/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm,0x0000000c)

2011-08-10 12:54:15 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):229 Executing ‘rpm’ ‘—root’ ‘/mnt’ ‘—dbpath’ ‘/var/lib/rpm’ ‘-U’ ‘—percent’ ‘—force’ ‘—nodeps’ ‘—’ ‘/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm’

2011-08-10 12:54:15 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):381 pid 4628 launched

2011-08-10 12:54:15 <1> linux(2993) [zypp++] ExternalProgram.cc(checkStatus):475 Pid 4628 exited with status 1

2011-08-10 12:54:15 <5> linux(2993) [zypp] Exception.cc(log):137 RpmDb.cc(doInstallPackage):1825 THROW:    Subprocess failed. Error: RPM 失败:error: can’t create transaction lock on /mnt/var/lib/rpm/.rpm.lock (Read-only file system)

2011-08-10 12:54:15 <5> linux(2993) [zypp] Exception.cc(log):137 

2011-08-10 12:54:15 <5> linux(2993) [zypp] Exception.cc(log):137 

2011-08-10 12:54:15 <1> linux(2993) [YCP] PackageCallbacks.ycp:537 DonePackage(error: 3, reason: ‘Subprocess failed. Error: RPM 失败:error: can’t create transaction lock on /mnt/var/lib/rpm/.rpm.lock (Read-only file system)

’)

2011-08-10 12:54:15 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F9 for YPushButton “Abort” at 0x9f59cec from button role YCancelButton

2011-08-10 12:54:15 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F10 for YPushButton “Ignore” at 0x9f6785c from button role YOKButton

2011-08-10 12:55:51 <1> linux(2993) [YCP] PackageCallbacks.ycp:612 DonePackage `ignore

2011-08-10 12:55:51 <1> linux(2993) [ui] YPushButton.cc(setFunctionKey):204 Guessing button role YOKButton for YPushButton “OK” at 0x8ecccd4 from function key F10

2011-08-10 12:55:54 <1> linux(2993) [YCP] PackageSlideShow.ycp:938 src #0: [803201024]

2011-08-10 12:55:54 <3> linux(2993) [zypp] HistoryLog.cc(openLog):86 Could not open logfile ‘/mnt/var/log/zypp/history’

2011-08-10 12:55:54 <1> linux(2993) [zypp] PathInfo.cc(unlink):670 unlink /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/perl-5.12.3-11.14.1.i586.rpm

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp] PackageProvider.cc(providePackage):119 provide Package (1862)ncurses-utils-5.7-14.1.i586(openSUSE-11.4-11.4-0)

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):251 [1]./suse/i586/ncurses-utils-5.7-14.1.i586.rpm{85.0 KiB|sha1-cce438430574a92d3923d732d84e4d108e2e8e9e}

2011-08-10 12:55:54 <1> linux(2993) [zypp:fetcher++] Fetcher.cc(addCachePath):319 Adding fetcher cache: ‘/var/cache/zypp/packages/openSUSE-11.4-11.4-0’.

2011-08-10 12:55:54 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):271 Added cache path /var/cache/zypp/packages/openSUSE-11.4-11.4-0

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):281 Providing file of repo ‘openSUSE-11.4-11.4-0’ from iso:///?iso=installation.iso&url=hd:/opensuse/install?device=/dev/disk/by-id/ata-VMware_Virtual_IDE_Hard_Drive_01000000000000000001-part2

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(D):92 DBACCESS {NULL(/mnt)/var/lib/rpm}

2011-08-10 12:55:54 <1> linux(2993) [zypp++] librpmDb.cc(dbRelease):303 dbRelease: release, outstanding 0

2011-08-10 12:55:54 <1> linux(2993) [zypp:fetcher] Fetcher.cc(downloadAndReadIndexList):716 No indexes to read.

2011-08-10 12:55:54 <1> linux(2993) [zypp:fetcher] Fetcher.cc(provideFromCache):350 start fetcher with 1 cache directories.

2011-08-10 12:55:54 <1> linux(2993) [zypp:fetcher] Fetcher.cc(provideToDest):548 Not found in cache, downloading

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide  file ./suse/i586/ncurses-utils-5.7-14.1.i586.rpm from media number 1

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaHandler.cc(checkAttached):518 Mount table changed - rereading it

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaHandler.cc(checkAttached):543 Found media device iso</dev/loop12[7,12]> in the mount table as /dev/loop12

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(10): desired (cached)

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(10): desired (cached)

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaHandler.cc(provideFile):971 provideFile(./suse/i586/ncurses-utils-5.7-14.1.i586.rpm)

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(10): desired (cached)

2011-08-10 12:55:54 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):229 Executing ‘/bin/cp’ ‘—remove-destination’ ‘—’ ‘/mnt/var/tmp/AP_0x00000001/suse/i586/ncurses-utils-5.7-14.1.i586.rpm’ ‘/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpm’

2011-08-10 12:55:54 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):381 pid 4631 launched

2011-08-10 12:55:54 <1> linux(2993) [zypp++] ExternalProgram.cc(checkStatus):482 Pid 4631 successfully completed

2011-08-10 12:55:54 <1> linux(2993) [zypp] PathInfo.cc(copy):783 hardlinkCopy /mnt/var/tmp/AP_0x00000001/suse/i586/ncurses-utils-5.7-14.1.i586.rpm -> /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpmcopy /mnt/var/tmp/AP_0x00000001/suse/i586/ncurses-utils-5.7-14.1.i586.rpm -> /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpm 

2011-08-10 12:55:54 <1> linux(2993) [zypp++] MediaSetAccess.cc(releaseFile):85 Going to release file ./suse/i586/ncurses-utils-5.7-14.1.i586.rpm from media number 1

2011-08-10 12:55:54 <1> linux(2993) [zypp:fetcher] Fetcher.cc(validate):392 Checking job [/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpm] (1 checkers )

2011-08-10 12:55:54 <1> linux(2993) [Progress++] ProgressData.cc(report):86 {#140|}END

2011-08-10 12:55:54 <1> linux(2993) [zypp] RepoProvideFile.cc(provideFile):330 provideFile at /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpm

2011-08-10 12:55:54 <3> linux(2993) [Interpreter] PackageSlideShow.ycp:1051 division by zero

2011-08-10 12:55:54 <1> linux(2993) [YCP] PackageSlideShow.ycp:1051 Downloaded 99/0 packages (<NULL>%)

2011-08-10 12:55:54 <1> linux(2993) [zypp] PackageProvider.cc(providePackage):170 provided Package (1862)ncurses-utils-5.7-14.1.i586(openSUSE-11.4-11.4-0) at /var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpm

2011-08-10 12:55:54 <5> linux(2993) [YCP] PackageSlideShow.ycp:1177 pkg_name: ncurses-utils

2011-08-10 12:55:54 <1> linux(2993) [Pkg] PackageSlideShow.ycp:1209 Pkg Builtin called: PkgInstalled

2011-08-10 12:55:54 <1> linux(2993) [Pkg] Package.cc(searchPackage):576 Package ‘ncurses-utils’ installed: false

2011-08-10 12:55:54 <3> linux(2993) [zypp] HistoryLog.cc(openLog):86 Could not open logfile ‘/mnt/var/log/zypp/history’

2011-08-10 12:55:54 <1> linux(2993) [zypp] RpmDb.cc(doInstallPackage):1708 RpmDb::installPackage(/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpm,0x0000000c)

2011-08-10 12:55:54 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):229 Executing ‘rpm’ ‘—root’ ‘/mnt’ ‘—dbpath’ ‘/var/lib/rpm’ ‘-U’ ‘—percent’ ‘—force’ ‘—nodeps’ ‘—’ ‘/var/cache/zypp/packages/openSUSE-11.4-11.4-0/suse/i586/ncurses-utils-5.7-14.1.i586.rpm’

2011-08-10 12:55:54 <1> linux(2993) [zypp++] ExternalProgram.cc(start_program):381 pid 4632 launched

2011-08-10 12:55:54 <1> linux(2993) [zypp++] ExternalProgram.cc(checkStatus):475 Pid 4632 exited with status 1

2011-08-10 12:55:54 <5> linux(2993) [zypp] Exception.cc(log):137 RpmDb.cc(doInstallPackage):1825 THROW:    Subprocess failed. Error: RPM 失败:error: can’t create transaction lock on /mnt/var/lib/rpm/.rpm.lock (Read-only file system)

2011-08-10 12:55:54 <5> linux(2993) [zypp] Exception.cc(log):137 

2011-08-10 12:55:54 <5> linux(2993) [zypp] Exception.cc(log):137 

2011-08-10 12:55:54 <1> linux(2993) [YCP] PackageCallbacks.ycp:537 DonePackage(error: 3, reason: ‘Subprocess failed. Error: RPM 失败:error: can’t create transaction lock on /mnt/var/lib/rpm/.rpm.lock (Read-only file system)

’)

2011-08-10 12:55:54 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F9 for YPushButton “Abort” at 0x9f48a34 from button role YCancelButton

2011-08-10 12:55:54 <1> linux(2993) [ui] YPushButton.cc(setRole):172 Guessing function key F10 for YPushButton “Ignore” at 0x9f7b0dc from button role YOKButton

weekly report #8

during the past week, I was debugging the installation process and working on openSUSE’s boot loader, the current situation is: the first stage installation could be done successfully, the problem comes up after rebooting, after choose openSUSE OS entry in windows loader menu, the grub legacy in openSUSE’s virtual disk won’t work with the virtual disks, so I was modifying the init scripts and test, the modification has not finished yet, please wait… :(

weekly report #7

during the last week, I was fixing the loop device problem, the result is we can get the installation process work for this installation method, that is installing the system to a file in windows partition.

I was learning yast2 modules in inst-sys, and modified some of them so that the installation would work. and got the reason why previous test did not work: as the modules umount-ed all devices after got the parameter — the loop device name, so wouldn’t find it after re-detecting the targets then.

my solution is modifying the code process the suggested device by our preseed file, if it is a looped device, then do some special steps…

this week I will keep going and solve this problem totally.

weekly report #6

in the past week, I was focusing on virtual disks problem, that’s how to get ready the hard disk devices for installation or booting. the main idea is loop-mounting the disks before installation or booting, I tried to add hooks in autoyast control file(pre/post scripts), but it did not work smoothly; another method is to modify yast2 so that it recognize the loop device specified in the control file.

  I was trying the hook method last week, the installation experiments were time-consuming, I ‘m still tried this to get the exact reason that it didn’t work, and also I’m reading related code of yast2 and trying to modify it.

weekly report #5

during the past week, I was focusing on the booting problems and auto-installation mechanism, I’ve learnt linuxrc related things and autoyast control file, and integrate these into wlbi code:

    * the installation could boot from iso image from windows partition;

    * the automatic installation process could be activated by wlbi program.

  the next problem to solve is the loop device, I’ll try to do some things to linuxrc or autoyast pre/post scripts so the virtual disks would work. 

about the “init” program in initrd

the current problem is it’s hard to patch to the init program in initrd, as it’s a single binary program, it does all things in one:detect devices/load driver/init environment/load installation progress/… and so on, it’s very difficult to intervene in the process. if we could break it into pieces and join them with scripts, it’ll be much more convenient.

how to load iso files as dvd image.

after init program starts to running, it’ll find that there is no media in CD drive, then it’ll ask us for it, we just press back in the menu and follow the menu, get a bash shell finally, in the shell, type in following commands:

  rm /dev/sr0 #means remove the original dvd node

  ln /dev/loop7 /dev/sr0 #link to a loop device

  mkdir /host

  usr/bin/ntfs-3g /dev/sda5 /host #mount windows partition

  losetup /dev/loop7 /host/opensuse/install/installation.iso

Porting Wubi to OpenSUSE [midterm report]

here is an overview of my project:
 work has been done:
   * wubi program has been modified so that it could do the first installation
stage work for openSUSE, including iso image download/validation, creation
of related files in windows, and collection information for automatic
installation.
after the windows program running and exit, there will be an install entry in
windows boot menu, the automatic installation would follow that entry.

 work to do:
   * patch the init program so that it could recognize virtual disks which are
regular files under widows.
   * create customized autoyast control file to support automatic installation.

 current problem:
   * the “init” program in initrd is a single binary program (in
Ubuntu it’s a shell
script), which is hard to patch on the fly.

 if you have any suggestion or comment, please do not hesitate to send me:)

weekly report #3

the windows’ side of this app works fine now, that means the tool will do the preparation work like download and check iso image, create virtual disk file, create installation entry and so on. the left work is done after reboot — the real installation progress, that’s the main part I was/am focusing on.

during the past week, I was focusing on modification of boot settings, as there is no detailed log info for boot progress, the project did not evolve very smoothly:( problem is that installer can not create loop device successfully after reboot. I will try my best to solve this problem in this week.

weekly report #2

things done:

    1. the tool could download openSUSE’s metalink file and parse it successfully, if not finding any openSUSE ISO images on local disks, it will download it automatically.

    2. modification on ISO or CD image validation has been made so that it could work with openSUSE’s images

    in short, this tool could recognize openSUSE’s ISO image and important parts of its content.

things to do:

    1. modify the boot setting module, as Ubuntu uses grub2, but openSUSE and lots of Linux distributions use grub, that means we need grub4dos like tools to boot from virtual disk.

    2. more test

    3. openSUSE’s automatic installation, need a general autoYaST configuration.

PS. I will switch to my home work and exams in the following two weeks, so don’t surprise that I will be inactive those days, I will come back:)