We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

aktualizacja mysql gentoo


ollerm
18-10-2009, 17:33
no możnaby ale nie mam serwerka na którym mógłbym testować Release 2

thom
18-10-2009, 16:14
Twoja dociekliwość także powinna być nagrodzona. Idąc za wskazówkami Boreca zrobiłem update (mam nadzieję szczęśliwy) serwerka, ale fajnie jakby ktoś to zebrał z wszystkimi pułapkami także w kwestii instalowania PHP, MySQL, Postgresql i umieścił jako opis krok po kroku jak powinno się robić update serwera Gentoo Release 2.

gonzek
13-05-2009, 21:32
OK, w końcu z pomocą Adriana się udało. Dzięki wszystkim za pomoc.

ollerm
13-05-2009, 01:27
no niestety partycje trzeba robić z głową
może w my.cnf masz właczoną opcje log-bin? zakomentuj ją. niepotrzebnie zżera miejsce. i z /var/lib/mysql/ wywal duże pliki *.bin

no a aktualizacje wypadałoby robić w miare często, potem są cyrki jak do aktualizacji jest 666 paczek.

samo /usr/portage zajmuje ok 800 MB, można się pokusić o przejście na squashfs i pokombinować z portage, wtedy portage ma kilkadziesiąt MB

#edit.. no i nie zapominaj o update-etc po aktualizacji

uetam
12-05-2009, 22:29
/dev/sda1 2,9G 2,9G 0 100% /
Przenies i przelinkuj portage do /home ?

gonzek
12-05-2009, 21:56
Cytat Napisał borec
Ziom, ale czytaj komunikaty, jak byk napisane:
Kod:
* Please run: FEATURES=-unmerge-orphans emerge cracklib
Racja, mój błąd... Byłem już strasznie zirytowany tym, że ciągle coś jest nie-tak, nie przeczytałem tego nawet.. Po wykonaniu tego polecenia ponowne emerge -uD system rozpoczęło pracę, ale...
IOError: [Errno 28] No space left on device
Mimo zastosowania się do większości porad, które znalazłem na forum problem powraca przy uaktualnianiu systemu. Co mogę zrobić?
ks25208 tmp # df -h
System plików rozm. użyte dost. %uż. zamont. na
/dev/sda1 2,9G 2,9G 0 100% /
udev 988M 172K 988M 1% /dev
/dev/sda2 226G 8,8G 206G 5% /home
shm 988M 0 988M 0% /dev/shm
ks25208 tmp # du -bh /var/log/
31K /var/log/clamav
145M /var/log/httpd
2,6M /var/log/mysql
4,0K /var/log/news
13M /var/log/qmail
7,2M /var/log/qmailpop3
4,6M /var/log/qmailsmtp
4,0K /var/log/sandbox
4,0K /var/log/watchdog
106K /var/log/webmin
40K /var/log/portage/elog
44K /var/log/portage
234M /var/log/

gonzek
12-05-2009, 20:22
Cytat Napisał uetam
Man-pages to takie ukryte jadro. Po restarcie nie wstanie :>
Nie rób już ze mnie większego idioty jakim jestem :P

>>> Installing sys-libs/gdbm-1.8.3-r3

>>> Emerging (51 of 79) sys-libs/cracklib-2.8.13
* cracklib-2.8.13.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* This profile has not been tested thoroughly and is not considered to be
* a supported server profile at this time. For a supported server
* profile, please check the Hardened project (http://hardened.gentoo.org).

* This profile is merely a convenience for people who require a more
* minimal profile, yet are unable to use hardened due to restrictions in
* the software being used on the server. This profile should also be used
* if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
* applies to you, then it doesn't and you should probably be using
* Hardened, instead.

* Upgrade path is broken with FEATURES=unmerge-orphans
* Please run: FEATURES=-unmerge-orphans emerge cracklib
*
* ERROR: sys-libs/cracklib-2.8.13 failed.
* Call stack:
* ebuild.sh, line 48: Called pkg_setup
* cracklib-2.8.13.ebuild, line 26: Called die
* The specific snippet of code:
* die "Please run: FEATURES=-unmerge-orphans emerge cracklib"
* The die message:
* Please run: FEATURES=-unmerge-orphans emerge cracklib
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-libs/cracklib-2.8.13/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/cracklib-2.8.13/temp/die.env'.
*

>>> Failed to emerge sys-libs/cracklib-2.8.13, Log file:

>>> '/var/tmp/portage/sys-libs/cracklib-2.8.13/temp/build.log'

* Messages for package dev-libs/expat-2.0.1-r1:

* Please note that the soname of the library changed!
* If you are upgrading from a previous version you need
* to fix dynamic linking inconsistencies by executing:
* revdep-rebuild -X --library libexpat.so.0

* Messages for package sys-libs/timezone-data-2009c:

* You do not have TIMEZONE set in /etc/conf.d/clock.
* Skipping auto-update of /etc/localtime.

* Messages for package sys-apps/baselayout-1.12.11.1:

* The default setting for wiping /tmp has been set to 'yes'.
* Consult /etc/conf.d/bootmisc for more information.

* Messages for package sys-fs/udev-124-r2:

*
* persistent-net does assigning fixed names to network devices.
* If you have problems with the persistent-net rules,
* just delete the rules file
* rm /etc/udev/rules.d/70-persistent-net.rules
* and then reboot.
*
* This may however number your devices in a different way than they are now.
* If you build an initramfs including udev, then please
* make sure that the /sbin/udevadm binary gets included,
* as the helper apps udevinfo, udevtrigger, ... are now
* only symlinks to udevadm.
*
* mount options for directory /dev are no longer
* set in /etc/udev/udev.conf, but in /etc/fstab
* as for other directories.
*
* For more information on udev on Gentoo, writing udev rules, and
* fixing known issues visit:
* http://www.gentoo.org/doc/en/udev-guide.xml

* Messages for package sys-auth/pambase-20081028:

* Starting from version 20080801, pambase optionally enables
* SHA512-hashed passwords. For this to work, you need sys-libs/pam-1.0.1
* built against sys-libs/glibc-2.7 or later.
* If you don't have support for this, it will automatically fallback
* to MD5-hashed passwords, just like before.
*
* Please note that the change only affects the newly-changed passwords
* and that SHA512-hashed passwords will not work on earlier versions
* of glibc or Linux-PAM.

* Messages for package app-misc/ca-certificates-20080809:

* You should run update-ca-certificates manually after etc-update
* Broken symlink for a certificate at /etc/ssl/certs/408e388a.0
* Broken symlink for a certificate at /etc/ssl/certs/5f5e5caa.0
* Broken symlink for a certificate at /etc/ssl/certs/61f6c934.0
* Broken symlink for a certificate at /etc/ssl/certs/6c55cf77.0
* Broken symlink for a certificate at /etc/ssl/certs/Verisign_Class_1_Public_Primary_OCSP_Responder.pem
* Broken symlink for a certificate at /etc/ssl/certs/Verisign_Class_2_Public_Primary_OCSP_Responder.pem
* Broken symlink for a certificate at /etc/ssl/certs/Verisign_Class_3_Public_Primary_OCSP_Responder.pem
* Broken symlink for a certificate at /etc/ssl/certs/Verisign_Secure_Server_OCSP_Responder.pem
* Broken symlink for a certificate at /etc/ssl/certs/e28f6bbc.0
* Broken symlink for a certificate at /etc/ssl/certs/spi-ca.pem
* You MUST remove the above broken symlinks
* Otherwise any SSL validation that use the directory may fail!
* To batch-remove them, run:
* find -L /etc/ssl/certs/ -type l -exec rm {} +

* Messages for package sys-libs/cracklib-2.8.13:

* Upgrade path is broken with FEATURES=unmerge-orphans
* Please run: FEATURES=-unmerge-orphans emerge cracklib
*
* ERROR: sys-libs/cracklib-2.8.13 failed.
* Call stack:
* ebuild.sh, line 48: Called pkg_setup
* cracklib-2.8.13.ebuild, line 26: Called die
* The specific snippet of code:
* die "Please run: FEATURES=-unmerge-orphans emerge cracklib"
* The die message:
* Please run: FEATURES=-unmerge-orphans emerge cracklib
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-libs/cracklib-2.8.13/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/cracklib-2.8.13/temp/die.env'.
*

* Regenerating GNU info directory index...
* Processed 116 info files.

* IMPORTANT: 46 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
I co dalej?

uetam
12-05-2009, 19:17
Man-pages to takie ukryte jadro. Po restarcie nie wstanie :>

gonzek
12-05-2009, 19:09
ks25208 / # emerge -C sys-apps/man-pages


!!! 'sys-apps/man-pages' is part of your system profile.
!!! Unmerging it may be damaging to your system.

>>> Waiting 10 seconds before starting...
>>> (Control-C to abort)...
Press Ctrl-C to Stop in: 10 9 8 7 6 5 4 3 2 1

sys-apps/man-pages
selected: 2.31
protected: none
omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging sys-apps/man-pages-2.31...

* GNU info directory index is up-to-date.

* IMPORTANT: 3 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
Mam nadzieję, że nie uszkodziło mi systemu. :P

OK, lecę dalej - emerge -uD system. do zainstalowania ma 79 aplikacji, jest na 8... zobaczymy co z tego będzie

gonzek
12-05-2009, 19:00
Poszło.

Kolejny krok:
ks25208 / # emerge -uD system
Calculating dependencies... done!
[ebuild U ] sys-libs/zlib-1.2.3-r1 [1.2.3]
[ebuild U ] sys-devel/gnuconfig-20080928 [20060227]
[ebuild U ] dev-libs/gmp-4.2.4 [4.1.4-r3]
[ebuild U ] sys-devel/gcc-config-1.4.0-r4 [1.3.13-r2]
[ebuild U ] dev-libs/expat-2.0.1-r1 [2.0.1]
[ebuild U ] sys-devel/autoconf-wrapper-6 [4-r3]
[ebuild U ] sys-libs/timezone-data-2009c [2006a] USE="nls%*"
[ebuild U ] app-arch/bzip2-1.0.5-r1 [1.0.3-r6]
[ebuild U ] app-arch/cpio-2.9-r2 [2.9-r1]
[ebuild U ] dev-util/pkgconfig-0.23 [0.20]
[ebuild U ] sys-devel/m4-1.4.12 [1.4.10]
[ebuild U ] sys-apps/sysvinit-2.86-r10 [2.86-r3]
[ebuild N ] dev-libs/mpfr-2.4.1_p1
[ebuild U ] net-misc/iputils-20071127 [021109-r3]
[ebuild U ] dev-libs/libpcre-7.8 [7.6-r1] USE="bzip2*"
[ebuild N ] virtual/init-0
[ebuild U ] sys-apps/sed-4.1.5-r1 [4.1.4-r1]
[ebuild U ] sys-devel/flex-2.5.35 [2.5.33-r1]
[ebuild U ] sys-apps/findutils-4.4.0 [4.1.20-r2]
[ebuild U ] sys-devel/bison-2.3 [2.1]
[ebuild U ] sys-apps/diffutils-2.8.7-r2 [2.8.7-r1]
[ebuild U ] dev-libs/popt-1.10.7 [1.7-r1]
[ebuild U ] sys-apps/grep-2.5.1a-r1 [2.5.1-r8] USE="pcre%*"
[ebuild U ] app-arch/gzip-1.3.12-r1 [1.3.12]
[ebuild U ] sys-apps/kbd-1.13-r1 [1.12-r6]
[ebuild U ] sys-apps/net-tools-1.60_p20071202044231-r1 [1.60-r11]
[ebuild U ] sys-apps/gawk-3.1.6 [3.1.5]
[ebuild U ] app-arch/tar-1.20 [1.19]
[ebuild U ] sys-devel/make-3.81 [3.80-r4]
[ebuild U ] sys-devel/binutils-config-1.9-r4 [1.8-r7]
[ebuild U ] sys-devel/binutils-2.18-r3 [2.16.1-r2] USE="-gold%"
[ebuild U ] app-shells/bash-3.2_p39 [3.2_p17] USE="-examples% -plugins%"
[ebuild U ] sys-apps/less-418 [394] USE="unicode*"
[ebuild U ] app-editors/nano-2.1.7-r1 [1.3.10-r1] USE="unicode* -spell*"
[ebuild U ] sys-libs/gpm-1.20.5 [1.20.1-r4]
[ebuild U ] sys-process/procps-3.2.7 [3.2.6]
[ebuild U ] sys-libs/readline-5.2_p13 [5.1_p4]
[ebuild N ] virtual/editor-0
[ebuild U ] sys-apps/which-2.19 [2.16]
[ebuild N ] virtual/pager-0
[ebuild U ] app-admin/python-updater-0.5 [0.2]
[ebuild U ] sys-apps/baselayout-1.12.11.1 [1.11.14-r8] USE="unicode*"
[ebuild U ] sys-apps/module-init-tools-3.5 [3.2.1] USE="-old-linux%"
[ebuild U ] sys-fs/udev-124-r2 [087]
[ebuild U ] net-misc/rsync-3.0.5 [2.6.9-r3] USE="iconv%* -xattr%"
[ebuild U ] sys-auth/pambase-20081028 [20080318] USE="sha512%* -ssh%"
[ebuild U ] app-misc/ca-certificates-20080809 [20050804]
[ebuild U ] app-admin/perl-cleaner-1.05 [1.03-r1]
[ebuild U ] sys-libs/gdbm-1.8.3-r3 [1.8.3-r2]
[ebuild U ] sys-libs/cracklib-2.8.13 [2.8.5-r1]
[ebuild U ] sys-libs/glibc-2.8_p20080602-r1 [2.3.6-r3] USE="(multilib*) -deb ug% -gd% -vanilla%"
[ebuild NS ] sys-devel/gcc-4.3.2-r3 [3.4.5] USE="fortran mudflap (multilib) n ls openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -o bjc-gc -test -vanilla"
[ebuild U ] sys-devel/libperl-5.8.8-r2 [5.8.8-r1]
[ebuild U ] dev-lang/perl-5.8.8-r5 [5.8.8-r4]
[ebuild U ] sys-devel/autoconf-2.63 [2.61-r1]
[ebuild U ] dev-libs/openssl-0.9.8k [0.9.8g] USE="-kerberos*"
[ebuild U ] perl-core/Test-Harness-2.64 [2.56]
[ebuild U ] perl-core/PodParser-1.35 [1.32]
[ebuild U ] sys-apps/help2man-1.36.4 [1.33.1]
[ebuild U ] sys-devel/automake-1.10.2 [1.10]
[ebuild U ] net-misc/wget-1.11.1 [1.10.2]
[ebuild U ] sys-devel/libtool-1.5.26 [1.5.22] USE="-vanilla%"
[ebuild U ] sys-libs/pam-1.0.4 [1.0.1]
[ebuild NS ] sys-libs/db-4.5.20_p2-r1 [4.2.52_p2-r1] USE="-doc -java -nocxx - tcl -test"
[ebuild U ] sys-libs/db-4.2.52_p5-r1 [4.2.52_p2-r1] USE="-tcl% -test%"
[ebuild U ] sys-apps/groff-1.20.1-r1 [1.19.1-r2] LINGUAS="-ja%"
[ebuild U ] sys-apps/attr-2.4.43 [2.4.39]
[ebuild U ] sys-process/psmisc-22.6 [22.1]
[ebuild NS ] dev-lang/python-2.5.4-r2 [2.4.4-r6] USE="berkdb gdbm ipv6 ncurse s readline ssl threads xml -build -doc -examples -sqlite -tk -ucs2 -wininst"
[ebuild U ] sys-apps/man-1.6f-r3 [1.6-r1] USE="-lzma%"
[ebuild U ] sys-apps/shadow-4.1.2.2 [4.0.18.2] USE="-audit%"
[ebuild U ] net-nds/openldap-2.3.43 [2.3.39-r1] USE="-kerberos*"
[ebuild U ] sys-apps/busybox-1.13.2 [1.1.0] USE="pam%* (-selinux)"
[ebuild U ] sys-apps/file-4.23 [4.21-r1]
[ebuild U ] dev-libs/libxml2-2.7.3 [2.6.30-r1] USE="-examples%"
[ebuild U ] dev-python/pycrypto-2.0.1-r8 [2.0.1-r6]
[ebuild U ] net-misc/openssh-5.2_p1-r1 [4.7_p1-r1] USE="-kerberos* -pkcs11%"
[ebuild N ] sys-apps/man-pages-posix-2003a
[ebuild U ] sys-apps/man-pages-3.20 [2.31] LINGUAS="-cs% -da% -de% -es% -fr% -it% -ja% -nl% -pl% -ro% -ru% -zh_CN%"
[blocks B ]
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.

('ebuild', '/', 'sys-apps/man-pages-posix-2003a', 'merge') pulled in by
sys-apps/man-pages-posix required by ('ebuild', '/', 'sys-apps/man-pages-3.2 0', 'merge')


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handboo...full=1#blocked

gonzek
12-05-2009, 18:46
Cytat Napisał borec
emerge -u debianutils, nie coreutils. coreutils jak już zrobisz debianutils.
Wpisałem poprawnie, dla upewnienia wydałem tę komendę ponownie - to samo. Pomielił, pokompilował i wypluł ten komunikat.

ks25208 / # emerge -u debianutils
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) sys-apps/coreutils-7.1

...
Wpisałem też emerge -u coreutils - to samo.

P.S. system to gentoo - debian to nie pomyłka? pzdr

gonzek
12-05-2009, 18:30
Cytat Napisał borec
emerge -u debianutils
Pomiętolił, pokompilował i wypluł:
>>> Installing sys-apps/coreutils-7.1
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / ` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /bin/mktemp
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* sys-apps/debianutils-2.15
* /bin/mktemp
*
* Package 'sys-apps/coreutils-7.1' NOT merged due to file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.

>>> Failed to install sys-apps/coreutils-7.1, Log file:

>>> '/var/tmp/portage/sys-apps/coreutils-7.1/temp/build.log'

* Messages for package sys-apps/coreutils-7.1:

* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / ` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /bin/mktemp
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* sys-apps/debianutils-2.15
* /bin/mktemp
*
* Package 'sys-apps/coreutils-7.1' NOT merged due to file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.

gonzek
12-05-2009, 18:15
Kilka kroczków poszło, natomiast przy wykonywaniu emerge -u coreutils wyskoczył błąd:

>>> Installing sys-apps/coreutils-7.1
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / ` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /bin/mktemp
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* sys-apps/debianutils-2.15
* /bin/mktemp
*
* Package 'sys-apps/coreutils-7.1' NOT merged due to file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.

>>> Failed to install sys-apps/coreutils-7.1, Log file:

>>> '/var/tmp/portage/sys-apps/coreutils-7.1/temp/build.log'

* Messages for package sys-apps/coreutils-7.1:

* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / ` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /bin/mktemp
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* sys-apps/debianutils-2.15
* /bin/mktemp
*
* Package 'sys-apps/coreutils-7.1' NOT merged due to file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.

* GNU info directory index is up-to-date.

* IMPORTANT: 2 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

gonzek
12-05-2009, 16:58
Zastosowałem tę wskazówkę: http://forum.ovh.pl/showthread.php?t=7493
Jest lepiej - więcej miejsca. Configa również zaktualizowałem, dzięki.
Natomiast kolejny kroczek (emerge -u e2fsprogs) pokazuje:

ks25208 / # emerge -u e2fsprogs
Calculating dependencies... done!
[ebuild U ] sys-devel/gettext-0.17 [0.16.1-r1] USE="acl%* openmp%*"
[ebuild U ] sys-apps/texinfo-4.13 [4.8-r5]
[ebuild N ] sys-libs/e2fsprogs-libs-1.41.3-r1 USE="nls"
[ebuild U ] sys-fs/e2fsprogs-1.41.3-r1 [1.40.4]
[blocks b ] [blocks B ] sys-libs/com_err ("sys-libs/com_err" is blocking sys-libs/e2fspr ogs-libs-1.41.3-r1)
[blocks B ] sys-libs/ss ("sys-libs/ss" is blocking sys-libs/e2fsprogs-libs-1 .41.3-r1)

* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.

('installed', '/', 'sys-libs/ss-1.40.4', 'nomerge') pulled in by
sys-libs/ss required by ('installed', '/', 'app-crypt/mit-krb5-1.5.3-r1', 'n omerge')

('installed', '/', 'sys-libs/com_err-1.40.4', 'nomerge') pulled in by
~sys-libs/com_err-1.40.4 required by ('installed', '/', 'sys-libs/ss-1.40.4' , 'nomerge')
sys-libs/com_err required by ('installed', '/', 'app-crypt/mit-krb5-1.5.3-r1 ', 'nomerge')

('ebuild', '/', 'sys-libs/e2fsprogs-libs-1.41.3-r1', 'merge') pulled in by
~sys-libs/e2fsprogs-libs-1.41.3 required by ('ebuild', '/', 'sys-fs/e2fsprog s-1.41.3-r1', 'merge')


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handboo...full=1#blocked


!!! The following installed packages are masked:
- sys-libs/glibc-2.3.6-r3 (masked by: profile)
- sys-apps/baselayout-1.11.14-r8 (masked by: profile)
- sys-devel/binutils-2.16.1-r2 (masked by: profile)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Ehh

Zawartość package.mask:
www-servers/apache
dev-lang/php
net-mail/qmail-autoresponder
sys-process/daemontools
net-mail/ezmlm
net-mail/ezmlm-idx
net-mail/fastforward
mail-mta/qmail
net-mail/qmailadmin
net-mail/qmailanalog
sys-apps/ucspi-tcp
net-mail/vpopmail
www-servers/apache
net-www/apache
Zawartość package.keywords:
www-servers/apache
dev-lang/php
net-mail/qmail-autoresponder
sys-process/daemontools
net-mail/ezmlm
net-mail/ezmlm-idx
net-mail/fastforward
mail-mta/qmail
net-mail/qmailadmin
net-mail/qmailanalog
sys-apps/ucspi-tcp
net-mail/vpopmail
www-servers/apache
net-www/apache

gonzek
12-05-2009, 16:23
OK, usunąłem. Tym razem pobranie źródeł poszło OK. Problem jest jednak kolejny - po pobraniu źródeł zostało niewiele na /:
ks25208 / # df -h
System plików rozm. użyte dost. %uż. zamont. na
/dev/sda1 2,9G 2,7G 74M 98% /
udev 988M 168K 988M 1% /dev
/dev/sda2 226G 9,0G 206G 5% /home
shm 988M 0 988M 0% /dev/shm
Dalsze kroki raczej wywalą błąd ze względu na zbyt małą ilość dostępnej powierzchni dyskowej - czy się nie mylę?

Ah, i jeszcze coś:
ks25208 / # etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/dispatch-conf.conf (1)
Please select a file to edit by entering the corresponding number.
(don't use -3, -5, -7 or -9 if you're unsure what to do)
(-1 to exit) (-3 to auto merge all remaining files)
(-5 to auto-merge AND not use 'mv -i')
(-7 to discard all updates)
(-9 to discard all updates AND not use 'rm -i'):
Co wybrać?

gonzek
12-05-2009, 13:06
OK, z tym problemów nie było.

przy próbie emerge --fetchonly -uD system pokazuje się:

ks25208 / # emerge --fetchonly -uD system
Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=sys-libs/glibc-2.7-r2" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-libs/glibc-2.9_p20081201-r2 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.9_p20081201-r1 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.9_p20081201 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.8_p20080602-r1 (masked by: package.mask)
- sys-libs/glibc-2.8_p20080602 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.7-r2 (masked by: package.mask, ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "sys-devel/gcc-4.3.2-r3" [ebuild])
(dependency required by "system" [argument])
Ponadto przy wcześniejszych dwóch poleceniach (--sync i portage) przy końcu pojawiało się:
* IMPORTANT: 2 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

gonzek
11-05-2009, 16:23
Cytat Napisał borec
--fetchonly nie --fetch-only, mój błąd.
Czy można to wykonywać dalej mimo błędu w pierwszym kroku:
ValueError: need more than 1 value to unpack
?

Damn it!
Każdy krok powoduje kilka kolejnych problemów...
ks25208 / # emerge --fetchonly -uD system

!!! Your current profile is deprecated and not supported anymore.
!!! Please upgrade to the following profile if possible:
This profile is deprecated. Please update to a 2008.0 profile using eselect profile.

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=sys-libs/glibc-2.7-r2" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-libs/glibc-2.9_p20081201-r2 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.9_p20081201-r1 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.9_p20081201 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.8_p20080602-r1 (masked by: package.mask)
- sys-libs/glibc-2.8_p20080602 (masked by: package.mask, ~amd64 keyword)
- sys-libs/glibc-2.7-r2 (masked by: package.mask, ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "sys-devel/gcc-4.3.2-r3" [ebuild])
(dependency required by "system" [argument])
Odmaskować je?

sLoDkI
11-05-2009, 15:43
Cytat Napisał gonzek
System uruchomiony mam z netboota (tak mi polecono bezpośrednio z Francji - system od jakiegoś czasu ledwo działał - są to niby problemy ze sterownikami karty sieciowej). Czy to (netboot) ma jakiś wpływ na aktualizacje, które zgodnie z powyższym postem powinienem wykonać?
Netboot to tylko nasz kernel który został przetestowany, spatchowany i działa z danym sprzętem (a przynajmniej tak powinno być ). Po załadowaniu kernela w trybie netboot cała reszta (tzn. system) ładuje się już z dysku.

PS. Jest jeszcze tryb Rescue - tam poza kernelem również system ładuje się z sieci, bez względu co jest na maszynie (bądź czego nie ma ). Dopiero po załadowaniu takiego systemu można podmontować własne dyski z własnym systemem. Przydaje się do naprawiania błędów konfiguracji i rozwiązywania problemów sprzętowych.

Pozdrawiam.

gonzek
11-05-2009, 15:16
Cytat Napisał borec
Dobry Boże, system się czasem powinno aktualizować

Kod:
emerge --sync # aktualizacja portage
emerge portage
emerge --fetch-only -uD system # pobranie źródeł
emerge -u e2fsprogs
emerge -C setarch
emerge -u util-linux
emerge -u coreutils
emerge -uD system
revdep-rebuild
emerge -auB dev-db/mysql
emerge -ak dev-db/mysql
System uruchomiony mam z netboota (tak mi polecono bezpośrednio z Francji - system od jakiegoś czasu ledwo działał - są to niby problemy ze sterownikami karty sieciowej). Czy to (netboot) ma jakiś wpływ na aktualizacje, które zgodnie z powyższym postem powinienem wykonać?

Coś tam podziałał, ale po pewnym czasie wypluwania wyników przy emerge portage wyskoczyło:
>>> sys-apps/portage-2.1.6.11 merged.
Traceback (most recent call last):
File "/usr/bin/emerge", line 6518, in ?

File "/usr/bin/emerge", line 6512, in emerge_main

File "/usr/bin/emerge", line 5971, in action_build

File "/usr/bin/emerge", line 3849, in merge

File "/usr/lib64/portage/pym/portage.py", line 4352, in doebuild
vartree=vartree, prev_mtimes=prev_mtimes)
File "/usr/lib64/portage/pym/portage.py", line 4543, in merge
mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib64/portage/pym/portage.py", line 8822, in merge
elog_process(self.mycpv, self.settings)
File "/usr/lib64/portage/pym/portage.py", line 506, in elog_process
msgfunction, msgtype = f.split(".")
ValueError: need more than 1 value to unpack
Przy próbie kolejnego kroku:
ks25208 / # emerge --fetch-only -uD system
usage: emerge [options]

emerge: error: no such option: --fetch-only

gonzek
10-05-2009, 23:48
ks25208 ~ # df -h
System plików rozm. użyte dost. %uż. zamont. na
/dev/sda1 2,9G 2,8G 32M 99% /
udev 988M 168K 988M 1% /dev
/dev/sda2 226G 8,0G 207G 4% /home
shm 988M 0 988M 0% /dev/shm
Przeładowałem, ale nic to nie dało. Zresetowałem cały serwer. Jest lepiej:
ks25208 ~ # df -h
System plików rozm. użyte dost. %uż. zamont. na
/dev/sda1 2,9G 2,4G 410M 86% /
udev 988M 168K 988M 1% /dev
/dev/sda2 226G 8,0G 207G 4% /home
shm 988M 0 988M 0% /dev/shm
OK, paczka się utworzyła, natomiast przy próbie instalacji:
ks25208 / # emerge -auDk dev-db/mysql

These are the packages that would be merged, in order:

Calculating dependencies... done!

[ebuild U ] sys-libs/zlib-1.2.3-r1 [1.2.3]
[ebuild U ] sys-devel/gnuconfig-20080123 [20060227]
[ebuild N ] app-arch/lzma-utils-4.32.6 USE="-nocxx"
[ebuild U ] sys-apps/sandbox-1.2.18.1-r2 [1.2.17]
[ebuild U ] app-misc/pax-utils-0.1.17 [0.1.16]
[ebuild U ] sys-apps/portage-2.1.4.4 [2.1.3.19]
*** Portage will stop merging at this point and reload itself,
then resume the merge.
[binary U ] dev-db/mysql-5.0.54 [5.0.44-r2] USE="-latin1*"
[ebuild U ] sys-apps/man-pages-2.80 [2.31] LINGUAS="-cs% -da% -de% -es% -fr% -it% -ja% -nl% -pl% -ro% -ru% -zh_CN%"
[ebuild U ] dev-lang/perl-5.8.8-r5 [5.8.8-r4]
[ebuild U ] perl-core/Storable-2.16 [2.15]
[ebuild N ] perl-core/Sys-Syslog-0.18
[ebuild U ] perl-core/Test-Harness-2.64 [2.56]
[ebuild U ] perl-core/PodParser-1.35 [1.32]
[ebuild U ] dev-perl/Net-Daemon-0.43 [0.38]
[ebuild U ] virtual/perl-Storable-2.16 [2.15]
[ebuild N ] virtual/perl-Sys-Syslog-0.18
[ebuild U ] dev-perl/PlRPC-0.2020-r1 [0.2018]
[ebuild U ] dev-perl/DBI-1.601 [1.48]
[ebuild U ] sys-devel/gettext-0.17 [0.16.1-r1] USE="acl%* openmp%*"
[ebuild U ] sys-apps/help2man-1.36.4 [1.33.1]
[ebuild U ] sys-devel/m4-1.4.11 [1.4.10]
[ebuild U ] sys-apps/sed-4.1.5-r1 [4.1.4-r1]
[ebuild U ] sys-apps/diffutils-2.8.7-r2 [2.8.7-r1]
[ebuild U ] sys-apps/findutils-4.3.13 [4.1.20-r2]
[ebuild U ] dev-libs/popt-1.10.7 [1.7-r1]
[ebuild U ] sys-devel/flex-2.5.33-r3 [2.5.33-r1]
[ebuild U ] sys-devel/binutils-config-1.9-r4 [1.8-r7]
[ebuild U ] sys-devel/binutils-2.18-r3 [2.16.1-r2]
[ebuild NS ] sys-libs/db-4.5.20_p2 USE="-bootstrap -doc -java -nocxx -tcl -t est"
[ebuild NS ] sys-libs/db-4.3.29-r2 USE="-bootstrap -doc -java -nocxx -tcl -t est"
[ebuild U ] sys-libs/gdbm-1.8.3-r3 [1.8.3-r2]
[ebuild U ] sys-devel/libperl-5.8.8-r2 [5.8.8-r1]
[ebuild U ] sys-libs/ncurses-5.6-r2 [5.6-r1] USE="-profile%"
[ebuild U ] sys-apps/texinfo-4.11-r1 [4.8-r5]
[ebuild U ] app-shells/bash-3.2_p33 [3.2_p17] USE="-plugins%"
[ebuild U ] sys-libs/gpm-1.20.1-r6 [1.20.1-r4]
[ebuild U ] sys-process/procps-3.2.7 [3.2.6]
[ebuild U ] sys-devel/autoconf-2.61-r2 [2.61-r1]
[ebuild U ] sys-libs/readline-5.2_p12-r1 [5.1_p4]
[ebuild U ] app-admin/perl-cleaner-1.05 [1.03-r1]
[ebuild U ] sys-devel/automake-1.10.1 [1.10]
[ebuild U ] sys-devel/bc-1.06.95 [1.06-r6] USE="-libedit%"
[ebuild U ] sys-devel/libtool-1.5.26 [1.5.22] USE="-vanilla%"
[ebuild U ] sys-libs/com_err-1.40.9 [1.40.4]
[ebuild U ] sys-apps/coreutils-6.10-r2 [6.9-r1] USE="-vanilla%"
[ebuild U ] net-misc/rsync-3.0.2 [2.6.9-r3] USE="iconv%* -xattr%"
[ebuild U ] sys-apps/groff-1.19.2-r1 [1.19.1-r2] USE="-cjk%"
[ebuild U ] sys-libs/ss-1.40.9 [1.40.4]
[ebuild U ] sys-apps/man-1.6f-r1 [1.6-r1]
[ebuild U ] app-crypt/mit-krb5-1.6.3-r1 [1.5.3-r1]
[ebuild U ] dev-libs/openssl-0.9.8g-r2 [0.9.8g]
[ebuild U ] dev-lang/python-2.4.4-r13 [2.4.4-r6] USE="cxx%* gdbm* threads%* -wininst%"
[ebuild U ] app-misc/ca-certificates-20070303-r1 [20050804]
[ebuild U ] dev-libs/libxml2-2.6.31 [2.6.30-r1] USE="-examples%"
[blocks B ]
!!! Error: The above package list contains packages which cannot be installed
!!! at the same time on the same system.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handboo...full=1#blocked

ks25208 / #

gonzek
10-05-2009, 17:10
ks25208 ~ # ls -l /var/log
lrwxrwxrwx 1 root root 10 maj 10 15:44 /var/log -> /home/.log
ks25208 ~ # ls -l /var/lib/mysql
lrwxrwxrwx 1 root root 12 maj 10 17:25 /var/lib/mysql -> /home/.mysql
ks25208 ~ # du -hs /tmp
19M /tmp
I jeszcze:
ks25208 ~ # du -hs /home/.mysql/
418M /home/.mysql/
Manager OVH pokazuje:
Użycie dysku twardego
Użycie dla [ / ] : 99 %
Użycie dla [ /home ] : 4 %
Czyli konkludując - przeniosło się to czy nie? A może tylko skopiowało i z / coś należy usunąć?

gonzek
10-05-2009, 16:22
Cytat Napisał borec
Logi już chyba są na home, a /var/log to link do /home/log (tak afair jest w gentoo ovh). Przenieś raczej bazę.
Może są tutaj i tutaj? W panelu OVH zajęcie / skoczyło już z 98% na 99%.

hmm, sam już nie wiem:

ks25208 home # du -hs /var/log/
258M /var/log/
ks25208 home # du -hs /home/.log/
258M /home/.log/
Przy próbie przeniesienia baz:

ks25208 home # mv /var/lib/mysql /home/.mysql
ks25208 home # ln -s /home/.mysql /var/lib/mysql
ks25208 home # du -hs /var/lib/mysql/
418M /var/lib/mysql/
ks25208 home # du -hs /home/.mysql
0 /home/.mysql

Czy jest jakaś możliwość powiększenia / kosztem /home (na /home zajęte około 4%)?

gonzek
10-05-2009, 14:50
myslq zajmuje 416MB, logi ponad 200. niby je przenioslem, ale chyba nadal sa, bo panel ovh nadal pokazuje 98% zajete na /

ks25208 / # du -hs /var/log/
243M /var/log/
ks25208 / # du -hs /var/lib/mysql/
416M /var/lib/mysql/
ks25208 / # mv /var/log/ /home/.log
mv: nie można usunąć katalogu `/var/log/': Nie jest katalogiem
ks25208 / # mv /var/log /home/.log
ks25208 / # ln -s /home/.log /var/log
ks25208 / # du -hs /var/log/
243M /var/log/
ks25208 / # cd home
ks25208 home # dir
ks25208 home # du -hs /home/.log/
243M /home/.log/

gonzek
10-05-2009, 13:44
Mam pakiet XL kimsufi czyli 2GB ramu. Na czas aktualizacji wyłączyłem apache'a i zatrzymałem mysqla, więc sporo ramu było wolnego.

Fakt, że miejsca na / jest mało już od samej instalacji systemu przez ovh (gentoo ovh release) - ponad 90% zajęte. Co mogę bezpiecznie usunąć/przenieść?

gonzek
10-05-2009, 01:52
Wybrałem drogę kilku mniejszych kroczków no i na etapie budowania nowej paczki niestety poległem. Kilka minut bawił się, budował, a później wypluł błąd:

collect2: ld returned 1 exit status
make[2]: *** [myisamlog] Błąd 1
collect2: make[2]: *** Czekam na niezakończone zadania....
ld returned 1 exit status
make[2]: *** [myisamchk] Błąd 1
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.54/work/mysql/myisam'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.54/work/mysql'
make: *** [all] Błąd 2
*
* ERROR: dev-db/mysql-5.0.54 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1383: Called mysql_src_compile
* mysql.eclass, line 648: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.54/temp/build.log'.
*

* Messages for package dev-db/mysql-5.0.54:

* Berkeley DB support is deprecated and will be removed in future versions!
* MySQL MY_DATADIR is /var/lib/mysql
* MySQL datadir found in /var/lib/mysql
* A new one will not be created.
*
* ERROR: dev-db/mysql-5.0.54 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1383: Called mysql_src_compile
* mysql.eclass, line 648: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.54/temp/build.log'.
*
* Berkeley DB support was disabled due to compatibility issues on this arch
I co z tym zrobić?

No to się wkopałem. Mysql nie chce się uruchomić. Przy próbie przywrócenia starszej z paczki błąd:
ks25208 ~ # emerge -ak =dev-db/mysql-5.0.44

These are the packages that would be merged, in order:

Calculating dependencies |
!!! All ebuilds that could satisfy "=dev-db/mysql-5.0.44" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-db/mysql-5.0.44 (masked by: ~amd64 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
I co teraz?

OK, udało mi się to odmaskować i zainstalować 5.0.44 (nie bez problemów - no space left on device...). Konkludując nie posunąłem się ani kroku dalej. Mogę liczyć na pomoc w postawieniu tego kroku?

gonzek
07-05-2009, 23:56
czołem,

w jaki sposób bezpiecznie wykonać aktualizację mysqla do (naj)nowszej wersji? teraz zainstalowaną mam: 5.0.44
backup wszystkich baz oraz configa już wykonałem, co dalej?

webmin, ovhm, gentoo 64 bit