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.
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..
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
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
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
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.
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
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]
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
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
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.
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<
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.. :/
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
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.