Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strategies for updating after a year.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 277
Location: Kenzingen, Germany

PostPosted: Wed Feb 03, 2016 12:51 pm    Post subject: Strategies for updating after a year. Reply with quote

While it is probably so that most users of Gentoo update their systems frequently there are also other cases.

So how can one update a Gentoo system after a year?

I'm currently in that situation and there seem to be quite some problems with Python.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Wed Feb 03, 2016 1:32 pm    Post subject: Re: Strategies for updating after a year. Reply with quote

What is the problem exactly? Please pastebin your output here.
Back to top
View user's profile Send private message
freke
Guru
Guru


Joined: 23 Jan 2003
Posts: 434
Location: Somewhere in Denmark

PostPosted: Wed Feb 03, 2016 7:07 pm    Post subject: Reply with quote

I recently plugged in and updated a Kurobox after being powered off for 2 years - loads of blockers, but careful removing single packages and updating got me through it.
(ie. kernel 3.10.25, udev-208, GCC 4.7.something now updated to latest stable - 4.1.15, eudev-3.1.5 and gcc 4.9.3)

Also considering updating a Sun E400 which has been powered off for about 6 years (noise/electricity issues :)) but probably just gonna drive it to the dump-yard.
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 277
Location: Kenzingen, Germany

PostPosted: Wed Feb 03, 2016 8:37 pm    Post subject: Reply with quote

It looks basically like this:

# emerge --ask python

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

Calculating dependencies... done!
[ebuild U ] dev-lang/python-exec-2.1 [2.0.1-r1] PYTHON_TARGETS="(python3_5%*)"
[ebuild U ] app-eselect/eselect-python-20151117-r2 [20140125]
[blocks b ] <app-eselect/eselect-python-20151117 ("<app-eselect/eselect-python-20151117" is blocking dev-lang/python-exec-2.1)
[ebuild NS ] dev-lang/python-3.5.1-r2 [2.7.9-r2, 3.3.5-r1, 3.4.3] USE="gdbm ipv6 ncurses readline sqlite ssl threads xml -build -examples -hardened -libressl -tk -wininst"
[blocks B ] <dev-lang/python-3.4.3-r4:3.4 ("<dev-lang/python-3.4.3-r4:3.4" is blocking app-eselect/eselect-python-20151117-r2)
[blocks B ] <dev-lang/python-3.3.5-r4:3.3 ("<dev-lang/python-3.3.5-r4:3.3" is blocking app-eselect/eselect-python-20151117-r2)
[blocks B ] <dev-lang/python-2.7.10-r4:2.7 ("<dev-lang/python-2.7.10-r4:2.7" is blocking app-eselect/eselect-python-20151117-r2)

* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Feb 03, 2016 11:44 pm    Post subject: Reply with quote

reisntalling is faster. save over the configs..

3-4 months was the limit here to update a box in a reasonable time

--

you may set the python single target to 2.7 or 3.4. And the python targets to 2.7 and 3.4
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3690
Location: Hamburg

PostPosted: Thu Feb 04, 2016 8:48 am    Post subject: Reply with quote

Hhm, I upgraded a 1-year old x86 image w/ just few minor problems.

So what about "emerge -C eselect-python", upgrading @system (-DNU --with-bdeps=y maybe), then @world and eventually @preserved-rebuild ?
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Feb 04, 2016 12:40 pm    Post subject: Reply with quote

Generally after six months, certainly after a year, reinstalling from a Stage 3 is easier and quicker.

Will
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Feb 04, 2016 1:21 pm    Post subject: Reply with quote

so many things have changed regarding config files => make.conf regarding cpuflags ... / new xorg structure ... / python single targets ...

maybe there is more which i already forgot
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Thu Feb 04, 2016 2:55 pm    Post subject: Reply with quote

Sorry for (maybe) trolling :oops: , but... what about learning ? Updating an old installation may indeed cause some troubles, but it's a way like any other to understand how do GNU/linux and our preferred distro work, and how to avoid or fix future problems.
Will linux (and, a fortiori, Gentoo) become like Windows, when "if there's a problem, reboot. If the problem persists, reinstall" ?

Here, YPenguin submits a difficulty he encounters when trying to update his system. Perhaps there will be others when this one will be solved, but let's try to help him, as long as he prefers carrying on rather than rebuilding from scratch.

One more time, my apoligies for this deviation. I just give my opinion, please don't feel offended, that's not my intention. :wink:

So...

@YPenguin :
About the python updates blocking, you should try to update the packages one by one. Potentially, version by version, for python, because of multi-slots. Each updated package is a one less blocking risk.
Be careful if you have to uninstall eselect-python, as it provides the /usr/bin/python symlink, which is called by all the portage scripts (like emerge). You may have to call "/usr/bin/python-<version> /usr/bin/emerge" then.

If not already done, have a look on the news notices, that can help you saving much time (but I don't think there's one about eselect-python, by the way).
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 277
Location: Kenzingen, Germany

PostPosted: Fri Feb 05, 2016 11:05 am    Post subject: Reply with quote

Additional Info:
Code:
# emerge --info
Portage 2.2.27 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.22-r1, 4.4.1-gentoo x86_64)
=================================================================
System uname: Linux-4.4.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:     8162888 total,   6062440 free
KiB Swap:    8000364 total,   8000364 free
Timestamp of repository gentoo: Fri, 05 Feb 2016 09:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.2.4-r1::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x google-chrome Oracle-BCLA-JavaSE skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d a52 aac aacs acl acpi alsa amd64 berkdb bidi binary bluetooth bluray branding bzip2 cairo calendar cdda cdr chm cli cmake consolekit corefonts cracklib crypt cups cxx dbus declarative djvu dot dri dts dvd dvdr ebook embedded emboss encode exif fam fat fdformat ffmpeg firefox flac floppy fluidsynth fortran gbm gdbm gif glamor gnome gpm grammar gstreamer gtk handbook iconv icu ide import-filter ipv6 java javascript jit jpeg kde kdepim kipi lcms ldap libnotify mad math midi mikmod mmx mmxext mng mobi mod modules mp3 mp4 mpeg multilib ncurses network nls nptl nsplugin ntfs ntfsdecrypt objc ogg opencl opengl openmp osd pam pango pcre pcre16 pdf phonon plasma png policykit popcnt ppds printsupport pulseaudio qt3support qt4 qthelp quotes rar readline rtf scanner sdl seccomp semantic-desktop session sndfile soprano sound source spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd thesaurus threads tiff truetype udev udisks unicode upower usb vdpau vorbis webkit widgets wmf wxwidgets x264 xattr xcb xcomposite xinerama xml xrandr xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21 ruby23" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Fri Feb 05, 2016 11:32 am    Post subject: Reply with quote

may i ask

Quote:
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x google-chrome Oracle-BCLA-JavaSE skype-4.0.0.7-copyright"


* means anything, so why bother listing the other stuff?

Code:
ASUS-G75VW roman # grep \* /etc/make.conf
ACCEPT_LICENSE="*"
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 277
Location: Kenzingen, Germany

PostPosted: Fri Feb 05, 2016 3:06 pm    Post subject: Reply with quote

I also had problems with Perl (5.20->5.22). However that got solved by 'perl-cleaner --all'.
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 277
Location: Kenzingen, Germany

PostPosted: Sat Feb 06, 2016 3:04 pm    Post subject: Reply with quote

I found this report by another user that might be helpful in finding a solution:
http://gentoovps.net/gentoo-updating-old-system/
Back to top
View user's profile Send private message
YPenguin
Apprentice
Apprentice


Joined: 26 Apr 2014
Posts: 277
Location: Kenzingen, Germany

PostPosted: Sun Feb 14, 2016 7:43 pm    Post subject: Solution Reply with quote

I solved the python-problem using: emerge -avuDN --backtrack=100 world
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Sun Feb 14, 2016 8:34 pm    Post subject: Reply with quote

Good that you got python working. I would next try to update system, if gcc changes, I would (did) keep the old version via gcc-config until the big update is over. After system, if you are using an Window manager like Mate, kde, Gnome, et cetera, I would update the base. Finally, I would do the world update.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum