T
T
tayanov2015-10-01 17:29:36
Debian
tayanov, 2015-10-01 17:29:36

How to reinstall a package from scratch in Debian?

I deleted the /etc/cups folder.
I know that it was impossible to do this, I already stepped on a similar rake BUT.
It all started with problems with displaying webUI cups.
there was a feeling that css did not work.
Attempts to reinstall cups did not translate into a solution.
apt-get purge cups left /etc/cups
after which I sinned and finished off /etc/cups
apt-get install cups created /etc/cups with some files but no configs.
I tried a lot of things, and so I tried
dpkg --force-all --remove cups && aptitude install cups
the same parsley with the /usr/share/cups/doc-root directory
After reinstalling doc-root is not there.
Other than reinstalling debian there are suggestions.
Yes, I don't have backups. Home server.
It costs Debian 8 (for some reason, webmin thinks that 9)
Cups was recently updated, after which the webmord disappeared.
And then there was the above...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Melkij, 2015-10-01
@tayanov

The contents of the package suggests that the cups package does not contain a doc-root: https://packages.debian.org/jessie/all/cups/filelist
But there is one here: https://packages.debian.org/jessie/all/cups -server...
/etc is also scattered over several packages.
In general, you removed only the head, it is clear that this head, when growing back, did not climb into other areas, but only installed itself.
Do apt-get autoremove --purge

E
EvgeniyKonstantinov, 2015-10-01
@EvgeniyKonstantinov

how about dpkg-reconfigure ?

G
Gregory, 2015-10-01
@grigruss

https://wiki.debian.org/en/SystemPrinting
https://wiki.archlinux.org/index.php/CUPS_(%D0%A0%...
I have a Deb8 machine at hand, I can help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question