Error: too many environment variables: >= MAX_ENVS (256)

When I try to run bleachbit in terminal, it does not run and I get:

$ bleachbit
Error: too many environment variables: >= MAX_ENVS (256)

I also get the same error when I try to install an AUR package.

What is going on?

1 Like

That means you have too many environment variables defined. You can check how many you have with:

env | wc -l

You can also see them with plain

env

They usually are defined in you shell’s .rc -files. Check them if necessary

4 Likes

Yes, I added a lot of variables to my .bashrc file, too many. I commented out a bunch of them.

Thank you

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.