Originally Posted by
newb85
Yeah, that dpkg command won't work without sudo, but I don't think it will do any more than apt-get purge.
Try this:
Code:
sudo apt-get purge texworks
ls /etc/texmf
If it has successfully emptied the /etc/texmf directory (with the exception maybe of fmt.d directory), then I'm stumped. If all the same files are there as before, proceed like this:
Code:
sudo cp -rp /etc/texmf /etc/texmf.old
sudo rm -r /etc/texmf/*
sudo cp -rp /etc/texmf.old/fmt.d /etc/texmf/fmt.d
sudo apt-get install texworks
I think it didn't work:
Code:
sudo apt-get purge texworks
[sudo] password for bekirsalgin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
texworks*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 3,617 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 318908 files and directories currently installed.)
Removing texworks ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Setting up texlive-base (2009-15) ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
Not replacing deleted config file /etc/texmf/dvips/config/config.ps
Not replacing deleted config file /etc/texmf/tex/generic/config/pdftexconfig.tex
Not replacing deleted config file /etc/texmf/dvipdfmx/dvipdfmx.cfg
Not replacing deleted config file /etc/texmf/xdvi/XDvi
dpkg: error processing texlive-base (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of texlive-latex-base:
texlive-latex-base depends on texlive-base (>= 2009-1); however:
Package texlive-base is not configured yet.
dpkg: error processing texlive-latex-base (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
texlive-base
texlive-latex-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
ls /etc/texmf
dvipdfm dvips hyphen.d metafont texdoc texmf.cnf updmap.d xdvi
dvipdfmx fmt.d language.d tex texdoctk texmf.d web2c
Code:
sudo cp -rp /etc/texmf /etc/texmf.old
bekirsalgin@bekirsalgin:~$ sudo rm -r /etc/texmf/*
bekirsalgin@bekirsalgin:~$ sudo cp -rp /etc/texmf.old/fmt.d /etc/texmf/fmt.d
bekirsalgin@bekirsalgin:~$ sudo apt-get install texworks
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
texlive-xetex texworks-scripting-lua texworks-scripting-python
The following NEW packages will be installed:
texworks
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2,360 kB of archives.
After this operation, 3,617 kB of additional disk space will be used.
Selecting previously unselected package texworks.
(Reading database ... 318899 files and directories currently installed.)
Unpacking texworks (from .../texworks_0.5~svn952-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Setting up texlive-base (2009-15) ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/texmf/web2c.
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/texmf/web2c.
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/texmf/web2c.
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/texmf/web2c.
Not replacing deleted config file /etc/texmf/dvips/config/config.ps
Not replacing deleted config file /etc/texmf/tex/generic/config/pdftexconfig.tex
Not replacing deleted config file /etc/texmf/dvipdfmx/dvipdfmx.cfg
Not replacing deleted config file /etc/texmf/xdvi/XDvi
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/share/texmf/web2c:/usr/share/texmf-texlive/web2c:/usr/local/share/texmf/web2c.
dpkg: error processing texlive-base (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of texlive-latex-base:
texlive-latex-base depends on texlive-base (>= 2009-1); however:
Package texlive-base is not configured yet.
dpkg: error processing texlive-latex-base (--configure):
dependency problems - leaving unconfigured
Setting up texworks (0.5~svn952-1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
texlive-base
texlive-latex-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
Bookmarks