View previous topic :: View next topic |
Author |
Message |
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
Posted: Wed Oct 07, 2015 10:50 am Post subject: bash: /usr/bin/emerge does not exist [SOLVED] |
|
|
Hi, I updated portage today and a list of packages
Code: |
>>> Em>>> Verifying ebuild manifests
>>> Emerging (1 of 27) dev-lang/python-exec-2.0.2::gentoo
>>> Installing (1 of 27) dev-lang/python-exec-2.0.2::gentoo
>>> Emerging (2 of 27) media-libs/freetype-2.6.1::gentoo
>>> Installing (2 of 27) media-libs/freetype-2.6.1::gentoo
>>> Emerging (3 of 27) net-misc/curl-7.45.0::gentoo
>>> Installing (3 of 27) net-misc/curl-7.45.0::gentoo
>>> Emerging (4 of 27) dev-tex/xmltex-1.9-r2::gentoo
>>> Installing (4 of 27) dev-tex/xmltex-1.9-r2::gentoo
>>> Emerging (5 of 27) app-text/passivetex-1.25::gentoo
>>> Installing (5 of 27) app-text/passivetex-1.25::gentoo
>>> Emerging (6 of 27) app-text/xmlto-0.0.26::gentoo
>>> Installing (6 of 27) app-text/xmlto-0.0.26::gentoo
>>> Emerging (7 of 27) dev-python/cython-0.23.3-r1::sage-on-gentoo
>>> Installing (7 of 27) dev-python/cython-0.23.3-r1::sage-on-gentoo
>>> Emerging (8 of 27) media-libs/libass-0.13.0::gentoo
>>> Installing (8 of 27) media-libs/libass-0.13.0::gentoo
>>> Emerging (9 of 27) dev-db/postgresql-9.4.4-r2::gentoo
>>> Installing (9 of 27) dev-db/postgresql-9.4.4-r2::gentoo
>>> Emerging (10 of 27) x11-misc/shared-mime-info-1.5::gentoo
>>> Installing (10 of 27) x11-misc/shared-mime-info-1.5::gentoo
>>> Emerging (11 of 27) x11-themes/adwaita-icon-theme-3.16.2.2::gentoo
>>> Installing (11 of 27) x11-themes/adwaita-icon-theme-3.16.2.2::gentoo
>>> Emerging (12 of 27) x11-misc/xdg-utils-1.1.1::gentoo
>>> Installing (12 of 27) x11-misc/xdg-utils-1.1.1::gentoo
>>> Emerging (13 of 27) net-libs/libssh-0.7.2::gentoo
>>> Installing (13 of 27) net-libs/libssh-0.7.2::gentoo
>>> Emerging (14 of 27) media-video/ffmpeg-2.8-r1::gentoo
>>> Installing (14 of 27) media-video/ffmpeg-2.8-r1::gentoo
>>> Emerging (15 of 27) media-video/mplayer-1.2-r1::gentoo
>>> Failed to emerge media-video/mplayer-1.2-r1, Log file:
>>> '/var/tmp/portage/media-video/mplayer-1.2-r1/temp/build.log'
>>> Emerging (1 of 12) dev-db/postgresql-9.3.9-r1::gentoo
>>> Installing (1 of 12) dev-db/postgresql-9.3.9-r1::gentoo
>>> Emerging (2 of 12) net-misc/iputils-20150815-r1::gentoo
>>> Installing (2 of 12) net-misc/iputils-20150815-r1::gentoo
>>> Failed to execute postinst for net-misc/iputils-20150815-r1
>>> Emerging (3 of 12) app-text/mupdf-1.7a-r1::gentoo
>>> Installing (3 of 12) app-text/mupdf-1.7a-r1::gentoo
>>> Emerging (4 of 12) mail-client/mutt-1.5.24-r2::gentoo
>>> Installing (4 of 12) mail-client/mutt-1.5.24-r2::gentoo
>>> Emerging (5 of 12) app-antivirus/clamav-0.98.7-r1::gentoo
>>> Installing (5 of 12) app-antivirus/clamav-0.98.7-r1::gentoo
>>> Emerging (6 of 12) sci-libs/scipy-0.16.0::gentoo
>>> Installing (6 of 12) sci-libs/scipy-0.16.0::gentoo
>>> Emerging (7 of 12) dev-vcs/git-2.6.1-r1::gentoo
>>> Installing (7 of 12) dev-vcs/git-2.6.1-r1::gentoo
>>> Emerging (8 of 12) net-misc/youtube-dl-2015.10.06.2::gentoo
>>> Installing (8 of 12) net-misc/youtube-dl-2015.10.06.2::gentoo
>>> Emerging (9 of 12) x11-libs/fltk-1.3.3-r3::gentoo
>>> Installing (9 of 12) x11-libs/fltk-1.3.3-r3::gentoo
>>> Emerging (10 of 12) media-gfx/exiv2-0.25-r1::gentoo
>>> Installing (10 of 12) media-gfx/exiv2-0.25-r1::gentoo
>>> Emerging (11 of 12) net-analyzer/net-snmp-5.7.3-r2::gentoo
>>> Installing (11 of 12) net-analyzer/net-snmp-5.7.3-r2::gentoo
>>> Emerging (12 of 12) net-libs/neon-0.30.1-r1::gentoo
>>> Installing (12 of 12) net-libs/neon-0.30.1-r1::gentoo
|
Then, I have a list fo preserved Code: | !!! existing preserved libs:
>>> package: media-video/ffmpeg-2.8-r1
* - /usr/lib64/libswresample.so.1
* - /usr/lib64/libswresample.so.1.2.101
* - /usr/lib32/libavutil.so.54
* - /usr/lib32/libavutil.so.54.31.100
* used by /usr/lib32/gstreamer-0.10/libgstffmpeg.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* used by /usr/lib32/gstreamer-0.10/libgstffmpegscale.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* used by /usr/lib32/gstreamer-0.10/libgstpostproc.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* used by /usr/lib32/gstreamer-1.0/libgstlibav.so (media-plugins/gst-plugins-libav-1.4.5-r2)
* - /usr/lib32/libswscale.so.3
* - /usr/lib32/libswscale.so.3.1.101
* used by /usr/lib32/gstreamer-0.10/libgstffmpegscale.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* - /usr/lib32/libswresample.so.1
* - /usr/lib32/libswresample.so.1.2.101
* - /usr/lib32/libpostproc.so.53
* - /usr/lib32/libpostproc.so.53.3.100
* used by /usr/lib32/gstreamer-0.10/libgstpostproc.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* - /usr/lib32/libavcodec.so.56
* - /usr/lib32/libavcodec.so.56.60.100
* used by /usr/lib32/gstreamer-0.10/libgstffmpeg.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* used by /usr/lib32/gstreamer-0.10/libgstpostproc.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* used by /usr/lib32/gstreamer-1.0/libgstlibav.so (media-plugins/gst-plugins-libav-1.4.5-r2)
* - /usr/lib64/libavdevice.so.56
* - /usr/lib64/libavdevice.so.56.4.100
* used by /usr/bin/blender (media-gfx/blender-2.72b-r3)
* used by /usr/bin/blenderplayer (media-gfx/blender-2.72b-r3)
* used by /usr/bin/ffmpeg2theora (media-video/ffmpeg2theora-0.29-r2)
* - /usr/lib32/libavformat.so.56
* - /usr/lib32/libavformat.so.56.40.101
* used by /usr/lib32/gstreamer-0.10/libgstffmpeg.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* used by /usr/lib32/gstreamer-1.0/libgstlibav.so (media-plugins/gst-plugins-libav-1.4.5-r2)
* - /usr/lib64/libavutil.so.54
* - /usr/lib64/libavutil.so.54.31.100
* used by /usr/bin/blender (media-gfx/blender-2.72b-r3)
* used by /usr/bin/blenderplayer (media-gfx/blender-2.72b-r3)
* used by /usr/bin/ffmpeg2theora (media-video/ffmpeg2theora-0.29-r2)
* used by 16 other files
* - /usr/lib64/libavresample.so.2
* - /usr/lib64/libavresample.so.2.1.0
* used by /usr/lib64/libffms2.so.3.0.0 (media-libs/ffmpegsource-2.20)
* - /usr/lib64/libavfilter.so.5
* - /usr/lib64/libavfilter.so.5.40.101
* - /usr/lib64/libavformat.so.56
* - /usr/lib64/libavformat.so.56.40.101
* used by /usr/bin/blender (media-gfx/blender-2.72b-r3)
* used by /usr/bin/blenderplayer (media-gfx/blender-2.72b-r3)
* used by /usr/bin/ffmpeg2theora (media-video/ffmpeg2theora-0.29-r2)
* used by 10 other files
* - /usr/lib64/libavcodec.so.56
* - /usr/lib64/libavcodec.so.56.60.100
* used by /usr/bin/blender (media-gfx/blender-2.72b-r3)
* used by /usr/bin/blenderplayer (media-gfx/blender-2.72b-r3)
* used by /usr/bin/ffmpeg2theora (media-video/ffmpeg2theora-0.29-r2)
* used by 25 other files
* - /usr/lib64/libpostproc.so.53
* - /usr/lib64/libpostproc.so.53.3.100
* used by /usr/bin/ffmpeg2theora (media-video/ffmpeg2theora-0.29-r2)
* used by /usr/bin/mencoder (media-video/mplayer-1.2_pre20150730)
* used by /usr/bin/mplayer (media-video/mplayer-1.2_pre20150730)
* used by /usr/lib64/gstreamer-0.10/libgstpostproc.so (media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r4)
* - /usr/lib64/libswscale.so.3
* - /usr/lib64/libswscale.so.3.1.101
* used by /usr/bin/blender (media-gfx/blender-2.72b-r3)
* used by /usr/bin/blenderplayer (media-gfx/blender-2.72b-r3)
* used by /usr/bin/ffmpeg2theora (media-video/ffmpeg2theora-0.29-r2)
* used by 6 other files
>>> package: sys-libs/ncurses-6.0-r1
* - /lib64/libncurses.so.5
* - /lib64/libncurses.so.5.9
* used by /usr/bin/intersci (sci-mathematics/scilab-5.5.2)
* used by /usr/bin/scilab-bin (sci-mathematics/scilab-5.5.2)
* used by /usr/bin/scilab-cli-bin (sci-mathematics/scilab-5.5.2)
* used by 68 other files
>>> package: net-libs/neon-0.30.1-r1
* - /usr/lib64/libneon.so.27
* - /usr/lib64/libneon.so.27.3.1
* used by /usr/lib64/libreoffice/program/libucpdav1.so (app-office/libreoffice-5.0.2.2)
>>> package: media-libs/libass-0.13.0
* - /usr/lib64/libass.so.5
* - /usr/lib64/libass.so.5.1.2
* used by /usr/bin/aegisub-3.1 (media-video/aegisub-3.1.3)
* used by /usr/bin/mencoder (media-video/mplayer-1.2_pre20150730)
* used by /usr/bin/mplayer (media-video/mplayer-1.2_pre20150730)
* used by 2 other files
* - /usr/lib32/libass.so.5
* - /usr/lib32/libass.so.5.1.2
* used by /usr/lib32/gstreamer-0.10/libgstassrender.so (media-plugins/gst-plugins-assrender-0.10.23-r1)
* used by /usr/lib32/gstreamer-1.0/libgstassrender.so (media-plugins/gst-plugins-assrender-1.4.5)
>>> package: net-analyzer/net-snmp-5.7.3-r2
* - /usr/lib64/libnetsnmp.so.30
* - /usr/lib64/libnetsnmp.so.30.0.3
* used by /usr/lib64/libhpmud.so.0.0.6 (net-print/hplip-3.15.9)
>>> package: net-libs/libssh-0.7.2
* - /usr/lib32/libssh.so.4
* - /usr/lib32/libssh.so.4.4.0
* used by /usr/lib32/libavformat.so.56 (preserved)
* used by /usr/lib32/libavformat.so.56.40.101 (preserved)
* - /usr/lib64/libssh.so.4
* - /usr/lib64/libssh.so.4.4.0
* used by /usr/bin/hydra (net-analyzer/hydra-8.1)
>>> package: x11-libs/fltk-1.3.3-r3
* - /usr/lib64/fltk/libfltk.so.1.3
* used by /usr/bin/dillo (www-client/dillo-3.0.5)
* used by /usr/lib64/dillo/dpi/downloads/downloads.dpi (www-client/dillo-3.0.5)
* used by /usr/lib64/octave/4.0.0/oct/x86_64-pc-linux-gnu/__fltk_uigetfile__.oct (sci-mathematics/octave-4.0.0)
* used by /usr/lib64/octave/4.0.0/oct/x86_64-pc-linux-gnu/__init_fltk__.oct (sci-mathematics/octave-4.0.0)
* - /usr/lib64/fltk/libfltk_gl.so.1.3
* used by /usr/lib64/octave/4.0.0/oct/x86_64-pc-linux-gnu/__fltk_uigetfile__.oct (sci-mathematics/octave-4.0.0)
* used by /usr/lib64/octave/4.0.0/oct/x86_64-pc-linux-gnu/__init_fltk__.oct (sci-mathematics/octave-4.0.0)
>>> package: dev-db/postgresql-9.3.9-r1
* - /usr/lib64/postgresql-9.3/lib64/libpq.so.5
* - /usr/lib64/postgresql-9.3/lib64/libpq.so.5.6
* used by /usr/lib64/php5.5/apache2/libphp5.so (dev-lang/php-5.5.16)
* used by /usr/lib64/php5.5/bin/php (dev-lang/php-5.5.16)
* used by /usr/lib64/php5.5/bin/php-cgi (dev-lang/php-5.5.16)
* used by 3 other files
>>> package: net-misc/curl-7.45.0
* - /usr/lib32/libcurl.so.4
* - /usr/lib32/libcurl.so.4.4.0
* used by /usr/lib32/libquvi.so.7.0.1 (media-libs/libquvi-0.4.1-r2)
* - /usr/lib64/libcurl.so.4
* - /usr/lib64/libcurl.so.4.4.0
* used by /usr/bin/ario (media-sound/ario-1.5.1)
* used by /usr/bin/boinc (sci-misc/boinc-7.2.0-r1)
* used by /usr/bin/boinc_client (sci-misc/boinc-7.2.0-r1)
* used by 75 other files
>>> package: media-libs/freetype-2.6.1
* - /usr/lib64/libfreetype.so.6
* - /usr/lib64/libfreetype.so.6.12.0
* used by /opt/firefox/browser/components/libbrowsercomps.so (www-client/firefox-bin-39.0)
* used by /opt/firefox/crashreporter (www-client/firefox-bin-39.0)
* used by /opt/firefox/libxul.so (www-client/firefox-bin-39.0)
* used by 265 other files
* - /usr/lib32/libfreetype.so.6
* - /usr/lib32/libfreetype.so.6.12.0
* used by /usr/lib32/gtk-2.0/2.10.0/engines/libpixmap.so (x11-libs/gtk+-2.24.28-r1)
* used by /usr/lib32/gtk-2.0/2.10.0/engines/libxfce.so (x11-themes/gtk-engines-xfce-3.2.0-r200)
* used by /usr/lib32/gtk-2.0/2.10.0/immodules/im-am-et.so (x11-libs/gtk+-2.24.28-r1)
* used by 55 other files
>>> package: app-text/mupdf-1.7a-r1
* - /usr/lib64/libmupdf.so.1.7
* used by /usr/lib64/zathura/pdf.so (app-text/zathura-pdf-mupdf-0.2.8)
>>> package: sci-libs/gdal-2.0.0-r1
* - /usr/lib64/libgdal.so.1
* - /usr/lib64/libgdal.so.1.11.2
* used by /usr/lib64/gdalplugins/gdal_GRASS.so (sci-geosciences/gdal-grass-1.4.3-r1)
* used by /usr/lib64/gdalplugins/ogr_GRASS.so (sci-geosciences/gdal-grass-1.4.3-r1)
* used by /usr/lib64/grass64/bin/g.proj (sci-geosciences/grass-6.4.3-r1)
* used by 10 other files
>>> package: media-gfx/exiv2-0.25-r1
* - /usr/lib64/libexiv2.so.13
* - /usr/lib64/libexiv2.so.13.0.0
* used by /usr/bin/geeqie (media-gfx/geeqie-1.2.2)
|
To sum up, now every time I want to use emerge it says Code: | bash: /usr/bin/emerge: No existe el fichero o el directorio |
Well, in /usr/bin, there is only /usr/bin/emerge-webrsync
What can I do, any hints?
My portage version is now 2.2.22-r2 from "multilib-portage" /var/lib/layman/multilib-portage
Bye and thanks in advance
If it is of use, my make.conf
Code: | CFLAGS="-march=amdfam10 -mcx16 -msahf -O2"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
ACCEPT_KEYWORDS="~amd64"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-ipv6 udisks upower policykit gtkstyle consolekit -libav sse3 sse4_1 3dnowext 3dnow caps -xattr gmp jit curl lapack pam dbus jpeg png jpeg2k fontconfig corefonts python gtk gtk3 bindist -gnome -kde jpg png mysql postgres emacs latex sqlite threads -java vl4 accessibility -bluetooth udev -pulseaudio vdpau int64 evdev -qt4 qt5 fbcondecor xft"
# FEATURES="ccache"
# CCACHE_SIZE="2G"
# CCACHE_DIR="/var/tmp/ccache"
CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a"
PORTAGE_NICENESS=19
AUTOCLEAN="yes"
LINGUAS="es es_ES"
INPUT_DEVICES="evdev"
VIDEO_CARDS="nouveau"
PHP_INI_VERSION="production"
USE_PYTHON="2.7 3.4"
PYTHON_TARGETS="python2_7 python3_4"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/"
PORTDIR=/usr/portage
# PORTDIR_OVERLAY=/usr/local/portage
# Default: "rsync://rsync.gentoo.org/gentoo-portage"
# North America: "rsync://rsync.namerica.gentoo.org/gentoo-portage"
# South America: "rsync://rsync.samerica.gentoo.org/gentoo-portage"
# Asia: "rsync://rsync.asia.gentoo.org/gentoo-portage"
# Australia: "rsync://rsync.au.gentoo.org/gentoo-portage"
# SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
# SYNC="rsync://192.168.10.119/gentoo-portage"
# SYNC="rsync://rsync2.fr.gentoo.org/gentoo-portage"
source /var/lib/layman/make.conf
# SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" |
_________________ Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit.
Last edited by Zagloj on Wed Oct 14, 2015 11:53 am; edited 1 time in total |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Oct 07, 2015 10:59 am Post subject: |
|
|
hi.
i saw several times in this forum, that you could run emerge with the usage of python.
something like
/link_to_python_interpreter emerge_script.
I may want to ask you to google that / use the forum for that. Just giving you a general direction for that issue.
e.g.
https://forums.gentoo.org/viewtopic-t-1006016.html
Quote: | > # /usr/lib/python-exec/python3.3/emerge -av portage |
something like that, you need to test it out yourself ... |
|
Back to top |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
Posted: Wed Oct 07, 2015 11:03 am Post subject: |
|
|
Thanks, I will look for that, I was googling and using the forums search but no results with my keywords, I am not sure which ones to use, "portage broken" mabe? "emerge does not exist" is not very good to find results in google.
Wait, just saw you edited, sry
[EDIT]I will report the results later, it is working, in nine years with this gentoo installation never had a problem like that, I even updated it after getting 3 years old, I think my searching skills are no good anymore
Well, I couldn't emerge the new portage anymore, so I downgraded portage, it did well with emerge, but the problem persist and, moreover, I can not find the emerge script in the system anymore, what a mess, I will try to download a stage and see if I can recover this, like said here:
https://forums.gentoo.org/viewtopic-p-6677105.html
[EDIT2]
Sorry, but I can't get this fixed, at least not today, I will try in the weekend, this is eating my, not so big, spare time. I tried installing a fresh python from tinderbox, with Code: | tar xpf python-2.7.9-r1.tbz2 -C / | But I don't have emerge, at least I have python-exec, but not emerge inside, not my day, I hope to see this problem later and find the solution, sorry to bother with a recurrent problem, I was reading the forums and at the end decided to install a fresh python that way, thougt it was a good idea, now locate does not find "emerge" on my filesystem, good night and thanks whoever reads this.
Oh and btw Code: | python-updater
/usr/sbin/python-updater: línea 156: /usr/bin/portageq: No existe el fichero o el directorio
/usr/sbin/python-updater: línea 156: /usr/bin/portageq: No existe el fichero o el directorio
* Python 2 and Python 3 not installed |
But I can launch the interpreter and Code: | eselect python list
Available Python interpreters:
[1] python2.7 *
[2] python3.3
[3] python3.4 |
_________________ Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit. |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Thu Oct 08, 2015 9:50 am Post subject: |
|
|
Maybe this helps
Code: | Knight ~ # ls -alh /usr/lib/python-exec/python-exec2
-rwxr-xr-x 1 root root 1,5K Okt 6 12:17 /usr/lib/python-exec/python-exec2
Knight ~ # ls -alh /usr/bin/emerge
lrwxrwxrwx 1 root root 31 Sep 25 12:38 /usr/bin/emerge -> ../lib/python-exec/python-exec2
|
Code: | head /usr/bin/emerge
#!/usr/lib/python-exec/python-exec2-c
# vim:fileencoding=utf-8:ft=python
# (c) 2012 Michał Górny
# Released under the terms of the 2-clause BSD license.
#
# This is not the script you are looking for. This is just a wrapper.
# The actual scripts of this application were installed
# in subdirectories of /usr/lib/python-exec.
# You are most likely looking for one of those.
|
here is the bugger. Well i have set portage/emerge to python2.7 profile, so it is here
Code: |
pwd
/usr/lib/python-exec/python2.7
Knight python2.7 # cat emerge
#!/usr/bin/python2.7 -b
# Copyright 2006-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from __future__ import print_function
import platform
import signal
import sys
# This block ensures that ^C interrupts are handled quietly. We handle
# KeyboardInterrupt instead of installing a SIGINT handler, since
# exiting from signal handlers intermittently causes python to ignore
# the SystemExit exception with a message like this:
# Exception SystemExit: 130 in <function remove at 0x7fd2146c1320> ignored
try:
def exithandler(signum, _frame):
signal.signal(signal.SIGTERM, signal.SIG_IGN)
sys.exit(128 + signum)
signal.signal(signal.SIGTERM, exithandler)
# Prevent "[Errno 32] Broken pipe" exceptions when
# writing to a pipe.
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
def debug_signal(_signum, _frame):
import pdb
pdb.set_trace()
if platform.python_implementation() == 'Jython':
debug_signum = signal.SIGUSR2 # bug #424259
else:
debug_signum = signal.SIGUSR1
signal.signal(debug_signum, debug_signal)
from os import path as osp
if osp.isfile(osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), ".portage_not_installed")):
sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym"))
import portage
portage._internal_caller = True
portage._disable_legacy_globals()
from _emerge.main import emerge_main
if __name__ == "__main__":
from portage.exception import IsADirectory, ParseError, \
PermissionDenied
try:
retval = emerge_main()
except PermissionDenied as e:
sys.stderr.write("Permission denied: '%s'\n" % str(e))
sys.exit(e.errno)
except IsADirectory as e:
sys.stderr.write("'%s' is a directory, but should be a file!\n"
"See portage man page for information on "
"which files may be directories.\n" %
str(e))
sys.exit(e.errno)
except ParseError as e:
sys.stderr.write("%s\n" % str(e))
sys.exit(1)
except (KeyboardInterrupt, SystemExit):
raise
except Exception:
# If an unexpected exception occurs then we don't want the
# mod_echo output to obscure the traceback, so dump the
# mod_echo output before showing the traceback.
import traceback
tb_str = traceback.format_exc()
try:
from portage.elog import mod_echo
except ImportError:
pass
else:
mod_echo.finalize()
sys.stderr.write(tb_str)
sys.exit(1)
sys.exit(retval)
except KeyboardInterrupt:
sys.stderr.write("\n\nExiting on signal %(signal)s\n" %
{"signal": signal.SIGINT})
sys.stderr.flush()
sys.exit(128 + signal.SIGINT)
Knight python2.7 #
|
I never dealt with such issues. You may check out these directories above and see whats there on your box. |
|
Back to top |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
Posted: Thu Oct 08, 2015 10:10 am Post subject: |
|
|
Thanks, I am on another system now, after installing python from the tinderbox, I started to have libstdc6 problems with most of the installed programs (I did a search and it seems ABI problem but I guess it is related to python installed, maybe wrong binary from tinderbox, cause I update my system weekly and I use gcc 4.8.3 from a long time), can not start fvwm, did not try another wm, I could check, so I have to reboot, copy results to this partition and reboot again.
I was looking a lot of times at this: https://wiki.gentoo.org/wiki/Project:Portage/Fixing_broken_portage
But: Quote: | These instructions do not work with portage-2.2.13 or later, which is installed by running its setup.py script. |
Can I search in distfiles for the portage and, then, how to install using the setup.py by hand? Sorry about the basic question, I think that it is inside portage compressed package but not sure.
Quote: | /usr/lib/python-exec/python-exec2 |
At least I am sure that this file exists, I remember that, /usr/bin/emerge not, but I will give a try with Quote: | ls -alh /usr/bin/emerge |
Must go to work in 2 hours, not sure if I do all this or wait until noon.
Bye and thanks again for the help!
Btw I use amd64, multilib, what would be the python binary right for this?
[EDIT]
Done, no much luck:
Code: | ls -alh /usr/lib/python-exec/python-exec2
-rwxr-xr-x 1 root root 1,5K oct 4 18:35 /usr/lib/python-exec/python-exec2 |
For the rest of the commands, does file or directory does not exist is the only result
And more on this, I tried
Code: | wget http://mirrors.kernel.org/gentoo/distfiles/Python-2.7.10.tar.xz
tar xJvf Python-2.7.10.tar.bz2
cd Python-2.7.10
./configure --prefix=/usr --infodir=/usr/share/info/ --mandir=/usr/share/man
make
make install |
And in the configure I had:
Code: | checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
|
[ADDED]
I downloaded python from Code: | http://tinderbox.dev.gentoo.org/default-linux/amd64/dev-lang/ | In tinderbox, not sure if it is the right one. _________________ Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit. |
|
Back to top |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
Posted: Sun Oct 11, 2015 4:15 am Post subject: |
|
|
Hi, sorry about the bump, but I am following the Neddy post about recovering an installation now:
https://forums.gentoo.org/viewtopic-p-7358388.html?sid=bcb313b92e9b1c6f4d084cc661d2a93d#7358388
The problem is that I got the message about make.profile not pointing to an existing profile, and there is not /usr/portage/profiles directory, dont know why, but as in the guidelines is advised not to --sync until the system is recovered, and I read in many threads that syncing is the solution to that problem, so... I'm not sure what to do, is the third time I do the chroot (this night), the first time I had not that problem, I could install packages.
I am a bit lost, so sorry about my writing, is 6:15 am here after all the night with this and english is not my first language. _________________ Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit. |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Mon Oct 12, 2015 4:48 am Post subject: |
|
|
It is up to you at the end of the day waht you do or not do.
General advise make backups (i should do that also more often)
I usually just tweak around. Most often it works sometimes i screw up. But gentoo could be recovered several times her.
I think when you provide the structures you should be able to get the box running again. But that needs a lot of efforts sometimes to read.
I also do not know when a dirty approach, like pulling over a stage 3 is even recommended and works?
the world file can be read out, it is somewhere in the box.
Personal expierence recently, sometimes you need to keep going, and it takes a long time: I also needed around 4-days to get uefi / gpt / grub2 working because I used before only old type bios with old type mbr stuff with grub2, and ofc making a new kernel, get display running / backlight and such.... |
|
Back to top |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
Posted: Mon Oct 12, 2015 11:44 am Post subject: |
|
|
Well, at the end, I reinstalled (all generating binaries from the chroot) some packages (12 or so, which required more than 200 deps) and most of the programs are working, web browsers, emacs, mutt, fvwm, emerge still is missing (I reinstalled python but nothing changes), but as the box is working, I will give it time, as you say, I think the problem is that I didnt have a major problem since years and I get the guard down:P At least I have the chroot here to build packages when I need to repair something.
Bye and thanks for your time _________________ Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Mon Oct 12, 2015 1:21 pm Post subject: |
|
|
You should be able to download a binpkg for sys-apps/portage from the same tinderbox.
Be sure to thank Patrick (bonsaikitten on IRC) for supplying the packages you've used to recover.
For reference, there's a tip here from desultory on recovering python using the tinderbox. (using a binhost is next post down.)
You don't need it, but someone else might, in future. |
|
Back to top |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
Posted: Mon Oct 12, 2015 7:34 pm Post subject: |
|
|
Thanks! I found the tip from NeddySeagon in your great thread So, I can simply generate my portage bin? I mean, I was following the chroot method with the --rbind /usr/portage and then building with buildpkg feature to use the binaries outside the chroot, is it the same for portage?, I don't want to get anything broken again, cause it was a headache to get this nearly working.
Sorry about my english
Patrick is the forums nick? If he is not in the forums Ill try to get into the IRC to thank him, I have to thank you and Neddy too
If it is of help on the portage thing (my make.conf is fine, and gcc installed with fresh binaries, compiled with my USE flags)
Code: | gcc-config -l
* gcc-config: Could not get portage CHOST!
* gcc-config: You should verify that CHOST is set in one of these places:
* gcc-config: - //etc/portage/make.conf
* gcc-config: - active environment |
[EDIT/ADD]
I have my doubts about portage because I lost a chroot before when I did an emerge portage, this is the version to emerge: But I see in zugaina that there is Then, should I try to get that version? (I would need a sync or a direct binary) The one eix reports as installed is 2.2.22 _________________ Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit. |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Tue Oct 13, 2015 11:04 am Post subject: |
|
|
Zagloj wrote: | So, I can simply generate my portage bin? I mean, I was following the chroot method with the --rbind /usr/portage and then building with buildpkg feature to use the binaries outside the chroot, is it the same for portage? |
Huh? You should be able to chroot in and simply run emerge -K portage after you have dropped the binpkg into your PKGDIR.
Code: | gcc-config -l
* gcc-config: Could not get portage CHOST!
* gcc-config: You should verify that CHOST is set in one of these places:
* gcc-config: - //etc/portage/make.conf
* gcc-config: - active environment | CHOST is the runtime machine that will use the packages you build. For the vast majority of cases that's the same as CBUILD, and should be set from your profile.
What is the output of: Code: | ls -ld /etc/portage/make.profile |
Don't worry about the version of portage: just get a relatively recent one running, and upgrade from there as normal.
Hmm, I think I may have overloaded you a bit; really it's as simple as downloading a binpkg, sticking it in PKGDIR, and running: emerge -K sys-apps/portage
(Also: it's not the tinderbox url, but packages.)
PKGDIR defaults to /usr/portage/packages but I prefer /var/pkg ie: in /etc/portage/make.conf
If you cannot run emerge, then you can simply use the .tbz2 file as a tarball and untar it to / with either -C / or -C /mnt/gentoo -- you'll get a warning message about excess data after the end of the bz2, but just ignore it. (It's the metadata for the package: see man qtbz2 if you have portage-utils.)
If you need to do this, you MUST then use the new portage to emerge itself, so it knows about the files going forward.
For live support, ask in #gentoo on IRC: chat.freenode.net (or .org) |
|
Back to top |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
Posted: Wed Oct 14, 2015 11:53 am Post subject: |
|
|
¡Thanks all! I finally got it, I installed the binary (I couldn't emerge -K, cause the start of my problems was that I couldn't use emerge), generated with --buildpkgopnly in the chroot, that way, I didn't change my chroot, which was working, after installing the binary I can emerge, I was rebuilding a lot of packages, indeed I am still with the --preserved-rebuild, and slim is giving me headaches (it seems is falling into the deprecated hell slowly).
Well, I did it! thanks tw04l124 and steve! And Patrick and Neddy
To sum up the steps who helped me to solve this were to take a stage 3 into a chroot and use is to build my packages in binaries, mainly gcc, python and portage.
Bye and thanks a lot
Oh, after installed portage the gcc-config works fine, it had to do something with that (I only installed portage and tried after that, so I can guess it was related) _________________ Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit. |
|
Back to top |
|
|
|
|
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
|
|