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 09-26-2011, 12:15 AM   #1
Nekosama
LQ Newbie
 
Registered: Sep 2011
Posts: 14

Rep: Reputation: Disabled
Syanptic manager/Update Help


Okay so here it goes. I am running on Ubuntu lucid lynx 10.04. I am new to this.

I wanted to update to 10.10 and then
I wanted to install a tablet.
The Genius MousePen 8x6 - Which I know there Is a guide for.


When I go to the Synaptics Manager I get This
E: The package ttf-lyx needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.


One problem. When I go to upgrade in the update manager I get this.

Unable to get exclusive lock

This usually means that another package management application (like apt-get or aptitude) already running. Please close that application first

Also I have gotten this when continueing A partial upgrade

Remove package in bad state

The package 'ttf-lyx' is in an inconsistent state and needs to be reinstalled, but no archive can be found for it. Do you want to remove this package now to continue?


It keeps on telling me I need to Reinstall ttf-lyx as well..
 
Old 09-26-2011, 12:27 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
can you open a terminal and type
Code:
sudo aptitude remove ttf-lyx
Your system is obviously unhappy with the state of that package. Best to remove it. You can reinstall it if need be when thing are purring along again.
ciao,
jdk
 
Old 09-26-2011, 12:36 AM   #3
Nekosama
LQ Newbie
 
Registered: Sep 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
can you open a terminal and type
Code:
sudo aptitude remove ttf-lyx
Your system is obviously unhappy with the state of that package. Best to remove it. You can reinstall it if need be when thing are purring along again.
ciao,
jdk
How Do I reinstall it?

Code:
neko@ubuntu:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
neko@ubuntu:~$ sudo aptitude remove ttf-lyx
[sudo] password for neko: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Writing extended state information... Done
The following packages will be REMOVED:
  ttf-lyx 
0 packages upgraded, 0 newly installed, 1 to remove and 1225 not upgraded.
Need to get 0B of archives. After unpacking 365kB will be freed.
Writing extended state information... Done
dpkg: error processing ttf-lyx (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done

neko@ubuntu:~$
This is what I got.. And it still has the same error message when trying to get into the synaptics.
Thanks for replying! <3
 
Old 09-26-2011, 05:25 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
To use package managers for installing, removing, updating and upgrading you must be root or use sudo. I think for ubuntu they want you to use sudo. To reinstall a package you type this at a terminal window:
Code:
sudo aptitude reinstall ttf-lyx
.
Hopefully your package manager will be happy now.
ciao,
jdk
 
1 members found this post helpful.
Old 09-26-2011, 10:15 AM   #5
Nekosama
LQ Newbie
 
Registered: Sep 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
I Tried reinstalling the ttf-lyx with the code you gave me and this came back.


Code:
neko@ubuntu:~$ sudo aptitude reinstall ttf-lyx
[sudo] password for neko: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
The following packages will be REINSTALLED:
  ttf-lyx 
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1225 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
E: I wasn't able to locate file for the ttf-lyx package. This might mean you need to manually fix this package.
Writing extended state information... Done
E: I wasn't able to locate file for the ttf-lyx package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download
neko@ubuntu:~$

E: I wasn't able to locate file for the ttf-lyx package. This might mean you need to manually fix this package.
Writing extended state information... Done

How does one manually fix the package?

E: I wasn't able to locate file for the ttf-lyx package. This might mean you need to manually fix this package.
 
Old 09-26-2011, 10:27 AM   #6
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Try downloading and installing directly from the repos
here is the link
http://packages.ubuntu.com/lucid/all/ttf-lyx/download
Choose the appropriate mirror for your location on that page. Your probably don't have gdebi installed as it is no longer installed by default on Ubuntu. so open the file with Software Center. Let us know if that succeeds or fails
 
1 members found this post helpful.
Old 09-26-2011, 10:54 AM   #7
Nekosama
LQ Newbie
 
Registered: Sep 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by qlue View Post
Try downloading and installing directly from the repos
here is the link
http://packages.ubuntu.com/lucid/all/ttf-lyx/download
Choose the appropriate mirror for your location on that page. Your probably don't have gdebi installed as it is no longer installed by default on Ubuntu. so open the file with Software Center. Let us know if that succeeds or fails

Ok So I am super new. I downloaded the package I do have the Gdebi
but. when I download the package this appears.


Quote:
Could not Open /home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb

The package might be corrupted or you are not allowed to open the file check the permissions of the file.

But I have the file downloaded and extracted. How do I install it manually using the software center? [have never before]

thanks so much for your support.
 
Old 09-26-2011, 11:04 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Nekosama View Post
Ok So I am super new. I downloaded the package I do have the Gdebi
but. when I download the package this appears.





But I have the file downloaded and extracted. How do I install it manually using the software center? [have never before]

thanks so much for your support.
You need to issue the following command:
Code:
sudo dpkg -i /home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb
Do not do anything to the .deb file. Do not extract it or anything else. Just download the deb and run the above command.
ciao,
jdk
 
1 members found this post helpful.
Old 09-26-2011, 11:38 AM   #9
Nekosama
LQ Newbie
 
Registered: Sep 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
You need to issue the following command:
Code:
sudo dpkg -i /home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb
Do not do anything to the .deb file. Do not extract it or anything else. Just download the deb and run the above command.
ciao,
jdk

I typed in the command and this was the output.
Code:
neko@ubuntu:~$ sudo dpkg -i /home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb
(Reading database ... 241481 files and directories currently installed.)
Preparing to replace ttf-lyx 2.0.0-1~getdeb11 (using .../ttf-lyx_1.6.5-1ubuntu1_all.deb) ...
Unpacking replacement ttf-lyx ...
/var/lib/dpkg/info/ttf-lyx.postrm: 6: dpkg-maintscript-helper: not found
dpkg: warning: old post-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
dpkg: error processing /home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb (--install):
 there is no script in the new version of the package - giving up
/var/lib/dpkg/info/ttf-lyx.preinst: 8: dpkg-maintscript-helper: not found
Processing triggers for fontconfig ...
Errors were encountered while processing:
 /home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb
neko@ubuntu:~$
Quote:
Errors were encountered while processing:
/home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb
it is sitting in my downloads untouched though.
 
Old 09-26-2011, 01:20 PM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Nekosama View Post
neko@ubuntu:~$ sudo dpkg -i /home/neko/Downloads/ttf-lyx_1.6.5-1ubuntu1_all.deb
(Reading database ... 241481 files and directories currently installed.)
Preparing to replace ttf-lyx 2.0.0-1~getdeb11 (using .../ttf-lyx_1.6.5-1ubuntu1_all.deb) ...
Unpacking replacement ttf-lyx ...
Ok now you've lost me completely. You are replacing version 2.0.0-1 with and earlier version, 1.6.5?!? I thought you said that you wanted to update ubuntu 10.10.
Why are you downgrading packages. That will get you into a world of pain. Why aren't you installing the 2.0.0-1 version?
jdk
 
Old 09-26-2011, 02:16 PM   #11
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
So, what version of Ubuntu did you upgrade to?
It looks like you jumped all the way to Natty or Oneiric! (probably Oneiric)
Type the following in a terminal and post the results here.
Code:
lsb_release -a
 
Old 09-26-2011, 02:30 PM   #12
Nekosama
LQ Newbie
 
Registered: Sep 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by qlue View Post
So, what version of Ubuntu did you upgrade to?
It looks like you jumped all the way to Natty or Oneiric! (probably Oneiric)
Type the following in a terminal and post the results here.
Code:
lsb_release -a
I havent upgraded that's one of my problems it wont let me upgrade. >W<


Code:
neko@ubuntu:~$ lsb_release -a
LSB Version:	core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.3 LTS
Release:	10.04
Codename:	lucid
neko@ubuntu:~$
is the output.

Quote:
Originally Posted by jdkaye View Post
Ok now you've lost me completely. You are replacing version 2.0.0-1 with and earlier version, 1.6.5?!? I thought you said that you wanted to update ubuntu 10.10.
Why are you downgrading packages. That will get you into a world of pain. Why aren't you installing the 2.0.0-1 version?
jdk
I do want to upgrade. I downloaded this font from the post above. I really am new. So far all I know is the main problem is the missin ttf-lyx.
Is there a page to install newer ttf-lyx?

My errors above in first post are what occur when I try to upgrade.

I think if I just download and reinstall the right ttf-lyx the problems will go away. May be wrong.. :/

Last edited by Nekosama; 09-26-2011 at 02:58 PM.
 
Old 09-26-2011, 03:13 PM   #13
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Yes, I understand what you're saying. The thing is problems don't go away, they just get worse until you fix them. Do you know what the correct version is? You understand that version 2.0.0-1 is newer than version 1.6.5, right? So If you replace 2.0.0-1 with 1.6.5 you are not upgrading the ttf-lyx but downgrading it. Somehow your system believes that the (broken) version of ttf-lyx is 2.0.0-1. The deb file you use should be the 2.0.0-1 version and not 1.6.5 version. To be sure of this try the command
Code:
aptitude show ttf-lyx
and it will tell you what version it believes is installed. You don't need to use sudo with the "show" command for aptitude. I am also worried about the state of your /etc/apt/sources.list file. What were the steps you took to upgrade your system from 10.04 to 10.10?
ciao,
jdk
 
Old 09-26-2011, 03:32 PM   #14
Nekosama
LQ Newbie
 
Registered: Sep 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
Yes, I understand what you're saying. The thing is problems don't go away, they just get worse until you fix them. Do you know what the correct version is? You understand that version 2.0.0-1 is newer than version 1.6.5, right? So If you replace 2.0.0-1 with 1.6.5 you are not upgrading the ttf-lyx but downgrading it. Somehow your system believes that the (broken) version of ttf-lyx is 2.0.0-1. The deb file you use should be the 2.0.0-1 version and not 1.6.5 version. To be sure of this try the command
Code:
aptitude show ttf-lyx
and it will tell you what version it believes is installed. You don't need to use sudo with the "show" command for aptitude. I am also worried about the state of your /etc/apt/sources.list file. What were the steps you took to upgrade your system from 10.04 to 10.10?
ciao,
jdk
I have yet to upgrade it I am still running Ubuntu 10.04
I went to the update manager. and clicked on the upgrade beside "New Ubuntu 10.10 Release is available" It started upgrading then quit saying I needed the fonts.

and this is what I got back from the command you gave me:

Code:
neko@ubuntu:~$ aptitude show ttf-lyx
Segmentation fault
neko@ubuntu:~$

So sorry for all the confusion, Thank you SO Much for helping me <3
 
Old 09-26-2011, 03:36 PM   #15
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by jdkaye View Post
Somehow your system believes that the (broken) version of ttf-lyx is 2.0.0-1. The deb file you use should be the 2.0.0-1 version and not 1.6.5 version.
That's got me confused because the 2.0.0-1 version first appears in Natty. Even Maverick still uses the 1.6.5 version so where did this 2.0.0-1 version come from if he's still using Lucid?
 
  


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] Debian update manager states updates available but won't update EDDY1 Debian 15 07-01-2011 12:07 AM
Update Manager -132 Days Since Update ...Fresh Install jv2112 Linux - Newbie 3 10-25-2010 05:02 AM
[SOLVED] Difference Between Synaptic Package Manager and Update Manager nasser019 Linux - Software 1 07-20-2010 08:12 AM
[SOLVED] Opensuse update manager does not update lpallard SUSE / openSUSE 7 01-04-2009 07:28 PM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 04:58 PM


All times are GMT -5. The time now is 06:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration