LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-09-2015, 04:26 AM   #1
Sal.desclot
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Rep: Reputation: Disabled
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
Any ideas how to resolve this?

Thanks in advance
 
Old 11-10-2015, 02:05 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
Welcome to LQ.

The install command is :

sudo apt-get update && sudo apt-get install lyx
 
Old 11-10-2015, 04:25 PM   #3
Sal.desclot
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks knudfl

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.
Any idea what to do about this?
 
Old 11-11-2015, 06:57 AM   #4
RWANDA
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Rep: Reputation: Disabled
what are the commands of listing file in linux
 
Old 11-11-2015, 07:19 AM   #5
Sal.desclot
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
@RWANDA: not very relevant for this thread. But the command is ls. Check out the man page for additonal details.
 
Old 11-11-2015, 09:25 AM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,281
Blog Entries: 4

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by Sal.desclot View Post
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.
 
Old 11-11-2015, 01:17 PM   #7
RWANDA
LQ Newbie
 
Registered: Nov 2015
Posts: 5

Rep: Reputation: Disabled
please sir/madam I was trying to shutdown the machine but it failed so what are the commands of shutdown the machine?
 
Old 11-11-2015, 01:28 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
@RWANDA : You cannot ask off-topic questions in another member`s thread.

You agreed to read the rules when you signed up :
http://www.linuxquestions.org/linux/rules.html
 
Old 11-11-2015, 01:30 PM   #9
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,281
Blog Entries: 4

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by RWANDA View Post
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.

Regards...
 
Old 11-13-2015, 05:53 PM   #10
Sal.desclot
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
@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?


Thanks again
 
Old 11-13-2015, 06:32 PM   #11
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,281
Blog Entries: 4

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by Sal.desclot View Post
Is there any other way I can locate broken packages?
Hi...

Try running these commands one at a time and see if that resolves the issue...

Code:
sudo apt-get clean
Code:
sudo apt-get update
If that doesn't work, you can also try...

Code:
apt-get -f install
And if that should fail, try...

Code:
dpkg --configure -a
Thanks to "convoi" and/or "slm" for the information over at Unix and Linux stackexchange.

Let us know how it goes.

Regards...
 
Old 11-14-2015, 04:41 AM   #12
Sal.desclot
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
@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.

Thanks again
Sal
 
Old 11-14-2015, 09:12 AM   #13
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,281
Blog Entries: 4

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by Sal.desclot View Post
@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.
 
  


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] Unable to correct problems, you have held broken packages steez2002 Linux - Desktop 13 07-15-2016 12:31 PM
You have held broken packages. Seff Linux - Newbie 20 08-15-2015 01:54 PM
[SOLVED] how to kill held broken packages roncat Debian 3 03-26-2015 03:27 AM
[SOLVED] debian held broken package achim_59 Debian 20 05-31-2014 12:15 AM
problem installing Lyx Karin Linux - Newbie 33 10-26-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:25 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