Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2836  / 1 Year ago, wed, november 23, 2022, 8:37:26

I get an error every time I try to install lamp with:



sudo tasksel install lamp-server


My terminal looks like this :



root@(none):~# sudo tasksel install lamp-server
sudo: unable to resolve host (none)
tasksel: aptitude failed (100)

More From » apt

 Answers
3

About the host error, it is because you don't have hostname set:




root@(none):~#




You should set your hostname first:



sudo hostname ubuntu-server


Also check that your /etc/hosts file has a entry like this:



127.0.0.1   localhost
127.0.1.1 ubuntu-server


Then you need to have tasksel installed in your system:



sudo apt-get update
sudo apt-get install tasksel


Now you can use it:



sudo tasksel lamp-server


If you don't want to use tasksel, you could use:



sudo apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -q -y install lamp-server^

[#29061] Thursday, November 24, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
naldis

Total Points: 257
Total Questions: 101
Total Answers: 111

Location: Kenya
Member since Sat, Feb 25, 2023
1 Year ago
;