Public bug reported: When I was clearing up unpurged packages, grub-pc was not being purged because of an error "basename: missing operand". Looked at the code and "ucf --purge /etc/default/grub" was bailing out at line 472, which has the code: old_mdsum_file="$source_dir/$(basename ${new_file}).md5sum"; Looking at ${new_file} at the code above, sure enough, it wasn't being initialized at purge (line numbers 349 - 374). So I changed the else to test if $new_file was there and I was able to purge grub-pc.
ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: ucf 3.0032 [modified: usr/bin/ucf] ProcVersionSignature: Ubuntu 4.3.0-6.17-generic 4.3.3 Uname: Linux 4.3.0-6-generic x86_64 ApportVersion: 2.19.3-0ubuntu3 Architecture: amd64 CurrentDesktop: Unity Date: Mon Jan 25 21:08:03 2016 EcryptfsInUse: Yes InstallationDate: Installed on 2015-09-28 (118 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422) PackageArchitecture: all SourcePackage: ucf UpgradeStatus: Upgraded to xenial on 2016-01-06 (18 days ago) ** Affects: ucf (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug package-from-proposed xenial ** Patch added: "ucf_make-purge-grub-pc-work.diff" https://bugs.launchpad.net/bugs/1537753/+attachment/4556235/+files/ucf_make-purge-grub-pc-work.diff -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ucf in Ubuntu. https://bugs.launchpad.net/bugs/1537753 Title: ucf --purge reaches code where basename doesn't have a parameter Status in ucf package in Ubuntu: New Bug description: When I was clearing up unpurged packages, grub-pc was not being purged because of an error "basename: missing operand". Looked at the code and "ucf --purge /etc/default/grub" was bailing out at line 472, which has the code: old_mdsum_file="$source_dir/$(basename ${new_file}).md5sum"; Looking at ${new_file} at the code above, sure enough, it wasn't being initialized at purge (line numbers 349 - 374). So I changed the else to test if $new_file was there and I was able to purge grub-pc. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: ucf 3.0032 [modified: usr/bin/ucf] ProcVersionSignature: Ubuntu 4.3.0-6.17-generic 4.3.3 Uname: Linux 4.3.0-6-generic x86_64 ApportVersion: 2.19.3-0ubuntu3 Architecture: amd64 CurrentDesktop: Unity Date: Mon Jan 25 21:08:03 2016 EcryptfsInUse: Yes InstallationDate: Installed on 2015-09-28 (118 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422) PackageArchitecture: all SourcePackage: ucf UpgradeStatus: Upgraded to xenial on 2016-01-06 (18 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ucf/+bug/1537753/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp