Debian 10: Problema al hacer dpkg -i paquete.deb

Acabo de instalar mi primera debian con entorno gráfico con cinnamon y veo que le faltan bastantes cosillas

# apt -y install mate-terminal pluma glances mtr net-tools dnsutils

Y también que al hacer dpkg -i de algun paquete me suelta éste error:

# dpkg -i google-chrome-stable_current_amd64.deb 
dpkg: avís: no s'ha trobat «ldconfig» en el PATH o no és executable
dpkg: avís: no s'ha trobat «start-stop-daemon» en el PATH o no és executable
dpkg: s'ha produït un error: no s'han trobat 2 programes esperats al PATH, o no són executables
Nota: el PATH del root normalment ha de contenir /usr/local/sbin, /usr/sbin i /sbin

El motivo es que necesitamos definir los directorios donde se encuentran los binarios del sistema:

# echo 'export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin' >> /home/aspertic/.bashrc
# echo 'export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin' >> /root/.bashrc

Salimos de la sesión de terminal del usuario y la volvemos a iniciar y ta-dá!

Recuerdo que si un paquete no deja instalar las dependencias, tenemos que forzar la instalación manual con apt -f install

root@aspertic01:/home/aspertic/Baixades# dpkg -i teamviewer_14.5.1691_amd64.deb 
S'està seleccionant el paquet teamviewer prèviament no seleccionat.
(S'està llegint la base de dades… hi ha 173445 fitxers i directoris instal·lats actualment.)
S'està preparant per a desempaquetar teamviewer_14.5.1691_amd64.deb…
S'està desempaquetant teamviewer (14.5.1691)…
dpkg: problemes de dependències impedeixen la configuració de teamviewer:
 teamviewer depèn de libqt5gui5 (>= 5.5) | qt56-teamviewer; tot i així:
  El paquet libqt5gui5 no està instal·lat.
  El paquet qt56-teamviewer no està instal·lat.

 [...]

dpkg: s'ha produït un error en processar el paquet teamviewer (--install):
 problemes de dependències - es deixa sense configurar
S'estan processant els activadors per a desktop-file-utils (0.23-4)…
S'estan processant els activadors per a mime-support (3.62)…
S'estan processant els activadors per a hicolor-icon-theme (0.17-2)…
S'han trobat errors en processar:
 teamviewer
root@aspertic01:/home/aspertic/Baixades# apt -f install
S'està llegint la llista de paquets… Fet
S'està construint l'arbre de dependències       
S'està llegint la informació de l'estat… Fet
S'estan corregint les dependències… Fet
S'instal·laran els següents paquets extres:
  geoclue-2.0 libdouble-conversion1 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5svg5 libqt5webchannel5 libqt5webkit5 libqt5widgets5
  libqt5x11extras5 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 qml-module-qtgraphicaleffects qml-module-qtquick-controls qml-module-qtquick-dialogs
  qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2 qt5-gtk-platformtheme qttranslations5-l10n
Paquets suggerits:
  qt5-image-formats-plugins qtwayland5 qt5-qmltooling-plugins
S'instal·laran els paquets NOUS següents:
  geoclue-2.0 libdouble-conversion1 libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5svg5 libqt5webchannel5 libqt5webkit5 libqt5widgets5
  libqt5x11extras5 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 qml-module-qtgraphicaleffects qml-module-qtquick-controls qml-module-qtquick-dialogs
  qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2 qt5-gtk-platformtheme qttranslations5-l10n
0 actualitzats, 34 nous a instal·lar, 0 a suprimir i 0 no actualitzats.
1 no instal·lats o suprimits completament.
S'ha d'obtenir 26,4 MB d'arxius.
Després d'aquesta operació s'empraran 110 MB d'espai en disc addicional.
Voleu continuar? [S/n] S

2 Comments

  1. Vols dir que no se solucionaria amb un simple

    “`
    $ su –
    “`

    Figura als canvis de [New in Buster](https://wiki.debian.org/NewInBuster):

    “The su command in buster is provided by the util-linux source package, instead of the shadow source package, and no longer alters the PATH variable by default. This means that after doing su, your PATH may not contain directories like /sbin, and many system administration commands will fail. There are several workarounds:

    Use su – instead; this launches a login shell, which forces PATH to be changed, but also changes everything else including the working directory.

    Use sudo instead. sudo still runs commands with an altered PATH variable.

    To get a regular root shell with the correct PATH, you may use sudo -s.

    To get a login shell as root (equivalent to su -), you may use sudo -i.

    Put ALWAYS_SET_PATH yes in /etc/login.defs to get an approximation of the old behavior. This is documented in su(1) but not in login.defs(5). It may also cause a harmless error message to appear in some situations (see 905564).

    Put the system administration directories (/sbin, /usr/sbin, /usr/local/sbin) in your regular account’s PATH (see EnvironmentVariables for help with this).”

    Respon
  2. A mi m’ha anat bé. Aplicant aquestes línies al bashrc m’ha solucionat el problema ?

    Respon

Respon a xavi Cancel·la les respostes

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *

Aquest lloc utilitza Akismet per reduir els comentaris brossa. Apreneu com es processen les dades dels comentaris.