Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when checking for updates on Ubuntu 20.04 #819

Closed
mcl21014 opened this issue Mar 23, 2020 · 7 comments
Closed

Error when checking for updates on Ubuntu 20.04 #819

mcl21014 opened this issue Mar 23, 2020 · 7 comments
Assignees
Labels
Milestone

Comments

@mcl21014
Copy link

BB Version: 3.9.0 beta
OS Version: Linux, Ubuntu 20.04 dev branch amd64

Good news is that it runs on 20.04. Bad news is the output before I do anything with the application is there's red text in the output window reading:
"Error when checking for updates:
Traceback (most recent call last):
File "/usr/share/bleachbit/GUI.py", line 1160, in check_online_updates
updates = Update.check_updates(options.get('check_beta'),
File "/usr/share/bleachbit/Update.py", line 155, in check_updates
opener.addheaders = [('User-Agent', user_agent())]
File "/usr/share/bleachbit/Update.py", line 87, in user_agent
dist = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'
"
Might be related, but check for updates is toggled on. Not the beta switch, though. Only happens when the "Check for updates via the internet" option is on. Can reproduce on my system.

@az0 az0 added the bug label Mar 24, 2020
@az0 az0 added this to the 4.0 milestone Mar 24, 2020
@az0
Copy link
Member

az0 commented Mar 24, 2020

Good report. Thanks

@mkhon
Copy link
Collaborator

mkhon commented Mar 28, 2020

Fixed in #826

@az0
Copy link
Member

az0 commented Mar 28, 2020

@mcl21014

Are you able to test Max's fix by running from source?

The commands are

git clone https://github.com/bleachbit/bleachbit.git
cd bleachbit
python3 bleachbit.py

@mcl21014
Copy link
Author

@az0 I tested it after cloning and it's no longer an issue.

@az0
Copy link
Member

az0 commented Mar 29, 2020

@az0 I tested it after cloning and it's no longer an issue.

Thank you for testing. Now, I will close the ticket

@az0 az0 closed this as completed Mar 29, 2020
@NeillRu
Copy link

NeillRu commented Jul 17, 2020

git clone https://github.com/bleachbit/bleachbit.git
cd bleachbit
python3 bleachbit.py

I confirm that this works on Linux Mint 20 but the menu item still points at the old package and hence the errors remain. Need best practise to ensure the correct package is installed.Simply copying the new file does not do it program starts then aborts...

@az0
Copy link
Member

az0 commented Aug 7, 2020

I confirm that this works on Linux Mint 20 but the menu item still points at the old package and hence the errors remain. Need best practise to ensure the correct package is installed.Simply copying the new file does not do it program starts then aborts...

Yes, this doesn't update the system copy of BleachBit, and the shortcuts (application launcher) will point to the system copy.

As a temporary workaround, navigate to the Git copy and updated files like this

sudo cp bleachbit/{Update,Diagnostic,_init_,_platform}.py /usr/share/bleachbit/

A cleaner solution is to wait until the beta or final release with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants