Artigos‎ > ‎Android‎ > ‎Motorola Atrix WebTop‎ > ‎

Investigação de como corrigir o apt-get do Atrix com webtop2sd


Primeiramente gostaria de salientar que não sou o autor principal do conteúdo deste artigo. A minha intenção é de mostrar o que outros autores tem realizado (referenciando links para o conteúdo original) neste blog até como um guia pessoal para uso próprio e ainda compartilhar minhas anotações e pequenas modificações que realizo no conteúdo, desejando que possa ajudar mais alguém em algum lugar.
First and foremost, I take no credit for any of this post’s content. I am really just taking what others have done (which I have links to bellow) and am putting it on my blog for a personal reference and hopefully the small changes that I made to their guides will help someone somewhere.


As instruções abaixo foram utilizadas para descobrir qual o processo adequado para se realizar a correção das dependências do apt-get no Atrix.
Foi testado no Atrix versão: Blur_version.0.50.3.MB860.AmericaMovil.en.BR
Para facilitar este processo foi criado um script que automatiza tudo isso.




Acesse o Atrix pelo terminal de seu desktop ubuntu:
cd ~/ANDROID/android-sdk-linux_x86/platform-tools
sudo restart udev
sudo ./adb kill-server
sudo nohup ./adb start-server
./adb devices
./adb shell

Acesse o WebTop do Atrix:
su
/usr/bin/sudo -H -u adas bash 

Gere os arquivos a seguir:
sudo apt-get --dry-run install wget >> problems.txt
sudo dpkg --get-selections \* > selections.txt 
sudo dpkg -l >> installed.txt
sudo apt-get -f --dry-run install >> break.txt


Analisando o arquivo problems.txt vemos com mais cuidado o que esta causando problema:

Pacotes faltando que causam dependências desencontradas:
passwd (>= 1:4.0.12) e passwd
cpp
coreutils (>= 5.93-1) e coreutils (>= 5.91)
libgtk2.0-0 (= 2.16.1-0ubuntu2) mas 2.16.1-0ubuntu2-mot1
klibc-utils (>= 1.5.9-1)
cpio
findutils (>= 4.2.24) e findutils (>= 4.4.0-2ubuntu2)
gcc-4.3-base (= 4.3.3-5ubuntu4)
libgmp3c2 (>= 4.2.dfsg-1)
libdb4.7
libdb4.6
lxappearance (>= 0.2)
iputils-ping
cron ou anacron ou fcron
libsasl2-modules (= 2.1.22.dfsg1-23ubuntu3.1~mot1) ou libsasl2-modules-sql (= 2.1.22.dfsg1-23ubuntu3.1~mot1) ou libsasl2-modules-gssapi-heimdal (= 2.1.22.dfsg1-23ubuntu3.1~mot1) ou libsasl2-modules-kerberos-heimdal (= 2.1.22.dfsg1-23ubuntu3.1~mot1)
gdm  (Recomendado)
uuid-runtime (Recomendado)

Dos pacotes acima estavam com status purge no arquivo selections.txt:
passwd
libsasl2-modules (= 2.1.22.dfsg1-23ubuntu3.1~mot1)
cpp
klibc-utils
cron
gcc-4.3-base
libgmp3c2
libdb4.7
libdb4.6
lxappearance
iputils-ping
coreutils
cpio
findutils

O pacote abaixo estava indicado como instalado no arquivo selections.txt:
libgtk2.0-0

Pacotes que estão com dependências desencontradas:
adduser
apt-utils
bsdmainutils
dpkg
gtk2-engines-pixbuf
initramfs-tools
initscripts
iproute
libc6
libgail18
libgcc1
libgomp1
libidl0
libmpfr1ldbl
libpam-modules
libsasl2-2
libstdc++6
libuuid1
logrotate
lxde
:perl
python2.6
ubuntu-minimal
ucf
x11-xkb-utils
x11-xserver-utils
xinit

Primeiramente vamos tentar corrigir o problema instalando via dpkg os pacotes que estavam como purge no arquivo selections.txt e que estão sendo necessários:

Pesquise no site https://launchpad.net/ubuntu/jaunty/armel/ os arquivos necessários e copie na seguinte estrutura as seguintes informações para cada um deles e suas depencias ainda não instaladas em arquivo chamado config.txt:
[wget]
site="http://launchpadlibrarian.net/19674533/wget_1.11.4-2ubuntu1_armel.deb"
file="wget_1.11.4-2ubuntu1_armel.deb"
depends=""

[nano]
site="http://launchpadlibrarian.net/24514564/nano_2.0.9-2_armel.deb"
file="nano_2.0.9-2_armel.deb"
depends=""

[passwd]
site="http://launchpadlibrarian.net/24799344/passwd_4.1.1-6ubuntu6_armel.deb"
file="passwd_4.1.1-6ubuntu6_armel.deb"
depends=""

[cpp]
site="http://launchpadlibrarian.net/24462140/cpp_4.3.3-1ubuntu1_armel.deb"
file="cpp_4.3.3-1ubuntu1_armel.deb"
depends="cpp-4.3"

[cpp-4.3]
site="http://launchpadlibrarian.net/23984508/cpp-4.3_4.3.3-5ubuntu4_armel.deb"
file="cpp-4.3_4.3.3-5ubuntu4_armel.deb"
depends="gcc-4.3-base;libgmp3c2"

[gcc-4.3-base]
site="http://launchpadlibrarian.net/23984503/gcc-4.3-base_4.3.3-5ubuntu4_armel.deb"
file="gcc-4.3-base_4.3.3-5ubuntu4_armel.deb"
depends=""

[libgmp3c2]
site="http://launchpadlibrarian.net/23164783/libgmp3c2_4.2.4%2Bdfsg-2ubuntu1_armel.deb"
file="libgmp3c2_4.2.4+dfsg-2ubuntu1_armel.deb"
depends=""

[cron]
site="http://launchpadlibrarian.net/27376663/cron_3.0pl1-105ubuntu1.1_armel.deb"
file="cron_3.0pl1-105ubuntu1.1_armel.deb"
depends=""

Para checar se o pacote esta instalado voce pode utilizar o comando abaixo:
sudo dpkg -l | awk '/^ii/ {print substr($0,5,34)}' | sed -e 's/ //g' | grep ^PACOTE

Alguns pacotes vou instalar manualmente para me ajudar a criar estes arquivos e rodar os scripts desenvolvidos (nano e wget). Baixe os arquivos deb (do link ) e um diretório conhecido e execute o comando abaixo para instalar:
cd ~/WebTopScripts/scripts/
sudo /usr/bin/dpkg -i --root=/osh ../packages/wget_1.11.4-2ubuntu1_armel.deb
wget -O "../packages/nano_2.0.9-2_armel.deb" "http://launchpadlibrarian.net/24514564/nano_2.0.9-2_armel.deb"
sudo /usr/bin/dpkg -i --root=/osh ../packages/nano_2.0.9-2_armel.deb

wget -O "../packages/passwd_4.1.1-6ubuntu6_armel.deb" "http://launchpadlibrarian.net/24799344/passwd_4.1.1-6ubuntu6_armel.deb"
sudo /usr/bin/dpkg -i --root=/osh ../packages/passwd_4.1.1-6ubuntu6_armel.deb

wget -O "../packages/gcc-4.3-base_4.3.3-5ubuntu4_armel.deb" "http://launchpadlibrarian.net/23984503/gcc-4.3-base_4.3.3-5ubuntu4_armel.deb"
wget -O "../packages/libgmp3c2_4.2.4+dfsg-2ubuntu1_armel.deb" "http://launchpadlibrarian.net/23164783/libgmp3c2_4.2.4%2Bdfsg-2ubuntu1_armel.deb"
wget -O "../packages/cpp-4.3_4.3.3-5ubuntu4_armel.deb" "http://launchpadlibrarian.net/23984508/cpp-4.3_4.3.3-5ubuntu4_armel.deb"
wget -O "../packages/cpp_4.3.3-1ubuntu1_armel.deb" "http://launchpadlibrarian.net/24462140/cpp_4.3.3-1ubuntu1_armel.deb"
sudo /usr/bin/dpkg -i --root=/osh ../packages/libgmp3c2_4.2.4+dfsg-2ubuntu1_armel.deb
sudo /usr/bin/dpkg -i --root=/osh ../packages/gcc-4.3-base_4.3.3-5ubuntu4_armel.deb
sudo /usr/bin/dpkg -i --root=/osh ../packages/cpp-4.3_4.3.3-5ubuntu4_armel.deb
sudo /usr/bin/dpkg -i --root=/osh ../packages/cpp_4.3.3-1ubuntu1_armel.deb

wget -O "../packages/cron_3.0pl1-105ubuntu1.1_armel.deb" "http://launchpadlibrarian.net/27376663/cron_3.0pl1-105ubuntu1.1_armel.deb"
sudo /usr/bin/dpkg -i --root=/osh ../packages/cron_3.0pl1-105ubuntu1.1_armel.deb

Para facilitar esta tarefa fiz um script (em anexo) que lê o arquivo config.txt e executa a instalação do pacote escolhido. Execute com o comando:
cd ~
./WebTopScripts/scripts/init.sh (somente uma vez)
./WebTopScripts/scripts/install.sh PACOTE

Mas os pacotes abaixo não puderão ser instalados desta forma, pois relatam problemas com o rootfs já instalado (provavelmente já modificado pela motorola).
coreutils
cpio
findutils
libsasl2-modules
libgtk2.0-0

Assim podemos adotar a estratégia de criar pacotes FAKE para estes três pacotes para o apt-get ter a informação deles estarem instalados mesmo não estando.
Primeiro Instale equivs:
cd ~/WebTopScripts/scripts/
wget -O "../packages/equivs_2.0.7-0.1_all.deb" "http://launchpadlibrarian.net/14253049/equivs_2.0.7-0.1_all.deb"
sudo /usr/bin/dpkg -i --root=/osh ../packages/equivs_2.0.7-0.1_all.deb

Como precisou de várias dependências fiz a instalação utilizando o script anexo = WebTopScripts.
No entanto uma das dependencias apontadas foi o pacote cpio com o pacote dpkg-dev.

Então solicitei para ignorar esta falta de pacote pois o arquivo /bin/cpio já está instalado pelo pacote rootfs.
wget -O "../packages/dpkg-dev_1.14.24ubuntu1.2_all.deb" "http://launchpadlibrarian.net/56072749/dpkg-dev_1.14.24ubuntu1.2_all.deb"
sudo /usr/bin/dpkg -i --ignore-depends=cpio --root=/osh ../packages/dpkg-dev_1.14.24ubuntu1.2_all.deb

Utilizando o pacote equivs:
cd ~/WebTopScripts/fake
equivs-control cpio
cat cpio
### Commented entries have reasonable defaults.
### Uncomment to edit them.
Section: misc
Priority: optional
Standards-Version: 3.6.2

Package: <package name; defaults to equivs-dummy>
# Version: <enter version here; defaults to 1.0>
# Maintainer: Your Name <yourname@example.com>
# Pre-Depends: <comma-separated list of packages>
# Depends: <comma-separated list of packages>
# Recommends: <comma-separated list of packages>
# Suggests: <comma-separated list of packages>
# Provides: <comma-separated list of packages>
# Replaces: <comma-separated list of packages>
# Architecture: all
# Copyright: <copyright file; defaults to GPL2>
# Changelog: <changelog file; defaults to a generic changelog>
# Readme: <README.Debian file; defaults to a generic one>
# Extra-Files: <comma-separated list of additional files for the doc directory>
Description: <short description; defaults to some wise words> 
 long description and info
 .
 second paragraph

dpkg-deb --info "../packages/cpio_2.9-15ubuntu1_armel.deb"
ou somente o nome do pacote já instalado:
dpkg -s libgtk2.0-0
 Package: cpio
 Version: 2.9-15ubuntu1
 Architecture: armel
 Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
 Installed-Size: 684
 Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.3)
 Conflicts: cpio-mt, mt-st (<< 0.6)
 Replaces: cpio-mt
 Section: utils
 Priority: important
 Description: GNU cpio -- a program to manage archives of files
  GNU cpio is a tool for creating and extracting archives, or copying
  files from one place to another.  It handles a number of cpio formats
  as well as reading and writing tar files.
 Original-Maintainer: Clint Adams <schizo@debian.org>

Assim altere o arquivo cpio para:
### Commented entries have reasonable defaults.
### Uncomment to edit them.
Section: utils
Priority: important
Standards-Version: 3.6.2
Package: cpio
Version: 2.9-15ubuntu1
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.3)
Conflicts: cpio-mt, mt-st (<< 0.6)
Replaces: cpio-mt
Architecture: armel
Installed-Size: 684
Description: FAKE VERSION OF CPIO

Gere o arquivo de instalação fake_cpio
equivs-build cpio 

Mas tb não funcionou pois os programas find também foi alterado pelo rootfs.
Então vou tentar forçar a instalar destes três pacotes e ver no que dá.

Antes faça backup dos seguintes arquivos:

sudo cp /usr/bin/find /usr/bin/find.original
sudo cp /bin/cpio /bin/cpio.original
sudo cp /usr/sbin/chroot /usr/sbin/chroot.original
sudo cp /usr/bin/xargs /usr/bin/xargs.original
/usr/bin/whoami
/usr/bin/who
/usr/bin/tail
/usr/bin/hostid
/usr/bin/seq
/usr/bin/yes
/usr/bin/od
/usr/bin/uniq
/usr/bin/nohup
/usr/bin/unexpand
/usr/bin/split
/usr/bin/expand
/usr/bin/cut
/usr/bin/basename
/usr/bin/mkfifo
/usr/bin/md5sum
/usr/bin/printf
/usr/bin/logname
/usr/bin/tac
/usr/bin/cksum
/usr/bin/wc
/usr/bin/[
/usr/bin/head
/usr/bin/env
/usr/bin/sha1sum
/usr/bin/test
/usr/bin/du
/usr/bin/expr
/usr/bin/install
/usr/bin/tty
/usr/bin/id
/usr/bin/fold
/usr/bin/comm
/usr/bin/sum
/usr/bin/tr
/usr/bin/tee
/usr/bin/sort
/usr/bin/dirname
/bin/mknod
/bin/touch
/bin/rm
/bin/mv
/bin/uname
/bin/cat
/bin/mkdir
/bin/df
/bin/chmod
/bin/rmdir
/bin/true
/bin/ln
/bin/echo
/bin/ls
/bin/chown
/bin/date
/bin/sync
/bin/pwd
/bin/chgrp
/bin/cp
/bin/dd
/bin/stty
/bin/sleep
/bin/false

Agora comece a instalação:
cd ~/WebTopScripts/scripts/wget -O "../packages/findutils_4.4.0-2ubuntu3_armel.deb" "http://launchpadlibrarian.net/19643806/findutils_4.4.0-2ubuntu3_armel.deb"
wget -O "../packages/cpio_2.9-15ubuntu1_armel.deb" "http://launchpadlibrarian.net/22652357/cpio_2.9-15ubuntu1_armel.deb"
wget -O "../packages/coreutils_6.10-6ubuntu1_armel.deb" "http://launchpadlibrarian.net/19650929/coreutils_6.10-6ubuntu1_armel.deb"
sudo /usr/bin/dpkg -i --force-overwrite --root=/osh ../packages/findutils_4.4.0-2ubuntu3_armel.deb
sudo /usr/bin/dpkg -i --force-overwrite --root=/osh ../packages/coreutils_6.10-6ubuntu1_armel.deb
sudo /usr/bin/dpkg -i --force-overwrite --root=/osh ../packages/cpio_2.9-15ubuntu1_armel.deb


Faltou ainda forçar a instalação de alguns pacotes:
wget -O "../packages/libsasl2-2_2.1.22.dfsg1-23ubuntu3.1_armel.deb" "http://launchpadlibrarian.net/28291289/libsasl2-2_2.1.22.dfsg1-23ubuntu3.1_armel.deb"
wget -O "../packages/libgtk2.0-0_2.16.1-0ubuntu2_armel.deb" "http://launchpadlibrarian.net/25586282/libgtk2.0-0_2.16.1-0ubuntu2_armel.deb"
wget -O "../packages/libsasl2-modules_2.1.22.dfsg1-23ubuntu3.1_armel.deb" "http://launchpadlibrarian.net/28291287/libsasl2-modules_2.1.22.dfsg1-23ubuntu3.1_armel.deb"
wget -O "../packages/libgtk2.0-0-dbg_2.16.1-0ubuntu2_armel.deb" "http://launchpadlibrarian.net/25586287/libgtk2.0-0-dbg_2.16.1-0ubuntu2_armel.deb"

sudo /usr/bin/dpkg -i --force-depends --root=/osh ../packages/libsasl2-modules_2.1.22.dfsg1-23ubuntu3.1_armel.deb
sudo /usr/bin/dpkg -i --force-overwrite --root=/osh ../packages/libsasl2-2_2.1.22.dfsg1-23ubuntu3.1_armel.deb
sudo /usr/bin/dpkg -i --force-overwrite --root=/osh ../packages/libgtk2.0-0_2.16.1-0ubuntu2_armel.deb
sudo /usr/bin/dpkg -i --force-overwrite --root=/osh ../packages/libgtk2.0-0-dbg_2.16.1-0ubuntu2_armel.deb

Depois disso tudo consegui criar os fake packages executando o comando abaixo (pois foram substituídas as modificações da motorola):
equivs-build cpio
mv cpio_2.9-15ubuntu1_armel.deb fake_cpio_2.9-15ubuntu1_armel.deb

Vou disponibilizar no script que estou fazendo a opção de instalar estes pacotes fake, que deixarão o sistema original "intacto" e sem as "falhas"de dependências.

Basta instalar eles com o comando: 
dpkg -i fake_cpio_2.9-15ubuntu1_armel.deb

Agora voce pode instalar definitivamente aqueles pacotes marcados como auto-remove:
sudo apt-mark unmarkauto libical0 liblcms1 pkg-config libgnome-media0 libgtksourceview1.0-0 libevview1 libtotem-plparser12 libdirectfb-extra gnome-media-common libpcrecpp0 libatspi1.0-0 python-pyatspi libgnomeprint2.2-data libgif4 libecal1.2-7 at-spi libgtksourceview-common openbsd-inetd libevdocument1 libpthread-stubs0 libkadm55 libxml2-utils libnautilus-burn4 python-gnome2-desktop libgnomeprint2.2-0 libgnomeprintui2.2-0 libgnomeprintui2.2-common libgnomecups1.0-1

Para evitar ainda maiores estragos em uma possível atualização podemos forçar a versão instalada atualmente dos pacotes listados abaixo:
sudo apt-get --dry-run upgrade   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  bind9-host libbind9-40 libcanberra-gtk0 libcanberra0 libdns45 libisc45
  libisccc40 libisccfg40 liblwres40 system-config-printer-common
The following packages will be upgraded:
  avahi-daemon bzip2 consolekit dbus dbus-x11 devscripts dhcp3-client
  dhcp3-common dpkg file ghostscript gnome-desktop-data gnome-settings-daemon
  gtk2-engines gzip hal libaudiofile0 libavahi-client3 libavahi-common-data
  libavahi-common3 libavahi-compat-libdnssd1 libavahi-core5 libavahi-glib1
  libbluetooth3 libbz2-1.0 libcamel1.2-14 libck-connector0 libcurl3
  libcurl3-gnutls libdbus-1-3 libebook1.2-9 libedataserver1.2-11 libexpat1
  libfreetype6 libglib2.0-0 libgnome-desktop-2-11 libgs8 libhal-storage1
  libhal1 libicu38 libldap-2.4-2 libmagic1 libmetacity0 libmotif3 libmpfr1ldbl
  libnetpbm10 libnewt0.52 libpam-modules libpam-runtime libpam0g libperl5.10
  libpng12-0 libpoppler-glib4 libpoppler4 libpulse-browse0 libpulse0
  libpulsecore9 libsndfile1 libsnmp-base libsnmp15 libsoup-gnome2.4-1
  libsoup2.4-1 libsqlite3-0 libssl0.9.8 libthai-data libthai0 libtiff4
  libvolume-id1 libvorbis0a libvorbisfile3 libvte-common libvte9
  libwebkit-1.0-1 libwnck22 libxcb-render0 libxcb1 libxi6 libxklavier12
  libxml2 libxp6 lsb-base lsb-release metacity metacity-common netpbm ntpdate
  openssl perl perl-base perl-modules pm-utils poppler-utils pulseaudio
  pulseaudio-utils python-cupshelpers python-gobject python-libxml2
  shared-mime-info sudo system-config-printer-gnome tar udev whiptail
  xfonts-base xserver-common xserver-xorg-core

sudo apt-get  hold 

Execute para cada pacote .... 
echo xserver-xorg-core hold | sudo dpkg --set-selections

Marcar ainda como hold todos os pacotes instalados que tem a versão com a expressão mot ou motorola:

sudo dpkg -l | grep -i "motorola" | awk '/^ii/ {print substr($0,5,34)}' | sed -e 's/ //g'
sudo dpkg -l | grep -i "mot1" | awk '/^ii/ {print substr($0,5,34)}' | sed -e 's/ //g'
sudo dpkg -l | grep -i "<insert up to 60 chars description>" | awk '/^ii/ {print substr($0,5,34)}' | sed -e 's/ //g'

Mesmo forçando a instalação de libgtk2.0-0   vamos listar os arquivos do mesmo, fazer uma cópia de segurança para depois copiar estes arquivos de volta para o seu devido local.

dpkg -L libgtk2.0-0
/.
/usr
/usr/lib
/usr/lib/libgdk_pixbuf_xlib-2.0.so.0.1600.1
/usr/lib/vfp
/usr/lib/vfp/libgdk_pixbuf_xlib-2.0.so.0.1600.1
/usr/lib/vfp/libgdk_pixbuf-2.0.so.0.1600.1
/usr/lib/vfp/libgtk-x11-2.0.so.0.1600.1
/usr/lib/vfp/libgdk-x11-2.0.so.0.1600.1
/usr/lib/gtk-2.0
/usr/lib/gtk-2.0/2.10.0
/usr/lib/gtk-2.0/2.10.0/immodule-files.d
/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules
/usr/lib/gtk-2.0/2.10.0/loaders
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tga.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-icns.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ras.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-wbmp.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ico.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pcx.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ani.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pnm.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jasper.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xbm.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so
/usr/lib/gtk-2.0/2.10.0/printbackends
/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so
/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so
/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-test.so
/usr/lib/gtk-2.0/2.10.0/immodules
/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-ti-er.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-ipa.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-am-et.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-ti-et.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-viqr.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-thai.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-multipress.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.so
/usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
/usr/lib/gtk-2.0/2.10.0/loader-files.d
/usr/lib/gtk-2.0/2.10.0/loader-files.d/libgtk2.0-0.loaders
/usr/lib/libgdk_pixbuf-2.0.so.0.1600.1
/usr/lib/libgtk-x11-2.0.so.0.1600.1
/usr/lib/libgtk2.0-0
/usr/lib/libgtk2.0-0/gdk-pixbuf-query-loaders
/usr/lib/libgtk2.0-0/gtk-query-immodules-2.0
/usr/lib/libgtk2.0-0/update-gdkpixbuf-loaders
/usr/lib/libgtk2.0-0/gtk-update-icon-cache
/usr/lib/libgtk2.0-0/update-gtk-immodules
/usr/lib/libgdk-x11-2.0.so.0.1600.1
/usr/share
/usr/share/doc
/usr/share/doc/libgtk2.0-0
/usr/share/doc/libgtk2.0-0/copyright
/usr/share/doc/libgtk2.0-0/changelog.Debian.gz
/usr/share/doc/libgtk2.0-0/README.Debian
/usr/share/doc/libgtk2.0-0/changelog.gz
/etc
/etc/gtk-2.0
/etc/gtk-2.0/im-multipress.conf
/usr/lib/libgdk_pixbuf_xlib-2.0.so.0
/usr/lib/libgdk_pixbuf-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/vfp/libgdk_pixbuf_xlib-2.0.so.0
/usr/lib/vfp/libgdk_pixbuf-2.0.so.0
/usr/lib/vfp/libgtk-x11-2.0.so.0
/usr/lib/vfp/libgdk-x11-2.0.so.0
/usr/lib/libgdk-x11-2.0.so.0
/usr/share/doc/libgtk2.0-0/NEWS.gz
/usr/share/doc/libgtk2.0-0/README.gz

dpkg -L libgtk2.0-0-dbg     
/.
/usr
/usr/lib
/usr/lib/debug
/usr/lib/debug/usr
/usr/lib/debug/usr/lib
/usr/lib/debug/usr/lib/libgdk_pixbuf_xlib-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/libgtk-directfb-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/vfp
/usr/lib/debug/usr/lib/vfp/libgdk_pixbuf_xlib-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/vfp/libgdk_pixbuf-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/vfp/libgtk-x11-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/vfp/libgdk-x11-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/gtk-2.0
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tga.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-icns.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ras.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-wbmp.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ico.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pcx.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-ani.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-pnm.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jasper.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xbm.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/printbackends
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-file.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-lpr.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-test.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-ti-er.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-ipa.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-am-et.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-ti-et.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-viqr.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-thai.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-multipress.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/engines
/usr/lib/debug/usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so
/usr/lib/debug/usr/lib/libgdk_pixbuf-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/libgdk-directfb-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/libgtk-x11-2.0.so.0.1600.1
/usr/lib/debug/usr/lib/libgtk2.0-0
/usr/lib/debug/usr/lib/libgtk2.0-0/gdk-pixbuf-query-loaders
/usr/lib/debug/usr/lib/libgtk2.0-0/gtk-query-immodules-2.0
/usr/lib/debug/usr/lib/libgtk2.0-0/gtk-update-icon-cache
/usr/lib/debug/usr/lib/libgdk-x11-2.0.so.0.1600.1
/usr/lib/debug/usr/bin
/usr/lib/debug/usr/bin/gtk-demo
/usr/lib/debug/usr/bin/gdk-pixbuf-csource
/usr/share
/usr/share/doc
/usr/share/doc/libgtk2.0-0-dbg
/usr/share/doc/libgtk2.0-0-dbg/copyright
/usr/share/doc/libgtk2.0-0-dbg/changelog.Debian.gz
/usr/share/doc/libgtk2.0-0-dbg/changelog.gz
/usr/share/doc/libgtk2.0-0-dbg/NEWS.gz
/usr/share/doc/libgtk2.0-0-dbg/README.gz


Descobrir em qual pacote temos um arquivo em específico:
Instale o apt-file
sudo apt-get install apt-file
atualize a base de dados
apt-file update
pesquise com o comando:
apt-file search /usr/bin/readlink






TODO:

Marcar HOLD no arquivo selections.txt nos seguintes programas listados em break.txt a seguir:
The following packages will be REMOVED:
  gnome-control-center gnome-themes-selected gnome-utils gtk2-engines-pixbuf
  libbonoboui2-0 libgail-common libgail18 libgnome-media0
  libgnome2-canvas-perl libgnome2-perl libgnomecanvas2-0 libgnomeprintui2.2-0
  libgnomeui-0 libpanel-applet2-0 nautilus python-gnome2 python-gnome2-desktop
  python-gnomecanvas python-pyatspi system-config-printer-gnome


The following packages were automatically installed and are no longer required:
  libical0 pkg-config libgtksourceview1.0-0 libevview1 libgomp1 groff-base
  libtotem-plparser12 python-pyorbit python-gconf libdirectfb-extra
  gnome-media-common libpcrecpp0 libatspi1.0-0 libgnomeprint2.2-data
  libecal1.2-7 at-spi libgtksourceview-common openbsd-inetd libevdocument1
  libpthread-stubs0 libkadm55 html2text libxml2-utils patch libnautilus-burn4
  libgnomeprint2.2-0 make libgnomeprintui2.2-common libgnomecups1.0-1


The following packages will be upgraded:
  libperl5.10 libsasl2-2 perl perl-base perl-modules

Criar fake packages para os programas listados em break.txt a seguir (mas antes tentar deixar instalar para ver no que da):
The following extra packages will be installed:
  coreutils cpio cpp cpp-4.3 cron findutils gcc-4.3-base iputils-ping
  klibc-utils libdb4.6 libdb4.7 libgmp3c2 libklibc libperl5.10 libsasl2-2
  libsasl2-modules lxappearance passwd perl perl-base perl-modules

Fazer uma lista limpa de programas instalados (será necessário marcar HOLD em todos?):
sudo dpkg -l | awk '/^ii/ {print substr($0,5,34)}' | sed -e 's/ //g'
ou programas atualmente em hold:
sudo dpkg -l | awk '/^hi/ {print substr($0,5,34)}' | sed -e 's/ //g'

Para saber a versão instalada de um pacote utilize o comando abaixo:
sudo dpkg -l | awk '/seamonkey-browser/ {print substr($0,35,88)}' | sed -e 's/ //g'

Exemplo de como listar as dependencias reversas:
sudo dpkg --purge --no-act lxterminal 2>&1 | grep "depende de" | sed -e "s/ depende de .*//"

Tentar listar as dependencias com o comando 
echo $(apt-cache showsrc "PACKAGE" | grep Build-Depends | perl -p -e 's/(?:[\[(].+?[\])]|Build-Depends:|,|\|)//g')
echo $(apt-cache showsrc "PACKAGE" | sed -e '/Build-Depends/!d;s/Build-Depends: \|,\|([^)]*),\|\[[^]]*\]//g')

O URL específico do gadget não foi encontrado



ċ
break.txt
(15k)
Ademar Arvati Filho,
11 de jul de 2011 20:29
ċ
installed.txt
(63k)
Ademar Arvati Filho,
11 de jul de 2011 18:09
ċ
problems.txt
(6k)
Ademar Arvati Filho,
11 de jul de 2011 18:09
ċ
selections.txt
(17k)
Ademar Arvati Filho,
11 de jul de 2011 18:09
Comments