Bug 28714

Summary: mgaapplet-update-checker crashed
Product: Mageia Reporter: Luciano Roberto Rampazzo <lrampazzo>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: Normal CC: davidwhodgins
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: mgaonline-3.31-1.mga8 CVE:
Status comment:

Description Luciano Roberto Rampazzo 2021-04-04 13:41:01 CEST
The "mgaapplet-update-checker" program crashed. Drakbug-18.45 caught it.

After a problem with kernel update, i thought the problem could be synch with mirrors, so I removed some files:

	[root@localhost urpmi]# rm -rf .metalink mirrors.cache partial/
	[root@localhost urpmi]#

	[root@localhost urpmi]# ls -al 
	total 24
	drwxr-xr-x  4 root root  4096 abr  4 08:24 ./
	drwxr-xr-x 15 root root  4096 mar  6 18:50 ../
	drwxr-xr-x  2 root root  4096 fev 17 07:46 headers/
	drwxr-xr-x  2 root root 12288 abr  3 23:59 rpms/
	[root@localhost urpmi]#

After that, I close the updtater window and then after about 2 - 3 seconds, this error occurred.

I will create this directory by hand, expecting fix the situation.


mkdir /var/cache/urpmi/partial: Permission denied at /usr/share/perl5/vendor_perl/urpm.pm line 307.
Perl's trace:
drakbug::bug_handler() called from /usr/share/perl5/Carp.pm:291
Carp::croak() called from /usr/share/perl5/File/Path.pm:239
File::Path::_mkpath() called from /usr/share/perl5/File/Path.pm:173
File::Path::mkpath() called from /usr/share/perl5/vendor_perl/urpm.pm:307
urpm::create_var_lib_rpm() called from /usr/share/perl5/vendor_perl/urpm.pm:294
urpm::set_files() called from /usr/share/perl5/vendor_perl/urpm.pm:152
urpm::new() called from /usr/share/perl5/vendor_perl/Rpmdrake/open_db.pm:80
Rpmdrake::open_db::fast_open_urpmi_db() called from /usr/bin/mgaapplet-update-checker:40

Theme name: Adwaita
Kernel version = 5.10.25-desktop-1.mga8
Distribution=Mageia release 8 (Official) for x86_64
CPU=Intel(R) Core(TM) i3 CPU       M 350  @ 2.27GHz
Comment 1 Dave Hodgins 2021-04-04 23:31:25 CEST
Suggestion to try and fix this. As root
# cd /var/cache/urpmi/
# touch .metalink
# mkdir partial
# urpmi.update e

I don't know if this will work or not.

In future, to remove suspected corrupted rpm packages from the cache
use "urpmi --clean".

CC: (none) => davidwhodgins

Comment 2 Luciano Roberto Rampazzo 2021-04-05 06:01:50 CEST
Thanks for your reply.

When I saw your suggestion I already had created the directory. Then, I used "urpmi --clean" as suggested and after that, the updates were sucessfull installed.

Although the error message seems to show a privilege problem in pearl script,

    "mkdir /var/cache/urpmi/partial: Permission denied at /usr/share/perl5/vendor_perl/urpm.pm line 307."

I think this issue can be closed, since it happened as a consequence of my erroneous action in filesystem.

Best regards,
LRampazzo
Comment 3 Dave Hodgins 2021-04-05 19:24:28 CEST
Thanks for the update. Closing as invalid since it doesn't appear to be a bug
in a Mageia package.

Status: NEW => RESOLVED
Resolution: (none) => INVALID