Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] messed up after installing google plugin from .deb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lea0014
n00b
n00b


Joined: 09 Mar 2010
Posts: 24

PostPosted: Tue Jun 25, 2013 11:07 pm    Post subject: [SOLVED] messed up after installing google plugin from .deb Reply with quote

I was trying to install this plugin, following a guide:
Code:
mkdir goog; cd goog
wget http://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb
ar vx google-talkplugin_current_amd64.deb
sudo tar xvzf data.tar.gz -C /

but it looks like i messed up the entire system. This is the goog directory tree:
Code:
dell-gentoo goog # ls -la
total 24572
drwxr-xr-x  5 root    root        4096 Jun 14 12:31 .
drwxr-xr-x 33 leandro leandro     4096 Jun 25 19:43 ..
-rw-r--r--  1 leandro leandro     7028 Jun 25 17:27 control.tar.gz
-rw-r--r--  1 leandro leandro 12555409 Jun 25 17:27 data.tar.gz
-rw-r--r--  1 leandro leandro        4 Jun 25 17:27 debian-binary
drwxr-xr-x  3 root    root        4096 Jun 14 12:31 etc
-rw-r--r--  1 leandro leandro 12562630 Jun 25 15:33 google-talkplugin_current_amd64.deb
drwxr-xr-x  3 root    root        4096 Jun 14 12:31 opt
drwxr-xr-x  4 root    root        4096 Jun 14 12:31 usr

First, there was no portage, and emerge command was not found. Then i re-download the portage tree, re-emerge portage and now im able to emerge again. But, i.e, i can't startx:
Code:
...

Errors from xkbcomp are not fatal to the X server
/usr/bin/openbox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
xinit: connection to X server lost

waiting for X server to shut down .Server terminated successfully (0). Closing log file.

xauth: (argv):1:  bad display name "dell-gentoo.mshome.net:0" in "remove" command


revdep-rebuild tells that it has to reinstall gcc, but it fails

Code:
dell-gentoo # cat /var/tmp/portage/sys-devel/gcc-4.6.3/temp/build.log
...
configure: error: in `/var/tmp/portage/sys-devel/gcc-4.6.3/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
 * ERROR: sys-devel/gcc-4.6.3 failed (compile phase):
 *   failed to run configure
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4254:  Called toolchain_src_compile
 *   environment, line 4938:  Called gcc_do_configure
 *   environment, line 2396:  Called die
 * The specific snippet of code:
 *       "${S}"/configure "${confgcc[@]}" || die "failed to run configure";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.6.3'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.6.3'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.6.3/work/build/gcc-build-logs.tar.bz2 in your bug report
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.6.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.6.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-4.6.3/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3'


I think that the problem is here:
Code:
dell-gentoo ~ # ls /usr/lib/
firefox  iceape  iceweasel  midbrowser  mozilla  portage  xulrunner  xulrunner-addons


Maybe untar that file to / messed up the entire /usr/lib?
This post is pretty bad formatted and wrote, my apologies. Thank you and help me please!


Last edited by lea0014 on Wed Jun 26, 2013 4:26 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Tue Jun 25, 2013 11:22 pm    Post subject: Reply with quote

For each file that you allowed the Google Debian package to overwrite, you must replace that file with the correct one for the system. If you build binary packages before installing, you can use those. Otherwise, refer to your most recent system backup and hope that the backup is current enough to have the correct versions of the files you need.

This kind of mistake is one of the types that package managers are designed to avoid. Portage knows not to overwrite files owned by packages other than the one being installed. By bypassing Portage, you bypassed this basic safety check and made a mess of the system.
Back to top
View user's profile Send private message
lea0014
n00b
n00b


Joined: 09 Mar 2010
Posts: 24

PostPosted: Tue Jun 25, 2013 11:56 pm    Post subject: Reply with quote

Let's suppouse there is not any backup... Should i start here? Gentoo Handbook AMD64
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Jun 26, 2013 1:11 am    Post subject: Reply with quote

I would say tinderbox to get gcc and glibc back and then emerge -e @system @world I recommend having some reading material on hand because this could take a day or so. A reinstall might be cleaner.

You can either use portage to emerge these files or untar them to /. You can ignore the error messages. They are meant to be able to do this in an emergency.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
lea0014
n00b
n00b


Joined: 09 Mar 2010
Posts: 24

PostPosted: Wed Jun 26, 2013 4:25 am    Post subject: Reply with quote

Just for the records.

Looks like the system is alive again; actually i'm posting from it. So, i downloaded gcc from tinderbox, untar it to /, re-emerge glibc. Now most app start working again. Now i'm re-emerging the whole system, so wish me luck. BTW thank you so much Doc!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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