Wordpress for Linux

Hi

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!!!

Thanks

OK, lots of different issues/questions here …

E: Could not open lock file /var/lib/dpkg/lock

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.

Thanks Mark,
Quote

E: Could not open lock file /var/lib/dpkg/lock

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???

is update manager downloading updates in the background ?

Are you in Mint or Ubuntu ?

Probably the easiest way to be sure no other package managers or open is to reboot.

if you are 100% sure you haven’t opened a package manager after rebooting, and you still get those errors … run:

sudo mv -v /var/lib/apt/lists /var/lib/apt/lists.backup

then

sudo mkdir -p /var/lib/apt/lists/partial

then

sudo apt-get update

then

sudo apt-get upgrade

if those commands worked without error, you should be good to go :wink:

Thanks, I rebooted and started ran the commands and this is what I got:-

Configuring ttf-mscorefonts-installer ├─

I managed to OK this and it ran through loads of stuff

and ended with
Processing triggers for update-notifier-common …
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe

it just then seemed to freeze and I had no option but to close the terminal…

Any ideas?

Use the tab key6 to select OK, then hit enter

I’m using Mint 14 and re my last post I’m still stuck?

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.

Today’s another day! and grrr…

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 :slight_smile:

My mistake … the package is called ttf-mscorefonts-installer … so run:

sudo apt-get install ttf-mscorefonfts-installer

;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.