LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2017, 08:45 AM   #1
martech
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Rep: Reputation: Disabled
The following packages have unmet dependencies:


I am trying to instal Koha on my newly installed ubuntu and i got to a stage where i type the the code

sudo apt-get install koha-common

but it only return the message bellow

koha-common : Depends: libconvert-basen-perl but it is not installable
Depends: libmodule-bundled-files-perl but it is not installable
Depends: libmojolicious-perl (>= 6.0) but it is not going to be installed
Depends: libswagger2-perl (>= 0.59) but it is not going to be installed


i dont know if anyone can help me out
 
Old 07-19-2017, 04:50 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
You could try to install them manually and see if it gives any more specific information on why those packages aren't being installed. Maybe your system has another incompatible version installed needed by your system.

Also, make sure you run
Code:
apt-get update
and an
Code:
apt-get install -f
may help as well
 
1 members found this post helpful.
Old 07-19-2017, 06:48 PM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Which version of Ubuntu are you running?

Could you please also paste the output from the following command so that we can check that your software sources are set up correctly:

Code:
cat /etc/apt/sources.list{,.d/*}
 
2 members found this post helpful.
Old 07-20-2017, 02:47 AM   #4
miqrojamie
LQ Newbie
 
Registered: Jul 2017
Location: England
Distribution: Xubuntu
Posts: 7

Rep: Reputation: Disabled
As TheEzekielProject suggested, run "sudo apt-get -f install" in a Terminal window, and it should automatically correct the dependencies for you.
 
Old 07-20-2017, 07:57 AM   #5
martech
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks to all those that responded. but the problem is still there uresolved after trying all your suggestions

1. the verssion of my ubuntu is 15.4.0



Quote:


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ng.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://ng.archive.ubuntu.com/ubuntu/ vivid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ng.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://ng.archive.ubuntu.com/ubuntu/ vivid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ng.archive.ubuntu.com/ubuntu/ vivid universe
deb-src http://ng.archive.ubuntu.com/ubuntu/ vivid universe
deb http://ng.archive.ubuntu.com/ubuntu/ vivid-updates universe
deb-src http://ng.archive.ubuntu.com/ubuntu/ vivid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ng.archive.ubuntu.com/ubuntu/ vivid multiverse
deb-src http://ng.archive.ubuntu.com/ubuntu/ vivid multiverse
deb http://ng.archive.ubuntu.com/ubuntu/ vivid-updates multiverse
deb-src http://ng.archive.ubuntu.com/ubuntu/ vivid-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ng.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://ng.archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu vivid-security main restricted
deb-src http://security.ubuntu.com/ubuntu vivid-security main restricted
deb http://security.ubuntu.com/ubuntu vivid-security universe
deb-src http://security.ubuntu.com/ubuntu vivid-security universe
deb http://security.ubuntu.com/ubuntu vivid-security multiverse
deb-src http://security.ubuntu.com/ubuntu vivid-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu vivid partner
# deb-src http://archive.canonical.com/ubuntu vivid partner
deb http://debian.koha-community.org/koha stable main
root@elibrary-HP-Compaq-dx2390-Microtower:/home/elibrary#
 
Old 07-20-2017, 08:01 AM   #6
martech
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
in the attempt to install koha i typed

Quote:
sudo apt-get install koha-common
but the output screen it returned is this bellow


Quote:
root@elibrary-HP-Compaq-dx2390-Microtower:/home/elibrary# sudo apt-get install koha-common
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:
koha-common : Depends: libgd-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@elibrary-HP-Compaq-dx2390-Microtower:/home/elibrary#
 
Old 07-20-2017, 08:14 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,503

Rep: Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536
apt-get install -f
 
1 members found this post helpful.
Old 07-20-2017, 08:21 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Messages such as
Quote:
Originally Posted by martech View Post
Code:
Depends: libmodule-bundled-files-perl but it is not installable
are an indication of a
serious reason for proceeding carefully. You should be in "admin mode" for this solution, IMO.

We will need to examine the repositories of this "ubuntu" computer, please open a terminal and issue
Code:
cat /etc/apt/sources.list{,.d/*}
Also, we could use the output of
Code:
cat /etc/lsb-release
Please use [code]output here[/code]
Where you used [b] and [/b] in your opening post, Convert those to [code] and [/code] and you will help preserve formatting of your outputs on most forums.

Or another shorter (less typing!) method...
in the terminal, issue
Code:
cat /etc/apt/sources.list{,.d/*} | nc termbin.com 9999
and paste the short url link.

in a terminal, you can in "admin mode" check the apt package system first, by issuing
Code:
sudo apt-get install -f
or some use or I have seen
Code:
sudo apt-get -f install
I would NOT follow any suggestion to "Use 'apt-get autoremove' to remove them" at this time.

Don't panic.

Last edited by Habitual; 07-20-2017 at 08:23 AM.
 
1 members found this post helpful.
Old 07-20-2017, 01:53 PM   #9
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
It would be nice if you could tell us what the error messages were or any more information other than the problem is just "still unresolved".

Also, go ahead and run
Code:
dpkg --get-selections | grep hold
to see if you have any held packages like your last post indicates
 
1 members found this post helpful.
Old 07-20-2017, 02:13 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by martech View Post
1. the verssion of my ubuntu is 15.4.0
EOL as of February 4 2016.

Try an LTS Release?

Last edited by Habitual; 07-20-2017 at 02:14 PM.
 
1 members found this post helpful.
Old 07-21-2017, 04:39 AM   #11
martech
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
Pls can anyone help me with longing into localhost 127.0.1.1:80 or 127.0.1.1:8080


when i type "127.0.1.1:80" in my url on ubuntu os it retuns
Quote:
Software error:

DBIx::Class::Storage:BI::catch {...} (): DBI Connection failed: Access denied for user 'koha_library'@'localhost' (using password: YES) at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1490. at /usr/share/koha/lib/Koha/Database.pm line 100

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.
i know my passowrd but it never ask me for the password let alone allow me to type it in. pls i need the reply urgently


thanks for always helping
 
Old 07-21-2017, 04:48 AM   #12
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,503

Rep: Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536
Quote:
Originally Posted by martech View Post

when i type "127.0.1.1:80" in my url on ubuntu os
This is more or less meaningless. Which application is it (a browser or something else?) What did you try to accomplish at all? How is it related to the original post?
 
Old 07-21-2017, 05:19 AM   #13
martech
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
sorry i am actually in the process of koha installation on ubuntu 15.04. it seam i got hooked in the process

so when i type "127.0.1.1:80" in my url on ubuntu os

it returns
Quote:
Software error:

DBIx::Class::Storage:BI::catch {...} (): DBI Connection failed: Access denied for user 'koha_library'@'localhost' (using password: YES) at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1490. at /usr/share/koha/lib/Koha/Database.pm line 100

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.
i have the password but i tot it will give me the interface to enter the password

Thanks very much
 
Old 07-21-2017, 06:05 AM   #14
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by martech View Post
i know my passowrd but it never ask me for the password let alone allow me to type it in. pls i need the reply urgently
thanks for always helping
The program isn't "talking" to the database, so

You'll need to give "koha_library" mysql privs, usually, like so, at the terminal using
Code:
mysql-uroot -p
and the root_mysql password
Code:
grant ALL PRIVILEGES on <koha_db>.* to 'koha_library'@'localhost' identified by '<password>';flush privileges; exit;
at the c-line:
Code:
mysql -ukoha_library -p < enter>
and enter the given password in the last command above.
when you are logged in in to mysql as the koha_library "user", issue a
Code:
show databases;
and you should see the <koha_db> in the result.
Try your username/password after that at 127.0.1.1:80 or 127.0.1.1:8080

Good Luck!

Last edited by Habitual; 07-21-2017 at 06:09 AM.
 
1 members found this post helpful.
Old 07-21-2017, 08:48 AM   #15
martech
LQ Newbie
 
Registered: Jul 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks so much for your support
but after typing this code

"mysql -ukoha_library -p < enter>"

as you requested this was what it returns

Quote:
bash: syntax error near unexpected token `newline'
root@elibrary-HP-Compaq-dx2390-Microtower:/home/elibrary#
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Getting error while using sudo apt-get upgrade "The following packages have unmet dependencies:" aruneshdutta Linux - Newbie 2 06-25-2017 11:08 AM
Packages with unmet dependencies archieval Linux - Software 18 04-23-2010 07:04 PM
unmet dependencies lumix Linux - Newbie 2 06-10-2008 10:04 PM
unmet dependencies Josephus Ross Linux - General 10 08-21-2007 12:49 PM
...packages have unmet dependencies? stribas Linux - Newbie 1 09-29-2004 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration