Toon posts:

[Debian] apt-get helemaal in de war of de bak?

Pagina: 1
Acties:

Verwijderd

Topicstarter
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
root@broodplank:~# apt-get install wget
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  wget
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 0B/332kB of archives. After unpacking 1233kB will be used.
dpkg: `ldconfig' not found on PATH.
dpkg: `start-stop-daemon' not found on PATH.
dpkg: `install-info' not found on PATH.
dpkg: `update-rc.d' not found on PATH.
dpkg: 4 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@broodplank:~#


Rare error waar ik graag wat meer over wil weten...

Zoals, wat is het probleem, en hoe is het op te lossen?

Op een andere bak heb ik dit namelijk niet :X

  • smoking2000
  • Registratie: September 2001
  • Laatst online: 07-05 06:28

smoking2000

DPC-Crew

dpkg-reconfigure reality

Waar staan de verwachtte programma's?
Dit kan je controleren met: which <app naam>

Voeg de paden naar de apps toe aan je $PATH

should do the trick

| [Folding@Home] Announce: Client monitor voor Linux (fci) | fci-1.8.4 | Fatal Error Group |


Verwijderd

Topicstarter
De programma's staan er nog niet op, maar moeten erop komen...

En wat bedoel je met:
Voeg de paden naar de apps toe aan je $PATH
:? :? :?

  • Glival
  • Registratie: December 1999
  • Laatst online: 06-05 00:14
wat is de uitvoer van "echo $PATH" ?

  • Echnon
  • Registratie: Mei 2000
  • Laatst online: 04-04 20:19
apt-get is een front-end die het commando dpkg aanroept, en dpkg roept op zijn beurt weer andere commando's aan als ldconfig. De plaats waar deze gevonden moeten worden is in het pad, onder linux te vinden in de environment variabele $PATH

Misschien zou je eerst een linux introductie handleiding moeten lezen op www.tldp.org of www.debian.org

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 06-05 18:51

Creepy

Tactical Espionage Splatterer

smoking2000 schreef op 08 May 2003 @ 16:29:
Waar staan de verwachtte programma's?
Dit kan je controleren met: which <app naam>

Voeg de paden naar de apps toe aan je $PATH

should do the trick
Uit de which man page
DESCRIPTION
Which takes a series of program names, and prints out the
full pathname of the program that the shell would call to
execute it. It does this by simulating the shells search­
ing of the $PATH environment variable.
Dus which gebruiken om je $PATH te vullen lijkt me niet zo handig ;)

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


Verwijderd

Topicstarter
echo $PATH :
code:
1
2
3
root@broodplank:~# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
root@broodplank:~#


:X

(Wat moet ik veranderen, en hoe?)

[ Voor 12% gewijzigd door Verwijderd op 08-05-2003 17:01 ]


  • hammerhead
  • Registratie: April 2000
  • Laatst online: 07-05 08:16
Je moet even uitvoeren:
code:
1
export PATH=$PATH:/sbin:/usr/sbin

Dit moet je doen als root.

Als die andere programma's die hij in het begin mist staan in een van deze twee directories.

Aviation is proof that given the will, we have the capacity to achieve the impossible.
--Eddie Rickenbacker


Verwijderd

Topicstarter
Nu werkt het! :)
Pagina: 1