Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I accidentally deleted /usr/sbin/a2ensite. Any way I can restore it? Tried sudo apt-get install a2ensite but I got the error message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package a2ensite
Tried sudo apt-get install apache2 and sudo aptitude update but no luck there either. Any ideas? Using ubuntu.
Cheers,
agsb
Try:
sudo apt-get install --reinstall apache2 apache2-common
a2ensite as a script is contained in the apache2.2-common package. You can download it here and extract the file from the contained data archive yourself.
Edit: The Ubuntu packages can be found here.
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 months ago.
Improve this question
I want to install this package for iptables-legacy on my RHEL 8 instance: https://fedora.pkgs.org/rawhide/fedora-aarch64/iptables-legacy-1.8.8-3.fc37.aarch64.rpm.html
When I do dnf install iptables-legacy , it returns an error saying the package can't be found.
I guess I need to add a new repository ( https://fedora.pkgs.org/rawhide/fedora-aarch64), using dnf install ... but not sure how to get the details of this repo?
Fedora 28 is RHEL 8 upstream per: https://docs.fedoraproject.org/en-US/quick-docs/fedora-and-red-hat-enterprise-linux/index.html
To install iptables v1.6.2
microdnf update && microdnf install -y dnf
dnf install -y https://dl.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/i/iptables-libs-1.6.2-2.fc28.x86_64.rpm
dnf install -y https://dl.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/i/iptables-1.6.2-2.fc28.x86_64.rpm
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
How can I install Apache 2.4.46 in Ubuntu from source, because I want to have the pure package, without tweaks.
The apache2 installed from apt might be more secure, but this is my intention.
Please note that you should always install the latest version of a software for more security. I suggest you to install Apache from Ubuntu's apt package manager 'if you are on a production server'. Installing it from source on a local environment doesn't matter. This tutorial is for Ubuntu/Debian based systems.
Please follow this for the instructions of installing it, by me, with a bit more explanation. Go to the terminal, and enter the following commands one by one and hit enter for no confusion:
Install some required libraries:
sudo apt install libnghttp2 libpcre3 libssl build-essential -y
Navigate to the directory from which we will be compiling apache.
cd /usr/local/src
In your browser, go to http://httpd.apache.org/download.cgi.
Right click and copy the link location of the link looking like Source: httpd-2.4.46.tar.gz
sudo wget -O- <download-link> | tar -zxf -
Also go to http://apr.apache.org/download.cgi and copy the link location for Unix Source: apr-1.7.0.tar.gz
sudo wget -O- <apr-download-link> | tar -zxf -
Go to http://apr.apache.org/download.cgi and copy the link location for Unix Source: apr-util-1.6.1.tar.gz
sudo wget -O- <apr-util-download-link> | tar -zxf -
Move the downloaded and extracted apr files to the right location:
sudo mv apr- httpd-/srclib/apr
Move the downloaded and extracted apr-util files to the right location:
sudo mv apr-util- httpd-/srclib/apr-util
Navigate into the httpd directory:
cd httpd-
According to me, this configuration is better than any other. The --prefix is where apache is installed.
sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared="reallyall" --enable-mpms-shared="all"
Compile the sources:
sudo make
Install the compiled application to your system:
sudo make install
These directories could be altered using different arguments in step 9. (the sudo ./configure command)
The apache directory is /usr/local/apache2.
The apache conf directory is /usr/local/apache2/conf.
The apache main conf file is /usr/local/apache2/conf/httpd.conf.
For more info go to http://httpd.apache.org/docs/current/install.html.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I know its early to ask but has anybody out there had any luck running latest Deepin Desktop Environment (DDE) on WSL2 like you can run xfce4 through an X-server like Xming or VcXsrv?
Starting from Ubuntu 20.04:
sudo add-apt-repository ppa:ubuntudde-dev/stable
sudo apt update
sudo apt upgrade
sudo apt install ubuntudde-dde
sudo service dbus start
To display using rdp:
sudo apt-get install xrdp
sudo /etc/init.d/xrdp start
To display using X11:
export DISPLAY=[DISPLAY IP]:[DISPLAY NUMBER].0
deepin-session
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
The community reviewed whether to reopen this question 7 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Environment
Red Hat Enterprise Linux 7.7
abrt-cli version 2.1.11
Solution
~$ sudo rm -rf .cache
re-login
~$ sudo rm -rf .cache
Then re-login.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I got Blank screen while login with correct id and password.
Tried the following solution, still blank screen.
Ubuntu 16.04 + Nvidia Driver = Blank screen
Maybe the probleme is already solved but it's will be good to share the solution.
I hade the same problem and I found the solution here :
https://askubuntu.com/questions/779595/ubuntu-16-04-lts-black-screen-after-login
and here :
https://seravo.fi/2015/fixing-black-screen-after-login-in-ubuntu-14-04
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade -y
sudo reboot
had a nearly identical problem a few months ago. Switching into a console from the LightDM login screen (Ctrl-Alt-F1), logging in with administrative username and password, and entering the following commands resolved the issue:
sudo mv ~/.Xauthority ~/.Xauthority.backup
sudo service lightdm restart
Ctrl+Alt+F7 is for graphic login mode.
First login with the command line and run "sudo apt-get update" also for that you required internet connectivity. after that reboot system and go with recovery mode for repairing broken dpkg packages.
also find this link for exact solution: https://ubuntuforums.org/showthread.php?t=2363945