I’m trying to sort out a website and need to learn all I can as I’m a newbie to linux. I have looked online for info about installing using Terminal but do not seem to even
pass go… As soon as I type in the command ‘sudo apt-get apache2’ or ‘apt-get wordpress’ I get this:
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I have no idea what this means…
Also is it possible to use my PC as a server, if so what are the benefits??? or will I need to pay for webhosting???
I hope someone can shed some light on what’s up!!!
is usually caused by trying to install something from the command line whilst you have another package manager (or update manager) open … you can only use one at a time, as the first one opened locks dpkg.
is it possible to use my PC as a server,
If you mean a webserver … not really, well at least not without 2 permanent DNS servers pointing at it for name resolution.
or will I need to pay for webhosting
Yes … well actually it COULD be done from your home, but it’s very hard to do without a static external IP which most ISP’s charge extra for.
Best bet is to get a host that will set up wordpess (or at least a compatible database) for you.
Another option would be to rent a Linux VPS (virtual personal/private server) and manually install the LAMP stack and wordpess on that … this is usually a more expensive option, so it depends on your requirements.
is usually caused by trying to install something from the command line whilst you have another package manager (or update manager) open … you can only use one at a time, as the first one opened locks dpkg.
I am baffled… Yep not difficult at the moment…! I only have Firefox open at the moment… How do I find out what other package manager or update manager is open in order to close it???
When ttf-mscorefonts wants you to select OK, use the “Tab” key to highlight the “OK”, then hit the “Enter” key to accept the licence.
[EDIT]
If necessary, close the terminal and reinstall ttf-mscorefonts:
sudo apt-get install --reinstall ttf-mscorefonts
Be Aware - ttf-mscorefonts will NOT finish installing unless you accept the licence … use the “Tab” key to selct “OK” then hit enter.
Sometimes it opens another window, that might be behind the terminal … when it appears to stop/freeze … try minimising the terminal and see if there’s another window asking you to accept the licence.
Trying to sort out this… I wish I knew what all the code was doing but I don’t have time to investigate… I learnt HTML once and that was fun and could see the results in no time!!!
Tried to install:- sudo apt-get install --reinstall ttf-mscorefonts
Now I get ‘was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem’
I ran configure a and that seemed ok
I then tried the command sudo apt-get install --reinstall ttf-mscorefonts
Results
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package ttf-mscorefonts
What do I need to do now? I feel like I’m going around in circles and it’s probably because I’m clueless
;D Yey… that’s done it… thanks Mark. Now I just need to figure out the rest. I.e wordpress and apache2 or I came across filezilla today and wondered if it did the same as apache2?
What exactly are you trying to achieve … apache and filezilla are completely different things … ones a web server, and the other’s an FTP client/server
I came across filezilla today and wondered if it did the same as apache2?
As Mark pointed out, those are two different purpose projects.
Apache is for serving up web content whilst Filezilla is for uploading that content onto the web server.