Gentoo upgrade note

Source: Internet
Author: User
Tags apm fam
I wanted to upgrade Gentoo very early. Because my Gentoo version is too old. As a result, many software cannot be installed, and one can jump out:
[Blocks B] <= x11-base/xorg-x11-6.9 (is blocking x11-drivers/xf86-video-tga-1.1.0, x11-libs/libXdamage-1.1.1, x11-proto/xf86vidmodeproto-2.2.2, x11-drivers/xf86-video-fbdev-0.3.1, x11-drivers/xf86-video-nsc-2.8.2, x11-proto/xf86driproto-2.0.3, x11-apps/setxkbmap-1.0.2, x11-proto/glproto-1.4.8, x11-libs/libXfont-1.2.7-r1, media-fonts/encodings-1.0.2, x11-proto/bigreqsproto-1.0.2, x11-apps/xauth-1.0.2, x11-libs/libXdmcp-1.0.2, x11-apps/xkbcomp-1.0.3, x11-wm/twm-1.0.3, x11-libs/libXfixes-4.0.3, x11-proto/xcmiscproto-1.1.2, x11-apps/xclock-1.0.2, x11-drivers/xf86-video-ark-0.6.0, x11-drivers/xf86-video-s3virge-1.9.1, x11-libs/libXmu-1.0.3, x11-proto/xproto-7.0.10, app-DOC/xorg-docs-1.4, x11-base/xorg-server-1.2.0-r3, x11-proto/damageproto-1.1.0, x11-libs/libXScrnSaver-1.1.2, x11-drivers/xf86-video-neomagic-1.1.1, x11-apps/mkfontdir-1.0.3, x11-libs/libXp-1.0.0, x11-apps/rgb-1.0.1, x11-apps/luit-1.0.2, x11-libs/libXi-1.1.0, x11-proto/xf86dgaproto-2.0.2, x11-apps/xhost-1.0.1, x11-drivers/xf86-video-sisusb-0.8.1, x11-drivers/xf86-video-vesa-1.3.0, x11-drivers/xf86-video-ati-6.6.3, media-fonts/font-adobe-utopia-type1-1.0.1, x11-proto/printproto-1.0.3, x11-apps/xrdb-1.0.3, x11-proto/xf86miscproto-0.9.2, x11-proto/fontcacheproto-0.1.2, x11-libs/libXpm-3.5.6, x11-libs/libXau-1.0.3, x11-apps/xrandr-1.2.0, x11-libs/libxkbfile-1.0.4, x11-proto/resourceproto-1.0.2, x11-proto/kbproto-1.0.3, x11-libs/libXt-1.0.5, x11-proto/renderproto-0.9.2, x11-drivers/xf86-video-cirrus-1.1.0, x11-drivers/xf86-video-chips-1.1.1, x11-libs/libXvMC-1.0.4, x11-apps/mkfontscale-1.0.3, media-fonts/font-cursor-misc-1.0.0, x11-proto/videoproto-2.2.2, x11-drivers/xf86-video-v4l-0.1.1, x11-drivers/xf86-video-vmware-10.15.0, x11-apps/xinit-1.0.3-r3, x11-apps/xsm-1.0.1, x11-proto/compositeproto-0.3.1, x11-libs/libXxf86misc-1.0.1, x11-libs/libXft-2.1.12, x11-libs/xtrans-1.0.3, x11-drivers/xf86-input-mouse-1.2.1, x11-libs/libXtst-1.0.1, x11-drivers/xf86-video-i128-1.2.1, x11-drivers/xf86-video-sis-0.9.1-r1, x11-proto/randrproto-1.2.1, media-libs/mesa-6.5.2-r1, x11-libs/libXcomposite-0.3.1, x11-drivers/xf86-input-evdev-1.1.5-r1, media-fonts/font-adobe-75dpi-1.0.0, x11-proto/dmxproto-2.2.2, x11-drivers/xf86-video-trident-1.2.3, x11-drivers/xf86-video-nv-1.2.2.1, media-fonts/font-misc-misc-1.0.0, x11-libs/libdrm-2.3.0, x11-libs/libXaw-1.0.3, x11-drivers/xf86-video-vga-4.1.0, x11-misc/util-macros-1.1.5, x11-proto/xineramaproto-1.1.2, x11-drivers/xf86-video-voodoo-1.1.1, x11-drivers/xf86-video-i740-1.1.0, x11-proto/scrnsaverproto-1.1.0, x11-drivers/xf86-video-via-0.2.2, x11-proto/evieext-1.0.2, x11-libs/libXrender-0.9.2, x11-proto/fixesproto-4.0, x11-proto/fontsproto-2.0.2, x11-drivers/xf86-video-apm-1.1.1, x11-drivers/xf86-video-glint-1.1.1, media-fonts/x11-libs, x11-apps/xprop-1.0.2, x11-drivers/xf86-video-rendition-4.1.3, x11-apps/xmodmap-1.0.2, x11-drivers/xf86-video-savage-2.1.2-r1, x11-proto/xextproto-7.0.2, x11-libs/libXext-1.0.3, media-fonts/font-util-1.0.1, x11-misc/makedepend-1.0.0, x11-drivers/xf86-video-cyrix-1.1.0, x11-proto/xf86bigfontproto-1.1.2, x11-proto/trapproto-3.4.3, x11-apps/sessreg-1.0.2, x11-proto/inputproto-1.4.1, media-fonts/font-alias-1.0.1, x11-libs/libdmx-1.0.2, x11-libs/libICE-1.0.3, x11-libs/libXres-1.0.3, x11-libs/libfontenc-1.0.4, x11-apps/xdpyinfo-1.0.2, x11-libs/libXxf86dga-1.0.1, x11-misc/xbitmaps-1.0.1, x11-drivers/xf86-video-tseng-1.1.1, x11-drivers/xf86-video-mga-1.4.6.1, media-fonts/x11-libs, libXv-1.0.3/font-bh-type1-1.0.0, x11-libs/libxkbui-1.0.2, x11-libs/libX11-1.1.1-r1)

However, there is a high risk of upgrading, especially updating X. If the update fails, X will not be available. Finally, I made up my mind to update it.
The first step is to update the software package database.
Emerge -- sync
To prevent poor network performance, update to half fails. Use the following command to download the source code package in advance.
Emerge-fudv world
Total: 562 packages (269 upgrades, 1 downgrade, 268 new, 24 in new slots, 13 blocks), size of downloads: 0 KB
We found that more than 500 software packages were to be updated. No way, this is the consequence of long-term non-upgrade. It took about a whole day to finally download all the source code packages to/usr/portage.
You can upgrade it.
Emerge-UDV world
Or not. It is prompted that many software packages block other software packages (the so-called block, simply understood, is the conflict between software packages. The solution is to uninstall the conflicting software packages, then the system will automatically install a new non-conflicting Software Package ):
[Blocks B]> = sys-fs/udev-089 (is blocking sys-apps/coldplug-20040920-r1)
[Blocks B] app-admin/eselect-ESD (is blocking media-sound/esound-0.2.36-r1)
[Blocks B] sys-libs/libutempter (is blocking sys-apps/utempter-0.5.5.6)
[Blocks B] virtual/xft (is blocking x11-base/xorg-x11-6.8.2-r6)
[Blocks B] <= x11-base/xorg-x11-6.9 (is blocking x11-drivers/xf86-video-tga-1.1.0, x11-libs/libXdamage-1.1.1, x11-proto/xf86vidmodeproto-2.2.2, x11-drivers/xf86-video-fbdev-0.3.1, x11-drivers/xf86-video-nsc-2.8.2, x11-proto/xf86driproto-2.0.3, x11-apps/setxkbmap-1.0.2, x11-proto/glproto-1.4.8, x11-libs/libXfont-1.2.7-r1, media-fonts/encodings-1.0.2, x11-proto/bigreqsproto-1.0.2, x11-apps/xauth-1.0.2, x11-libs/libXdmcp-1.0.2, x11-apps/xkbcomp-1.0.3, x11-wm/twm-1.0.3, x11-libs/libXfixes-4.0.3, x11-proto/xcmiscproto-1.1.2, x11-apps/xclock-1.0.2, x11-drivers/xf86-video-ark-0.6.0, x11-drivers/xf86-video-s3virge-1.9.1, x11-libs/libXmu-1.0.3, x11-proto/xproto-7.0.10, app-DOC/xorg-docs-1.4, x11-base/xorg-server-1.2.0-r3, x11-proto/damageproto-1.1.0, x11-libs/libXScrnSaver-1.1.2, x11-drivers/xf86-video-neomagic-1.1.1, x11-apps/mkfontdir-1.0.3, x11-libs/libXp-1.0.0, x11-apps/rgb-1.0.1, x11-apps/luit-1.0.2, x11-libs/libXi-1.1.0, x11-proto/xf86dgaproto-2.0.2, x11-apps/xhost-1.0.1, x11-drivers/xf86-video-sisusb-0.8.1, x11-drivers/xf86-video-vesa-1.3.0, x11-drivers/xf86-video-ati-6.6.3, media-fonts/font-adobe-utopia-type1-1.0.1, x11-proto/printproto-1.0.3, x11-apps/xrdb-1.0.3, x11-proto/xf86miscproto-0.9.2, x11-proto/fontcacheproto-0.1.2, x11-libs/libXpm-3.5.6, x11-libs/libXau-1.0.3, x11-apps/xrandr-1.2.0, x11-libs/libxkbfile-1.0.4, x11-proto/resourceproto-1.0.2, x11-proto/kbproto-1.0.3, x11-libs/libXt-1.0.5, x11-proto/renderproto-0.9.2, x11-drivers/xf86-video-cirrus-1.1.0, x11-drivers/xf86-video-chips-1.1.1, x11-libs/libXvMC-1.0.4, x11-apps/mkfontscale-1.0.3, media-fonts/font-cursor-misc-1.0.0, x11-proto/videoproto-2.2.2, x11-drivers/xf86-video-v4l-0.1.1, x11-drivers/xf86-video-vmware-10.15.0, x11-apps/xinit-1.0.3-r3, x11-apps/xsm-1.0.1, x11-proto/compositeproto-0.3.1, x11-libs/libXxf86misc-1.0.1, x11-libs/libXft-2.1.12, x11-libs/xtrans-1.0.3, x11-drivers/xf86-input-mouse-1.2.1, x11-libs/libXtst-1.0.1, x11-drivers/xf86-video-i128-1.2.1, x11-drivers/xf86-video-sis-0.9.1-r1, x11-proto/randrproto-1.2.1, media-libs/mesa-6.5.2-r1, x11-libs/libXcomposite-0.3.1, x11-drivers/xf86-input-evdev-1.1.5-r1, media-fonts/font-adobe-75dpi-1.0.0, x11-proto/dmxproto-2.2.2, x11-drivers/xf86-video-trident-1.2.3, x11-drivers/xf86-video-nv-1.2.2.1, media-fonts/font-misc-misc-1.0.0, x11-libs/libdrm-2.3.0, x11-libs/libXaw-1.0.3, x11-drivers/xf86-video-vga-4.1.0, x11-misc/util-macros-1.1.5, x11-proto/xineramaproto-1.1.2, x11-drivers/xf86-video-voodoo-1.1.1, x11-drivers/xf86-video-i740-1.1.0, x11-proto/scrnsaverproto-1.1.0, x11-drivers/xf86-video-via-0.2.2, x11-proto/evieext-1.0.2, x11-libs/libXrender-0.9.2, x11-proto/fixesproto-4.0, x11-proto/fontsproto-2.0.2, x11-drivers/xf86-video-apm-1.1.1, x11-drivers/xf86-video-glint-1.1.1, media-fonts/x11-libs, x11-apps/xprop-1.0.2, x11-drivers/xf86-video-rendition-4.1.3, x11-apps/xmodmap-1.0.2, x11-drivers/xf86-video-savage-2.1.2-r1, x11-proto/xextproto-7.0.2, x11-libs/libXext-1.0.3, media-fonts/font-util-1.0.1, x11-misc/makedepend-1.0.0, x11-drivers/xf86-video-cyrix-1.1.0, x11-proto/xf86bigfontproto-1.1.2, x11-proto/trapproto-3.4.3, x11-apps/sessreg-1.0.2, x11-proto/inputproto-1.4.1, media-fonts/font-alias-1.0.1, x11-libs/libdmx-1.0.2, x11-libs/libICE-1.0.3, x11-libs/libXres-1.0.3, x11-libs/libfontenc-1.0.4, x11-apps/xdpyinfo-1.0.2, x11-libs/libXxf86dga-1.0.1, x11-misc/xbitmaps-1.0.1, x11-drivers/xf86-video-tseng-1.1.1, x11-drivers/xf86-video-mga-1.4.6.1, media-fonts/x11-libs, libXv-1.0.3/font-bh-type1-1.0.0, x11-libs/libxkbui-1.0.2, x11-libs/libX11-1.1.1-r1)
[Blocks B] app-admin/fam (is blocking app-admin/gamin-0.1.8)
[Blocks B] sys-apps/PAM-login (is blocking sys-apps/shadow-4.0.18.1)
[Blocks B] KDE-base/KDE-ENV (is blocking KDE-base/kdelibs-3.5.5-r10)
[Blocks B] sys-apps/coldplug (is blocking sys-fs/udev-104-r12)
[Blocks B] <media-sound/esound-0.2.36-r2 (is blocking app-admin/eselect-esd-20060719)
[Blocks B] sys-apps/utempter (is blocking sys-libs/libutempter-1.1.5)
[Blocks B] <Dev-Python/pygtk-2.9 (is blocking Dev-Python/pygobject-2.12.3)
[Blocks B] app-admin/gamin (is blocking app-admin/fam-2.7.0-r2, app-admin/fam-2.7.0-r4)
Which of the most hateful is the x11-base/xorg-x11-6.9 package. However, killing it will make many X applications fail to run. Therefore, you must enable the required software, such as Firefox. Once it is disabled, it cannot be opened before the upgrade is successful.
For security, run:
Emerge -- pretend -- unmerge xorg-x11
Confirm that there is no important package to be deleted before you really start (previously accidentally deleted python, the result was not even running emerge, and finally reinstalled .)
Run:
Emerge -- unmerge xorg-x11
Deletion is always better than installation: P
Then reinstall xorg-x11
Xorg-x11 emerge
Something went wrong
>>> Emerging (94 of 143) x11-misc/xkeyboard-config-0.8-r1/
* Xkeyboard-config-0.8.tar.bz2 rmd160... [OK] * xkeyboard-config-0.8.tar.bz2 sha1... [OK] * xkeyboard-config-0.8.tar.bz2 sha256... [OK] * xkeyboard-config-0.8.tar.bz2 size... [OK] * Checking ebuild checksums... [OK] * Checking auxfile checksums... [OK] * Checking miscfile checksums... [OK] * Checking xkeyboard-config-0.8.tar.bz2... [OK] * directory/usr/lib/X11/XKB shocould be
* Manually deleted/renamed/relocated before installing!

!!! Error: x11-misc/xkeyboard-config-0.8-r1 failed.
Call Stack:
Ebuild. Sh, line 1631: called dyn_setup
Ebuild. Sh, line 703: called qa_call 'pkg _ setup'
Ebuild. Sh, line 44: called pkg_setup
Xkeyboard-config-0.8-r1.ebuild, line 26: called die.

!!! Manually remove/usr/lib/X11/XKB
!!! 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/x11-misc/xkeyboard-config-0.8-r1/temp/build. log '.

However, it is easy to rename/usr/lib/X11/XKB/(do not delete it, it is not safe)
After that, everything went smoothly. The most hateful block package is missing.
Similar to other packages, all blocks are unmerge.
There are several packages that conflict with each other, such as app-admin/FAM and app-admin/gamin-0.1.8, I do not have you, you do not have me. Therefore, they are all uninstalled.
Finally, all the block packages are killed and the upgrade can be started. Don't worry. The trouble is still coming.
Emerge-UDV world
At the beginning, everything went well. I felt inexplicably excited when I looked at the full screen "G ++-I" and so on.
Not long
>>> Merging sys-apps/dbus-1.0.2-r2/
Warn = bad = hilite = bracket = * adding group 'messagebus' to your system...
Warn = bad = hilite = bracket = *-groupid: Next available
/Usr/portage/eclass/eutils. eclass: Line 708: groupadd: Command not found

!!! Error: sys-apps/dbus-1.0.2-r2 failed.
Call Stack:
Ebuild. Sh, line 1631: called dyn_preinst
Ebuild. Sh, line 1079: called pkg_preinst
Dbus-1.0.2-r2.ebuild, line 99: called enewgroup 'messagebus'
Eutils. eclass, line 708: called Die

!!! Enewgroup 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/sys-apps/dbus-1.0.2-r2/temp/build. log '.

!!! Failed preinst: 1
No groupadd command.
Install gentoolkit and use equery belongs groupadd to delete sys-apps/shadow.
At the beginning, I was so excited about unmerge that I deleted sys-apps/shadow.

Later, some packages are related to the kernel, so you need to create a/usr/src/Linux link pointing to the Linux kernel source code. Make menuconfig is required for the source code.

Then a compilation error occurs. Google, find a patch. modify it.
Because emerge decompress the package to/var/tmp/portage:
Ebuild/var/tmp/portage/XXX/.../xxx. ebuild compile (Compilation)
Ebuild/var/tmp/portage/XXX/.../xxx. ebuild install (installation)
Ebuild/var/tmp/portage/XXX/.../xxx. ebuild qmerge (tell the system that this package has been installed .)

When the last 50 packages were installed, another problem occurred:
The following error occurs when you install gnome-extra/gnome-keyring-manager-2.16.0-r1:
Http://www.oasis-open.org/docbook/xml/4.2/ent/iso-box.ent:1: parser error: content error in the external subset
HTTP/1.1 200 OK
^
Http://www.oasis-open.org/docbook/xml/4.2/ent/iso-box.ent:1: parser error: content error in the external subset
HTTP/1.1 200 OK
^
Http://www.oasis-open.org/docbook/xml/4.2/ent/iso-box.ent:1: parser error: content error in the external subset
HTTP/1.1 200 OK
^
Unable to parse ES/gnome-keyring-manager.xml
Make [2]: *** [gnome-keyring-manager-es.omf] Error 6
Make [2]: Leaving directory '/var/tmp/portage/gnome-extra/gnome-keyring-manager-2.16.0-r1/work/gnome-keyring-manager-2.16.0/docs'
Make [1]: *** [All-recursive] Error 1
Make [1]: Leaving directory '/var/tmp/portage/gnome-extra/gnome-keyring-manager-2.16.0-r1/work/gnome-keyring-manager-2.16.0'
Make: *** [all] Error 2

!!! Error: gnome-extra/gnome-keyring-manager-2.16.0-r1 failed.
Call Stack:
Ebuild. Sh, line 1615: called dyn_compile
Ebuild. Sh, line 972: called qa_call 'src _ compile'
Ebuild. Sh, line 44: called src_compile
Ebuild. Sh, line 1305: called gnome2_src_compile
Gnome2.eclass, line 71: called Die

!!! Compile failure
!!! 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/gnome-extra/gnome-keyring-manager-2.16.0-r1/temp/build. log '.
It was found that the software package "app-text/docbook-XML-DTD" has been installed with version 4.4-R1 4.3 4.1.2-R6, but 4.2-r1 is still missing. This software package is not backward compatible. So an error occurred while parsing the file.

After three days and three nights of fighting, the system was upgraded to the latest status.

The most amazing thing is that after the software package is detached, the software that was originally opened can continue to run. After removing the xorg-x11 at that time, X continues to run. How to do it? (Of course, you can't run it if you turn off X and start it again .) In Windows, you are not allowed to uninstall it. It will prompt "the program is running and access is denied". However, although this is inconvenient, it is indeed safer.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.