You are not logged in.

#1 2016-02-06 02:00:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Many warnings printed by pacman due to bleachbit removes [SOLVED]

I use bleachbit to remove unneeded locales.  I noticed that pacman gives a number of warnings related to what I believe to be missing files (again, bleachbit).  Is there a switch or config setting to suppress these?

Example updating chromium:

(1/1) checking keys in keyring                                               [############################################] 100%
(1/1) checking package integrity                                             [############################################] 100%
(1/1) loading package files                                                  [############################################] 100%
(1/1) checking for file conflicts                                            [############################################] 100%
(1/1) checking available disk space                                          [############################################] 100%
warning: could not get file information for usr/lib/chromium/locales/ar.pak
warning: could not get file information for usr/lib/chromium/locales/bg.pak
warning: could not get file information for usr/lib/chromium/locales/bn.pak
warning: could not get file information for usr/lib/chromium/locales/ca.pak
warning: could not get file information for usr/lib/chromium/locales/cs.pak
warning: could not get file information for usr/lib/chromium/locales/da.pak
warning: could not get file information for usr/lib/chromium/locales/de.pak
warning: could not get file information for usr/lib/chromium/locales/el.pak
warning: could not get file information for usr/lib/chromium/locales/es.pak
warning: could not get file information for usr/lib/chromium/locales/et.pak
warning: could not get file information for usr/lib/chromium/locales/fa.pak
warning: could not get file information for usr/lib/chromium/locales/fi.pak
warning: could not get file information for usr/lib/chromium/locales/fr.pak
warning: could not get file information for usr/lib/chromium/locales/he.pak
warning: could not get file information for usr/lib/chromium/locales/hi.pak
warning: could not get file information for usr/lib/chromium/locales/hr.pak
warning: could not get file information for usr/lib/chromium/locales/hu.pak
warning: could not get file information for usr/lib/chromium/locales/id.pak
warning: could not get file information for usr/lib/chromium/locales/it.pak
warning: could not get file information for usr/lib/chromium/locales/ja.pak
warning: could not get file information for usr/lib/chromium/locales/ko.pak
warning: could not get file information for usr/lib/chromium/locales/lt.pak
warning: could not get file information for usr/lib/chromium/locales/mr.pak
warning: could not get file information for usr/lib/chromium/locales/ms.pak
warning: could not get file information for usr/lib/chromium/locales/nb.pak
warning: could not get file information for usr/lib/chromium/locales/nl.pak
warning: could not get file information for usr/lib/chromium/locales/pl.pak
warning: could not get file information for usr/lib/chromium/locales/pt-BR.pak
warning: could not get file information for usr/lib/chromium/locales/pt-PT.pak
warning: could not get file information for usr/lib/chromium/locales/ro.pak
warning: could not get file information for usr/lib/chromium/locales/ru.pak
warning: could not get file information for usr/lib/chromium/locales/sk.pak
warning: could not get file information for usr/lib/chromium/locales/sl.pak
warning: could not get file information for usr/lib/chromium/locales/sr.pak
warning: could not get file information for usr/lib/chromium/locales/sv.pak
warning: could not get file information for usr/lib/chromium/locales/tr.pak
warning: could not get file information for usr/lib/chromium/locales/uk.pak
warning: could not get file information for usr/lib/chromium/locales/vi.pak
warning: could not get file information for usr/lib/chromium/locales/zh-CN.pak
warning: could not get file information for usr/lib/chromium/locales/zh-TW.pak

Last edited by graysky (2016-02-06 11:44:03)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2016-02-06 02:19:17

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

It would be unwieldy for so many files, but maybe if you put them in NoExtract they wouldn't be processed? You could test with just one for starters at least.

That said, beyond being unwieldy to configure, I wonder if NoExtract is really designed to handle a large number of entries.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2016-02-06 02:21:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

I was also going to recommend NoExtract rather than whatever bleachbit is.  I don't see why it would be unwieldy:

NoExtract = usr/lib/chromium/locales/*.pak

Although those errors seem to be indicative of a different (perhaps db related) issue.  You should be able to delete files that were installed via pacman just fine - when the package is reinstalled/upgraded those files would just be replaced (unless this is a new warning with pacman 5).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2016-02-06 02:28:46

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Thanks, I didn't realize NoExtract could handle globs. OTOH I expect he doesn't want to prevent all of them from being installed. hmm

The errors seem to occur around the point pacman would otherwise display ":: Processing package changes...". This seems new to me, but I can't say I pay that much attention unless it appears something went wrong...

Last edited by alphaniner (2016-02-06 02:29:52)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2016-02-06 02:49:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

NoExtract = usr/lib/chromium/locales/*.pak !usr/lib/chromium/locales/en.pak 

Offline

#6 2016-02-06 05:29:07

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Placing the locales in NoExtract wouldn't be feasible because bleachbit and localepurge clean all the unnecessary locales installed by different packages on your system. You will have to add a NoExtract line for each of those packages.

Edit: I can confirm the same with libreoffice-still.

Last edited by x33a (2016-02-06 05:34:02)

Offline

#7 2016-02-06 06:51:39

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

The other option is to turn off CheckSpace...

Offline

#8 2016-02-06 08:35:00

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Thanks! Commenting CheckSpace fixes the problem smile

Offline

#9 2016-02-06 11:43:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Allan wrote:

The other option is to turn off CheckSpace...

That was the problem. Thanks, Allan!

To others regarding the NoExtract option: I could do that but I would need to know in advance of all the packages I have installed, which need entries like that.  In contrast to adding a '#' in front of CheckSpace... wink

Last edited by graysky (2016-02-06 11:45:06)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2016-02-06 11:46:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Trilby wrote:

I was also going to recommend NoExtract rather than whatever bleachbit is.

https://www.archlinux.org/packages/comm … /bleachbit


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#11 2016-02-06 13:22:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

x33a wrote:

Placing the locales in NoExtract wouldn't be feasible because bleachbit and localepurge clean all the unnecessary locales installed by different packages on your system. You will have to add a NoExtract line for each of those packages.

Not necessarily.  Globing magic can help.  I have excess locale-specific stuff blocked on my other computer.  I will not have access to that system until Monday so I don't know what my exact entries are, but you have have multiple glob-segments (probably not the right word) for something like "/usr/lib/*/locales/* !/usr/lib/locales/en*"

Not that I just completely made that one up - I don't know how well it would work of if it would block desired files, but the point is that a small handful of well-written lines can do this quite well.  There is no black magic in bleachbit either - it just has to find a pattern to match files against for deletion.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2016-02-06 13:31:34

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Trilby wrote:
x33a wrote:

Placing the locales in NoExtract wouldn't be feasible because bleachbit and localepurge clean all the unnecessary locales installed by different packages on your system. You will have to add a NoExtract line for each of those packages.

Not necessarily.  Globing magic can help.  I have excess locale-specific stuff blocked on my other computer.  I will not have access to that system until Monday so I don't know what my exact entries are, but you have have multiple glob-segments (probably not the right word) for something like "/usr/lib/*/locales/* !/usr/lib/locales/en*"

Not that I just completely made that one up - I don't know how well it would work of if it would block desired files, but the point is that a small handful of well-written lines can do this quite well.  There is no black magic in bleachbit either - it just has to find a pattern to match files against for deletion.

True, but we need to know beforehand where all those files are stored. The globs will work fine for most cases, but not all. For example, I got this error with libreoffice-still.

warning: could not get file information for usr/lib/libreoffice/share/autocorr/acor_af-ZA.dat

This file was cleared by bleachbit.

Offline

#13 2016-02-06 14:04:40

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

There is some good advice on the wiki regarding the NoExtract (too lazy to look it up but from my /etc/pacman.conf):

# useless non-English manpages
NoExtract   = usr/share/locale/* !usr/share/locale/en* !usr/share/locale/locale.alias
NoExtract   = usr/share/help/* !usr/share/help/en*
NoExtract   = usr/share/man/* !usr/share/man/man*
NoExtract   = usr/share/vim/vim74/lang/* usr/share/licenses*

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#14 2016-02-07 01:00:52

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

I use bleachbit myself, but mostly just to find new NoExtract rules.

I see no point in installing those files only to immediately remove them again. And it saves me from having to remember to run bleachbit after every pacman -Syu (although I guess with hooks now you can do that too).

Last edited by eschwartz (2016-02-07 01:01:20)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#15 2016-02-17 09:26:14

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

graysky wrote:

There is some good advice on the wiki regarding the NoExtract (too lazy to look it up but from my /etc/pacman.conf):

# useless non-English manpages
NoExtract   = usr/share/locale/* !usr/share/locale/en* !usr/share/locale/locale.alias
NoExtract   = usr/share/help/* !usr/share/help/en*
NoExtract   = usr/share/man/* !usr/share/man/man*
NoExtract   = usr/share/vim/vim74/lang/* usr/share/licenses*

I was getting an error with glibc

Generating locales...
  en_GB.UTF-8...locale alias file `/usr/share/locale/locale.alias' not found: No such file or directory

So I had to add '!usr/share/locale/locale.alias'

NoExtract = usr/share/help/* !usr/share/help/en*
NoExtract = usr/share/locale/* !usr/share/locale/en* !usr/share/locale/locale.alias
NoExtract = usr/share/man/* !usr/share/man/man*
NoExtract = usr/lib/chromium/locales/*.pak !usr/lib/chromium/locales/en.pak

Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#16 2016-02-17 14:18:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Right, that's already in the post you quoted.

Offline

#17 2016-02-17 15:00:18

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Scimmia wrote:

Right, that's already in the post you quoted.

Thanks, so it is *smacks face*

Wherever I copied it from didn't have that part, I should be more observant!


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#18 2016-02-18 00:00:01

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

My fault.

I added the original Wiki entry, but forgot to add that exception. Fixed.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#19 2016-02-18 10:39:19

fabertawe
Member
From: Lloegr
Registered: 2009-11-24
Posts: 279

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Eschwartz wrote:

My fault.

I added the original Wiki entry, but forgot to add that exception. Fixed.

No problem and thanks.

You said earlier you use bleachbit to find new rules, would you mind posting any you've discovered you think might be of interest?


Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64

Offline

#20 2016-02-18 16:16:15

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

usr/share/qt4/translations/*
usr/share/i18n/locales/*
usr/share/X11/locale/*


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#21 2016-02-18 19:44:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Eschwartz wrote:

usr/share/qt4/translations/*
usr/share/i18n/locales/*
usr/share/X11/locale/*

Guessing you want to keep one particular one though....

NoExtract   = usr/share/i18n/locales/* !usr/share/i18n/locales/en_US

Last edited by graysky (2016-02-18 19:44:17)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#22 2016-02-18 19:46:30

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Many warnings printed by pacman due to bleachbit removes [SOLVED]

Yes, as usual make an exception for your chosen locale.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB