0 Pluspunkte 0 Minuspunkte

Wie installiere ich Powershell in Ubuntu18.04? Der Befehl

apt-get install powershell

sagt das das Paket nicht gefunden wurde.

von  

2 Antworten

0 Pluspunkte 0 Minuspunkte

Lade das Paket mit apt herunter.

root@host [~]# cd /usr/src/
root@host:/usr/src# wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb

Installiere das Paket mit dpkg.

root@host:/usr/src# sudo dpkg -i packages-microsoft-prod.deb

Füge das Universal Repository zu deinen Updatequellen hinzu.

root@host:/usr/src# add-apt-repository universe

Aktualisiere die Paketliste inklusive der neuen Quellen.

root@host:/usr/src# apt-get update

Installiere Powershell mit apt.

root@host:/usr/src# apt-get install powershell
von  
0 Pluspunkte 0 Minuspunkte

Du kannst Powershell mit snap installieren.

snap install powershell --classic
von (706 Punkte)