helixarch / debtap

A script for converting .deb packages into Arch Linux packages, focused on accuracy
GNU General Public License v2.0
1.35k stars 78 forks source link

error: group 'base' was not found #61

Closed Rickylss closed 3 years ago

Rickylss commented 3 years ago

When I was running debtap -u in my manjaro (pacman version v5.2.2.) , I got some error:

[root@manjaro debtap]# ./debtap -u
==> Synchronizing pkgfile database...
:: Updating 5 repos...
  extra is up to date
  community is up to date
  multilib is up to date
  core is up to date
  download complete: archlinuxcn          [    20.5 MiB   178K/s  0 remaining]
:: download complete in 117.94s           <    20.5 MiB   178K/s  1 file     >
:: waiting for 1 process to finish repacking repos...
==> Synchronizing debtap database...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.1M  100 10.1M    0     0  36447      0  0:04:51  0:04:51 --:--:-- 58064
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  111k  100  111k    0     0  12148      0  0:00:09  0:00:09 --:--:-- 20170
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 62125  100 62125    0     0  78243      0 --:--:-- --:--:-- --:--:-- 78144
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 39.9M  100 39.9M    0     0  99234      0  0:07:02  0:07:02 --:--:-- 36384
==> Downloading latest virtual packages list...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   149    0   149    0     0    221      0 --:--:-- --:--:-- --:--:--   221
100 14118    0 14118    0     0   8170      0 --:--:--  0:00:01 --:--:--   99k
==> Downloading latest AUR packages list...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  418k    0  418k    0     0  15798      0 --:--:--  0:00:27 --:--:-- 16635
==> Generating base group packages list...
error: group 'base' was not found
==> All steps successfully completed!

It seems caused by line 116:

112                    if [[ $(echo $?) != 0 ]]; then
113                        echo -e "${red}Downloading failed. Exiting...${NC}"; exit 1
114                    else    
115                        echo -e "${lightgreen}==>${NC} ${bold}Generating base group packages list...${normal}"
116                        pacman -Qqg base > /var/cache/debtap/base-packages
117                        chmod 644 /var/cache/debtap/*
118                        echo -e "${lightgreen}==>${NC} ${bold}All steps successfully completed!${normal}"; exit 0
119                    fi

And reference to archlinux official news, base group was replaced by metapackage base, thus we can not find group base.

And I workaround by replace line 116:

@@ -113,7 +113,8 @@ elif [[ $update == set ]]; then
                         echo -e "${red}Downloading failed. Exiting...${NC}"; exit 1
                     else    
                         echo -e "${lightgreen}==>${NC} ${bold}Generating base group packages list...${normal}"
-                        pacman -Qqg base > /var/cache/debtap/base-packages
+                        #pacman -Qqg base > /var/cache/debtap/base-packages
+                        pacman -Qi base | grep Depends | cut -d: -f2
                         chmod 644 /var/cache/debtap/*
                         echo -e "${lightgreen}==>${NC} ${bold}All steps successfully completed!${normal}"; exit 0
                     fi

I don't know if you guys have the same problem, and maybe it not work for you, so i put it in issues but not PR.

helixarch commented 3 years ago

Fixed in 3.4, closing...