Problem installing lyx - held broken pacagkes error
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem installing lyx - held broken pacagkes error
I am trying to install lyx on Linux Mint 17.2
Code:
sudo apt-get install lyx
gave the following output:
Code:
The following packages have unmet dependencies:
lyx : Depends: lyx-common (= 2.0.8.1-0ubuntu1) but it is not going to be installed
Recommends: texlive-latex-recommended but it is not installable
Recommends: texlive-latex-extra but it is not installable
Recommends: texlive-science but it is not installable
Recommends: texlive-generic-recommended but it is not installable
Recommends: texlive-generic-extra but it is not installable
Recommends: texlive-fonts-recommended but it is not installable
Recommends: preview-latex-style but it is not installable
Recommends: dvipng but it is not installable
Recommends: imagemagick but it is not installable
Recommends: psutils but it is not installable
Recommends: elyxer but it is not installable or
tex4ht but it is not installable or
hevea but it is not installable or
tth but it is not installable or
latex2html but it is not installable
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
E: Unable to correct problems, you have held broken packages.
Running apt-get update did not change anything. Using the advice found here I tried looking for help broken packages using:
Code:
dpkg --get-selections|grep hold
The output was empty. Using the Fix Broken Packages option from the Synaptic Package Manager gave the following error:
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I suspect maybe the problem may have to do with some the repertoires not being defined correctly, since I get the following error when doing apt-get update:
Code:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'universe/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
the output of
Code:
cat /etc/apt/sources.list
is:
Code:
deb http://archive.ubuntu.com/ubuntu trusty main universe restricted multiverse
the output of cat
Code:
/etc/apt/sources.list.d/*
is:
Code:
# deb http://archive.getdeb.net/ubuntu trusty-getdeb apps
deb http://mirror6.layerjet.com/linuxmint/packages rafaela main upstream import
deb http://extra.linuxmint.com rafaela main
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
However, this did not solve the problem as I still get the following error:
Code:
W: Failed to fetch http://packages.linuxmint.com/dists/rafaela/main/binary-i386/Packages Hash Sum mismatch
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'universe/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Using the Fix Broken Packages option from the Synaptic Package Manager gave the following error:
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I suspect maybe the problem may have to do with some the repertoires not being defined correctly, since I get the following error when doing apt-get update
Hi...
Welcome to the forum
According to this thread, this problem is caused by one or more broken packages. Please see the first solution listed under "2 answers."
You might want to check with the folks over at the Linux Mint forum as to why the two APT lines you mentioned aren't working...
Code:
W: Failed to fetch http://packages.linuxmint.com/dists/rafaela/main/binary-i386/Packages Hash Sum mismatch
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'universe/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
If need be, these entries can be repaired, replaced or deleted by using the following command...
Code:
gksudo gedit /etc/apt/sources.list
Just make sure you have gedit installed first.
Regards...
Last edited by ardvark71; 11-11-2015 at 09:27 AM.
Reason: Correction.
please sir/madam I was trying to shutdown the machine but it failed so what are the commands of shutdown the machine?
Hi...
Please create a new thread of your own if you need help with issues you are having. Simply go to the appropriate forum ("Newbie" as an example) and click on the button that says "New Thread" at the upper left hand corner of the page.
@ardvark71: Thank you. I tried following the instructions at the thred you linked to,"
namely:
"
Open the /var/log/dist-upgrade/apt.log log file in a text editor.
Locate any "broken" packages and remove them with sudo apt-get remove <package>.
"
However, I do not have a dist-upgrade subdirectory, or and subdir with a similar name inside /var/log.
Is there any other way I can locate broken packages?
@ardvark71: Thank you very much for your efforts. Unfortunately the problem presists.
However since I suspect it has to do with the apt-get update problem,
I will take your advice and visit the Linux Mint oracle.
@ardvark71: Thank you very much for your efforts. Unfortunately the problem presists.
However since I suspect it has to do with the apt-get update problem,
I will take your advice and visit the Linux Mint oracle.
Hi...
I'm sorry it didn't help. However, although I could be wrong, I think these are still two different issues. As another option, you can see if "aptitude" and "gtkorphan" can help. Please see here. Otherwise, at this point, I'm not sure what to suggest short of a reinstall.
Regards...
Last edited by ardvark71; 11-14-2015 at 09:16 AM.
Reason: Added information.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.