apt get command not found что делать

Amazon Linux: apt-get: command not found

I’m trying to install an apache server on my AWS instance, however, it seems that it doesn’t have the apt package installed.

I googled and all I found was some broken links to this package. I am using Putty on a windows machine if that information helps.

I currently have low to none experience in linux enviroments.

I am running the following version of Linux

Can anyone help with that?

12 Answers 12

Try to install your application by using yum command yum install application_name

Check the Linux distribution, apt-get works in Debian based distro whereas yum works in Fedora based distro.

It is also possible your system administrator does not permit you (or did not put you in the group of users who have sudo permissions) to execute apt-get but if you have sudo access try to execute with sudo apt-get

if debian or yum install

I faced the same issue regarding apt-get: command not found here are the steps how I resolved it on ubuntu xenial

Search the appropriate version of apt from here ( apt_1.6.13_amd64.deb for ubuntu xenial)

Download the apt.deb

Now we can easily run

sudo apt-get install htop

This answer is for complete AWS beginners:

I had this issue but it was because I was trying to run a command from a tutorial inside my Mac computer. What I actually needed to do was SSH into my AWS machine, and then run the same command there. Ta Da, it worked:

Click this button in your EC2 instance, to be able to copy the SSH command. setup your SSH keys https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html and then you can SSH into your machine

Once here, you can run your sudo apt-get command.

Источник

Linux “Apt-Get Command Not Found” Error Solution

Linux distributions are using package managers in order to install, update and remove applications. In the old days there are very less package managers those are not so good. In to day they are very talented. apt-get command not found is command error type which is shown while installing, updating and removing applications. In this tutorial we will look some error cases and solutions.

Error

As an example when try to run apt-get install tmux command we get following error.

Error

Distributions Using Apt-Get

In order under stand error and get solution we need to know distributions using apt-get as default package manager. Following distributions can work with apt-get without problem.

Читайте также:  error code 279 роблокс что делать id 17

Distributions Not Using Apt-Get

The error is caused by distributions not using apt-get as default package manager. So the command will not found. Following distributions do not use apt-get as default package manager.

Solution

The solution is using given distribution package manager here is a list of them.

Fedora, CentOS, RHEL

These distributions use yum as default package manager. So we can use yum like below.

Fedora, CentOS, RHEL

For Arch Linux we can use following command.

Mac OS X

MacOS X uses brew as package manager. We can use it like below.

Источник

Команда apt get не найдена

Posted By: Jon | 1 Replies | Last Reply On: Apr 10, 2017 00:38:02

Как исправить команду apt get не найдена

Votes: 21 Posted On: Apr 10, 2017 00:38:02

To troubleshoot any error pertaining to the “apt-get” command, you need to have a basic understanding of what the said command actually does. APT (Advanced Package Tools) is a set of tools for managing packages of Debian operating systems and its derivatives like Ubuntu. These packages consist of all the primary and auxiliary applications required for various functions.

A simple command line tool, the apt-get command performs the functions of installing, removing, updating and upgrading a package. The commands used for these functions are discussed in brief.

Installing a package : sudo apt-get install

Removing a package : sudo apt-get remove

Updating a package : sudo apt-get update

Upgrading a package : sudo apt-get upgrade

For information about the command : apt-get help

Check your operating system

The APT packages are used in Debian operating systems and its derivatives. If you are getting the error message “apt-get : command not found ” please check the operating system you are working on. The “apt-get” will not work on RHEL and its derivatives like CentOS. These operating systems use the “yum” repository that contains all the software packages. To install packages in these operating systems, use the “yum” command.

Check the directories

The following output should be displayed: /usr/bin/apt-get

If the command returns no output, then you have no “apt” package installed. You will have to install the apt package manually by accessing the “ /etc/apt/sources.list” file.

Читайте также:  какой знак зодиака у себастьяна михаэлиса

This file contains all the relevant links to install or upgrade packages. Choose the appropriate mirror from the list.

The mirror will look something like this:

In the mirror, go to the “/pool/main/a/apt/ ” directory and download the correct “.deb ” file suitable for your architecture.

You can install the file by running the following command:

Here is a sample output of the “ /pool/main/a/apt/ ” directory.

OS Reinstallation

Источник

sudo: apt-get: command not found

I am really struggling to get my head around terminal i keep getting commands not found what am i doing wrong?

I am trying to install ruby on the mac using this tutorial. http://www.ruby-lang.org/en/downloads/

but i keep getting the error sudo: apt-get: command not found

Can some please help me or give me an option to try to debug.

4 Answers 4

apt-get is suitable for Linux based Ubuntu machines; for MAC, try apt-get equivalent such as Brew

if you are on Mac OS (iMac make me think so), you will not be able to use aptitude as it simply doesnt exist on Mac os.

may I advice you to go to http://www.macports.org/ which is kind of the same system (but based on Unix port)

I managed to final get a install up and running what a pain.

I am running an imac with mac os x version 10.6.6

i had to first run this command in the terminal. sudo port install ruby

ok great that then ran the install off ruby ok so after the install was complete i can the run this command.

which then created a project for me called «new» ok getting their.

next finding an editor to run rails- I installed netbeans seemed to be a good option.

next open new project and select ruby on rails application with existing sources, this then prompted me with the following error- that I don’t have gems installed and to run this command.

I have ran that command and got the following.

ok so i then click ok on NetBeans and i am in with a project not sure whether gems is installed correctly tho, so gonna start learning ruby on rails now and ill report back with issues.

Источник

unixforum.org

Форум для пользователей UNIX-подобных систем

Модератор: Bizdelnick

Сообщение dmarkelov » 27.08.2011 05:33

Сообщение Lan4 » 27.08.2011 07:38

Читайте также:  при каком пульсе принимать кораксан

Запускаете с помощью su/sudo?

Сообщение dmarkelov » 27.08.2011 08:02

Запускаете с помощью su/sudo?

# which apt-get
which: no apt-get in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.5)
ks313510

Сообщение Lan4 » 27.08.2011 08:38

Скайпа, к сожалению, нету.

Нашел решение по вашей проблеме.
dpkg работает? Если да, то можно скачать apt и зависимости сдесь: http://packages.debian.org/stable/base/apt
потом:

Сообщение dmarkelov » 27.08.2011 10:27

Скайпа, к сожалению, нету.

Нашел решение по вашей проблеме.
dpkg работает? Если да, то можно скачать apt и зависимости сдесь: http://packages.debian.org/stable/base/apt
потом:

что-то не везет мне сегодня

# dpkg
-bash: dpkg: command not found
ks313510

Сообщение SLEDopit » 27.08.2011 11:14

А как Вам достался сервер? Получается, там вообще нет пакетного менеджера?
Как вариант, можно запаковать бинарники с рабочей машины и засунуть на сервер, однако большого смысла от этого не будет, если на сервере менеджера пакетов нет. Если в такой системе начать пользоваться менеджером пакетов, это может привести к еще большим проблемам.

зы. а у вас точно debian?
cat /etc/issue покажите, если есть.

Сообщение dmarkelov » 27.08.2011 11:20

А как Вам достался сервер? Получается, там вообще нет пакетного менеджера?
Как вариант, можно запаковать бинарники с рабочей машины и засунуть на сервер, однако большого смысла от этого не будет, если на сервере менеджера пакетов нет. Если в такой системе начать пользоваться менеджером пакетов, это может привести к еще большим проблемам.

зы. а у вас точно debian?
cat /etc/issue покажите, если есть.

# cat /etc/issue
Gentoo Base System version 1.6.14
Linux ks313510.kimsufi.com 2.6.38.2-grsec-xxxx-grs-ipv6-64 #1 SMP Fri Apr 15 17:44:15 UTC 2011 x86_64 Intel® Core™ i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux

Сообщение Lan4 » 27.08.2011 11:22

emerge вам в помощь)

Сообщение dmarkelov » 27.08.2011 11:23

А как Вам достался сервер? Получается, там вообще нет пакетного менеджера?
Как вариант, можно запаковать бинарники с рабочей машины и засунуть на сервер, однако большого смысла от этого не будет, если на сервере менеджера пакетов нет. Если в такой системе начать пользоваться менеджером пакетов, это может привести к еще большим проблемам.

зы. а у вас точно debian?
cat /etc/issue покажите, если есть.

# cat /etc/issue
Gentoo Base System version 1.6.14
Linux ks313510.kimsufi.com 2.6.38.2-grsec-xxxx-grs-ipv6-64 #1 SMP Fri Apr 15 17:44:15 UTC 2011 x86_64 Intel® Core™ i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux

ВОТ ЭТО Я ЗАТУПИЛ. emerge в gentoo решает большенство вопросов. НЕ СМЕЙТЕСЬ СИЛЬНО

Источник

Сказочный портал