I have a redmine setup. today morning I saw that my redmine folder was empty and I was unable to access redmine, so I tried installing redmine again using:
sudo apt-get install redmine
I am getting the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
redmine: Depends: ruby-rails-2.3 (>= 2.3.14) but it is not going to be installed or rails (>= 2.3.14) but it is not going to be installed
How can I reinstall redmine?
Actually Redmine has its own step by step installation.
First of all if you have some data on your mysql, make a backup
$ mysqldump -u root -p redmine > redmine.sql
if not, then you can follow up this instructions:
Pre-install
Set the timezone
Select your timezone and exit.
Set your hostname
Enter your server name and save.
Map your fully qualified domain name (FQDN) to localhost
Add a line mapping local host to your FQDN and hostname and save. eg.
Redmine Installation
Install the LAMP stack
sudo tasksel install lamp-server
Install the required packages
Install the required Ruby gems
Download Redmine into /user/share/redmine directory
Create an empty MySQL database and accompanying user named redmine for example.
Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment.
Modify according to the following lines and save (ctrl+x)
Generate a session store secret.
Create the database structure, by running the following command under the application root directory:
Insert default configuration data in database, by running the following command:
Setting up permissions
Test using the webrick web server
Point your web browser at http://[my server ip]:3000
You should now see the application welcome page.
Apache Integration
Install the required packages
Add a symbolic link to the public redmine web directory
Configure Passanger to run as www-data
Add the follow line and save (ctrl+x)
Create a new Apache site file
Add the following lines and save (ctrl+x)
Enable the Redmine website
Enable the Passenger and Rewrite modules and restart Apache
Test the setup
Open up your favorite web browser and go to
http://[my site or ip]/redmine
Unfortunatelly the official Ubuntu packages are not yet up-to-date (so last version is 1.4.x), because they follow official Debian packages and we were not fast enough to get RoR 3.2 before Debian has been frozen (well it's our own free time and limited resources).
Anyway there's Redmine 2.2.x packages prepared by me available from Debian Experimental and copied to ondrej's Redmine PPA for all supported releases (excluding lucid which has Ruby so old it's impossible to backport it). It might get unstable from time to time, but generally I try to keep the PPA in stable state.
So the recommended solution for you would be to add the ppa using:
Then you can follow the guide HowTo Install Redmine on Ubuntu step by step or other guides (like HowTo configure Nginx to run Redmine).