LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   The following packages have unmet dependencies: (https://www.linuxquestions.org/questions/linux-software-2/the-following-packages-have-unmet-dependencies-4175610181/)

martech 07-19-2017 08:45 AM

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

TheEzekielProject 07-19-2017 04:50 PM

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

hydrurga 07-19-2017 06:48 PM

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/*}

miqrojamie 07-20-2017 02:47 AM

As TheEzekielProject suggested, run "sudo apt-get -f install" in a Terminal window, and it should automatically correct the dependencies for you.

martech 07-20-2017 07:57 AM

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#

martech 07-20-2017 08:01 AM

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#

pan64 07-20-2017 08:14 AM

apt-get install -f

Habitual 07-20-2017 08:21 AM

Messages such as
Quote:

Originally Posted by martech (Post 5737602)
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.

TheEzekielProject 07-20-2017 01:53 PM

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

Habitual 07-20-2017 02:13 PM

Quote:

Originally Posted by martech (Post 5737600)
1. the verssion of my ubuntu is 15.4.0

EOL as of February 4 2016.

Try an LTS Release?

martech 07-21-2017 04:39 AM

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

pan64 07-21-2017 04:48 AM

Quote:

Originally Posted by martech (Post 5738024)

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?

martech 07-21-2017 05:19 AM

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

Habitual 07-21-2017 06:05 AM

Quote:

Originally Posted by martech (Post 5738024)
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!

martech 07-21-2017 08:48 AM

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


All times are GMT -5. The time now is 11:15 PM.