Strona 1 z 1

[Debian7] sudo: apt: command not found

: 27 sierpnia 2016, 21:45
autor: siwykamil
Witam, mam Debian 7 64bit i potrzebuje na niego zainstalować pare rzeczy pod serwer nie ukrywam nie znam się na tym za bardzo wiec prosze o pomoc :D

W poradniki jest napisane że mam wpisać tą komende
sudo dpkg --add-architecture i386; sudo apt update; sudo apt install mailutils postfix curl wget file gzip bzip2 bsdmainutils python util-linux tmux lib32gcc1 libstdc++6 libstdc++6:i386

Ale po jej wpisaniu wyskakuje
sudo: apt: command not found
sudo: apt: command not found
sudo: apt: command not found
sudo: apt: command not found

I teraz pytanie ktoś wie jak to naprawić ?

Re: [Debian7] sudo: apt: command not found

: 27 sierpnia 2016, 22:10
autor: dedito
Użyj su aby stać się root-em i dalej to co w poradniku z przedrostkiem sudo.

Re: [Debian7] sudo: apt: command not found

: 28 sierpnia 2016, 10:36
autor: liske1
Nie apt tylko apt-get .

Re: [Debian7] sudo: apt: command not found

: 28 sierpnia 2016, 14:28
autor: lizard
A może już jesteś rootem i nie potrzebujesz sudo? Wystarczy wtedy: dpkg --add-architecture i386; sudo apt-get update; sudo apt-get install mailutils postfix curl wget file gzip bzip2 bsdmainutils python util-linux tmux lib32gcc1 libstdc++6 libstdc++6:i386.

Re: [Debian7] sudo: apt: command not found

: 10 września 2016, 14:22
autor: gizol
Tam gdzie masz komendy "sudo apt" powinno być "sudo apt-get" popraw to i powinno być dobrze.

Re: [Debian7] sudo: apt: command not found

: 10 września 2016, 16:09
autor: Yampress
Ale w stretchu jest już apt 2 generacji i właśnie się go tak używa. I ...
[root@debian /home/yampress]# apt
apt 1.3~rc4 (amd64)
Usage: apt [options] command

apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.

Most used commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
install - install packages
remove - remove packages
autoremove - Usuwa automatycznie wszystkie nieużywane pakiety
update - update list of available packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file

See apt(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).
Ten APT ma moce Super Krowy.

[root@debian /home/yampress]# apt show apt
Package: apt
Version: 1.3~rc4
Priority: important
Section: admin
Maintainer: APT Development Team <deity@lists.debian.org>
Installed-Size: 3533 kB
Depends: adduser, gpgv | gpgv2 | gpgv1, debian-archive-keyring, init-system-helpers (>= 1.18~), libapt-pkg5.0 (>= 1.3~rc2), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2)
Recommends: gnupg | gnupg2 | gnupg1
Suggests: apt-doc, aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2), powermgmt-base, python-apt
Breaks: apt-utils (<< 1.3~exp2~)
Replaces: apt-utils (<< 1.3~exp2~)
Tag: admin::package-management, devel::lang:ruby, hardware::storage,
hardware::storage:cd, implemented-in::c++, implemented-in::perl,
implemented-in::ruby, interface::commandline, network::client,
protocol::ftp, protocol::http, protocol::ipv6, role::program,
scope::application, scope::utility, sound::player, suite::debian,
use::downloading, use::organizing, use::searching, works-with::audio,
works-with::software:package, works-with::text
Download-Size: 1176 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.pl.debian.org/debian stretch/main amd64 Packages
Description: Menedżer pakietów do wiersza poleceń
Pakiet zawiera narzędzia wiersza poleceń do wyszukiwania i zarządzania
pakietami oraz do wyszukiwania informacji na ich temat z niskopoziomowym
dostępem do wszystkich funkcji biblioteki libapt-pkg.
.
Należą do nich:
* apt-get do odszukiwania pakietów i informacji na ich temat z
uwierzytelnionych źródeł oraz do instalowania, aktualizowania i
usuwania pakietów razem z ich zależnościami;
* apt-cache do wyszukiwania dostępnych informacji na temat
zainstalowanych oraz nadających się do zainstalowania pakietów;
* apt-cdrom do korzystania z nośników wymiennych jako źródeł pakietów;
* apt-config jako interfejs do konfiguracji ustawień;
* apt-key jako interfejs do zarządzania kluczami uwierzytelniania.

[root@debian /home/yampress]#