Apt get install isc dhcp server ошибка

Итак, я пытаюсь установить isc-dhcp-server, но когда я попытался установить его, появятся следующие ошибки. (sudo apt-get install isc-dhcp-server)

Reading package lists... Done
Building dependency tree
Reading state information... Done
isc-dhcp-server is already the newest version (4.3.3-5ubuntu12.7).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up isc-dhcp-server (4.3.3-5ubuntu12.7) ...
/sbin/restorecon: lstat(/var/lib/dhcpd/dhcpd.leases) failed: No such file or directory
dpkg: error processing package isc-dhcp-server (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
isc-dhcp-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Я попытался сначала очистить его (я пытаюсь переустановить его, так как у меня есть ошибка не подключения к выскочке в DRBL).

Пробовал также эти команды:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

Затем

sudo apt-get install isc-dhcp-server
]

==========================================

Хорошо, неважно. Я нашел решение. Я удалил все файлы isc-dhcp-server в / var / lib / dpkg / info /. Затем снова установите его.

sudo rm /var/lib/dpkg/info/isc-dhcp-server*
sudo apt-get install isc-dhcp-server

задан
25 October 2017 в 08:44

поделиться

2 ответа

Ничего себе … работал на меня. Благодаря! Я размещал мой сервер, пытаясь редактировать разрешения и прочее. Я пытался очистить старую аренду, и все было защищено от записи. Удалил и переустановил его, и ничего не работало должным образом. Это позволило мне переустановить его и сказать, чтобы он перезаписывал или воссоздавал отсутствующие файлы конфигурации.

sudo rm /var/lib/dpkg/info/isc-dhcp-server

sudo apt install isc-dhcp-server

ответ дан Filbuntu
18 July 2018 в 04:36

поделиться

Ничего себе … работал на меня. Благодаря! Я размещал мой сервер, пытаясь редактировать разрешения и прочее. Я пытался очистить старую аренду, и все было защищено от записи. Удалил и переустановил его, и ничего не работало должным образом. Это позволило мне переустановить его и сказать, чтобы он перезаписывал или воссоздавал отсутствующие файлы конфигурации.

sudo rm /var/lib/dpkg/info/isc-dhcp-server

sudo apt install isc-dhcp-server

ответ дан Filbuntu
24 July 2018 в 18:07

поделиться

I am trying to install DHCP server using command «sudo apt-get install isc-dhcp-server». But I got an error. It seems like the mirrored file no longer available.

Err http://au.archive.ubuntu.com/ubuntu/ precise-updates/main isc-dhcp-server i386 4.1.ESV-R4-0ubuntu5.6
404  Not Found

Failed to fetch http://au.archive.ubuntu.com/ubuntu/pool/main/i/isc-dhcp/isc-dhcp-server_4.1.ESV-R4-0ubuntu5.6_i386.deb 404  Not Found

How can I fix the problem? Thanks.

Kevin Bowen's user avatar

Kevin Bowen

19.3k55 gold badges76 silver badges81 bronze badges

asked Aug 1, 2013 at 14:59

Wenc's user avatar

First open a terminal and type;

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install isc-dhcp-server

If the problem still continues I’m suggesting you to change your mirror.
Open source.list using your text editor. eg; vim.

sudo vim /etc/apt/sources.list

Then locate http://au.archive.ubuntu.com/ubuntu and replace it with http://archive.ubuntu.com/ubuntu.

There is a GUI solution called Software-Sources for suggestion that is above.
For more information; https://help.ubuntu.com/community/Repositories/Ubuntu

Also you can manually download isc-dhcp-server package and install it.

answered Aug 1, 2013 at 16:29

Faruk Uzun's user avatar

Faruk UzunFaruk Uzun

1,2602 gold badges10 silver badges7 bronze badges

0

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • » Unable to locate package dhcp-server » while trying to apt-get install dhcp-server

  1. Unhappy » Unable to locate package dhcp-server » while trying to apt-get install dhcp-server

    Hello, I’ve been searching the internet now for a while and I couldn’t really find a clear answer.

    Normally this should display when NOT having an internet connection, but I DO have one. So that’s where the problem is..

    It’s pretty simple, trying to install the dhcp-server using » apt-get install dhcp-server » but I get the error » Unable to locate package dhcp-server «.

    I do run the command in root, so this could not be the problem. I checked my internet connection by pinging to 8.8.8.8 (google dns servers) with result.

    Did I perhaps misspelled something? This should be a pretty basic command, I’m just looking over something.. :/

    Looking forward to hear from this forum, I just made an account to get this problem fixed.

    Thanks in advance!


  2. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    Hello and welcome to the forums

    What is your Ubuntu version? AFAIK the DHCP server is provided by virtual package dhcp3-server (which resolves to package isc-dhcp-server, at least in currently-supported versions)


  3. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    Quote Originally Posted by steeldriver
    View Post

    isc-dhcp-server

    +1

    The packages changed names (some time ago). This are the names of the common DHCP related packages:

    Code:

    isc-dhcp-client
    isc-dhcp-common
    isc-dhcp-server

    Here is an Ubuntu tutorial: isc-dhcp-server.

    Regards.

    BTW: here’s the old documentation dhcp3-server. Second paragraph explains it is obsolete, and points to the other help page.


  4. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    Helpful hint: if you know the approximate name of the program, you can use the following command

    Code:

    apt-cache search packagename

    For example:

    Code:

    apt-cache search dhcp-server
    isc-dhcp-server - ISC DHCP server for automatic IP address assignment
    isc-dhcp-server-dbg - ISC DHCP server for automatic IP address assignment (server debug)
    isc-dhcp-server-ldap - DHCP server that uses LDAP as its backend
    tcos-configurator - PyGTK tool to configure some needed services to get a TCOS server

    Don’t waste your energy trying to change opinions … Do your thing, and don’t care if they like it.


  5. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    Hello, thanks for all the comments and help.

    After using the command

    apt-cache search dhcp-server, I get:
    isc-dhcp-server — ISC DHCP server for automatic IP address assignment
    isc-dhcp-server-dbg — ISC DHCP server for automatic IP address assignment (server debug)
    isc-dhcp-server-ldap — DHCP server that uses LDAP as its backend

    So this seems right, I guess?

    Next, I tried » apt-get install isc-dhcp-server » which resulted in » E: Invalid operation isc-dhcp-server «.


  6. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    … are you sure you didn’t miss out the word install from the command?

    Code:

    sudo apt-get install isc-dhcp-server


  7. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    I am currently unable to install the dhcp server

    Code:

    glensa@agplatter:~$ sudo apt-get install isc-dhcp-server
    Reading package lists ... Done
    E: Unable to locate package isc-dhcp-server
    glensa@agplatter:~$ sudo -i
    root@agplatteer:~# apt-get install isc-dhcp*
    Reading package lists ... Done
    Building dependency tree
    Reading state information ... Done
    Note, selecting 'isc-dhcp-client' for regex 'isc-dhcp*'
    Note, selecting 'isc-dhcp-common' for regex 'isc-dhcp*'
    isc-dhcp-common is already the newest version
    isc-dhcp-client is already the newest version
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
    root@agplatter:~#

    This is on a fresh install (one day ago) of 14.04.3 LTS (i686)
    I am attempting to get this running with i686 because the last version of x64 that boots on my server is -61-generic


  8. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    Er, please don’t tack on to old threads. It’s better to open a new thread for a new problem.
    Your symptoms may seem similar, but the cause may be quite different.

    Well, you have shown that ‘sudo’ is not the problem.
    Do you have network connectivity?
    Do your sources in /etc/apt/sources.list* files show the proper mirror?
    You said this is a fresh install — did you create the dpkg database by running sudo apt-get update?


  9. Re: » Unable to locate package dhcp-server » while trying to apt-get install dhcp-ser

    Gads! error 299. I did not update/upgrade after installation. I was troubleshooting another problem on the hardware (wouldn’t boot x64 kernels past -61-generic). I installed14.04.3 LTS i686 server on this disk to see if it would boot a late i686 kernel. It did, and I went back to troubleshooting the x64 problem — with no luck and/or advice. So, I came back to this disk to try and get my home server back up running an i686 kernel and forgot that I had not done an update/upgrade after installation. Did that and installed disc-dhcp-server successfully. Now, I just need to get dns, samba, and nfs back up and I’ll stay on i686 from here on out. Aside — I will start new threads in the future. Thanks for your help.


Tags for this Thread

Bookmarks

Bookmarks


Posting Permissions

I’m using Kali Linux version 2.0 and I want to install the isc-dhcp-server package in order to practice on an evil twin attack but unfortunately I wasn’t able to do that.
I used this command:

apt-get install isc-dhcp-server
apt-get install dhcp3-server

But I get this error:

enter image description here

In order to solve this issue I tried a lot of things from here as well as from Google but I got no result.

Some solution that I have tried:

apt-get update
apt-get dist-upgrade
apt-get install isc-dhcp-server -y

I downloaded the synaptic package manager but I couldn’t find the isc-dhcp-server inside it.

enter image description here

apt-cache policy isc-dhcp-server output:

isc-dhcp-server:
  Installed: 4.2.2.dfsg.1-5+deb70u6
  Candidate: 4.2.2.dfsg.1-5+deb70u6
  Version table:
 *** 4.2.2.dfsg.1-5+deb70u6 0
        500 http://http.kali.org/kali/ kali/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy isc-dhcp-common output:

isc-dhcp-common:
  Installed: 4.2.2.dfsg.1-5+deb70u6
  Candidate: 4.2.2.dfsg.1-5+deb70u6
  Version table:
 *** 4.2.2.dfsg.1-5+deb70u6 0
        500 http://http.kali.org/kali/ kali/main i386 Packages
        100 /var/lib/dpkg/status

How can I solve this issue?

Здравствуйте. Я студент, которому нужна ваша помощь, потому что препод дал задание, а сам в ОС семейства линукс не шарит. Задание звучало так — создать виртуальную (на VirtualBox) локальную сеть с dhcp, используя Debian-подобные ОС. Я взяла непосредственно Debian 9 с оф сайта, нашла инструкции, что и как делать, всё изучила, поняла, что дел в принципе минут на 20-30, не считая установку ОС на виртуальные машины. Но возникла проблема, когда я взялась за настройки.
Начала, естественно, с машины, которая будет считаться сервером. В настройках машины я выбрала соединение NAT, доступ к вай-фай адаптеру компьютера был дан. Далее пыталась установить необходимый пакет, работала под root, перепробовала следующие команды:

1. apt-get install isc-dhcp-server
2. apt -y install isc-dhcp-server
3. apt install dhcp3-server
4. aptitude install isc-dhcp-server 

Для первых трёх выдавалась ошибка «не найден пакет isc-dhcp-server / dhcp3-server», в последней вариации не распознаёт команду aptitude. Интуитивно догадываюсь, что надо как-то заставить машину ловить мой интернет, тк сайты, допустим, не пингуются, но ошибка возникает не «невозможно подключиться к домену …», а «временный сбой в разрешении имён». Проделывая аналогичную работу на CentOS, первым делом я изменяла параметры подключения к сети в

/etc/sysconfig/network-scripts/ifcfg-eth0

Здесь похожего файла я не нашла, даже поискав в сети точный путь к нему, мне выдавалось, что создан новый файл (путь прописан был с vi в начале, как и было сказано в инструкции, найденной на просторах инета), а на скрине с сайта был готовый файл, визуально похожий на то, что я изменяла в центосе. Нашла вариант, что серверу стоит присвоить статический IP командой

ip addr add 192.168.1.35/24 dev eth0

но, во-первых, на команду прозвучал отказ, тк не распознано, что такое «eth0», а во-вторых, я в принципе сомневаюсь, что это могло бы помочь, ну да ладно.
Так что, ребята, у меня на вас большие надежды. Объясните, пожалуйста, что я делала не так, и что делать надо было. Заранее спасибо.

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Aps 169 ошибка скания
  • Appvlsvsubsystems64 dll ошибка
  • Application defined or object defined error vba ошибка
  • Application database exagear выдает ошибку

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии