helixarch / debtap

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

it doesn't work, when i use " debtap -u " #66

Open HUANMVP opened 3 years ago

HUANMVP commented 3 years ago

image

helixarch commented 3 years ago

Working perfectly fine here on two machines:

debtap -u ==> Synchronizing pkgfile database... :: Updating 5 repos... download complete: archlinuxfr [ 184.0 KiB 492K/s 4 remaining] download complete: multilib [ 217.9 KiB 236K/s 3 remaining] download complete: core [ 896.5 KiB 567K/s 2 remaining] download complete: extra [ 9.3 MiB 2.13M/s 1 remaining] download complete: community [ 22.4 MiB 1572K/s 0 remaining] :: download complete in 14.62s < 33.0 MiB 2.26M/s 5 files > :: 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.2M 100 10.2M 0 0 3854k 0 0:00:02 0:00:02 --:--:-- 3853k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 98k 100 98k 0 0 415k 0 --:--:-- --:--:-- --:--:-- 415k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 62450 100 62450 0 0 264k 0 --:--:-- --:--:-- --:--:-- 262k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 39.9M 100 39.9M 0 0 4379k 0 0:00:09 0:00:09 --:--:-- 4386k ==> Downloading latest virtual packages list... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 149 100 149 0 0 454 0 --:--:-- --:--:-- --:--:-- 454 100 14118 0 14118 0 0 18430 0 --:--:-- --:--:-- --:--:-- 18430 ==> Downloading latest AUR packages list... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 432k 0 432k 0 0 708k 0 --:--:-- --:--:-- --:--:-- 708k ==> Generating base group packages list... ==> All steps successfully completed!

chenshaolang commented 3 years ago

I have the same problem, but I don't know how to solve it? image

chenshaolang commented 3 years ago

I found that this seems to be due to the fact that I'm using ZSH instead of BASH, and when I use BASH it seems to work fine.

helixarch commented 3 years ago

Maybe due to "bashisms"

Barry1915 commented 3 years ago

I have the same problem, somebody can help me

HUANMVP commented 3 years ago

校园网吗?可以试试手机流量。或者像他们一样试一试bash和zsh。我是校园网的问题。我是arch+kde,代理是qv2ray。

Barry1915 commented 3 years ago

校园网吗?可以试试手机流量。或者像他们一样试一试bash和zsh。我是校园网的问题。我是arch+kde,代理是qv2ray。

不是校园网,我实在zsh里面更新的

HUANMVP commented 3 years ago

抱歉,我没遇到过。你的终端显示的是什么原因?

Barry1915 commented 3 years ago

抱歉,我没遇到过。你的终端显示的是什么原因?

我的问题现在解决了,sudo debtap -u速度特别慢,网上说换源,你知道debtap怎么换源吗

HUANMVP commented 3 years ago

不好意思,我不知道。你可以参考下这个人的博客

Barry1915 commented 3 years ago

不好意思,我不知道。你可以参考下这个人的博客

好的谢谢

reneraab commented 3 years ago

I have the same issue. It seems that debtap is not able to identify the current Ubuntu version (line 85; https://github.com/helixarch/debtap/blob/02d3b9f8fd9fb50e6af44dee80e13eb95000f1a9/debtap#L85). The command returns nothing on my system.

zhou0712 commented 3 years ago

抱歉,我没遇到过。你的终端显示的是什么原因?

我的问题现在解决了

我也遇到同样的问题,请问你是怎么解决的

HUANMVP commented 3 years ago

抱歉,我没遇到过。你的终端显示的是什么原因?

我的问题现在解决了

我也遇到同样的问题,请问你是怎么解决的

我是网络问题,可以试试终端使用代理。希望能帮到你

1819011603 commented 3 years ago

The command returns nothing on my system.

yes,i have the same issue ubuntu_latest_stable_version=curl -s https://packages.ubuntu.com | grep option | gawk -F '=' '{print $2}' | gawk '{print $1}' | grep -v option | tac | sed -n 3'{p;q;}' | sed s'/\("\|-updated\|-backports\)//g' return null

1819011603 commented 3 years ago

i solve my problem, 看看我这篇博客: https://blog.csdn.net/m0_37651658/article/details/120947992

1819011603 commented 3 years ago

I have the same issue. It seems that debtap is not able to identify the current Ubuntu version (line 85;

https://github.com/helixarch/debtap/blob/02d3b9f8fd9fb50e6af44dee80e13eb95000f1a9/debtap#L85

). The command returns nothing on my system.

modify 85 line ubuntu_latest_stable_version = "implish" is ok

zhiwayzhang commented 2 years ago

I solved this problem by a very foolish way. first modify the debtap script use sudo

sudo vim /usr/bin/debtap

then comment or remove these lines from script. they will check the computer env and download the correct file.

if [[ $_arch == amd64 ]]; then
                curl -C - -f http://archive.ubuntu.com/ubuntu/dists/$ubuntu_latest_stable_version/Contents-$_arch.gz > /var/cache/debtap/ubuntu-packages-files.gz
else
                curl -C - -f http://ports.ubuntu.com/ubuntu-ports/dists/$ubuntu_latest_stable_version/Contents-$_arch.gz > /var/cache/debtap/ubuntu-packages-files.gz
fi

And then download the Contents-$_arch.gz manually from this website. For my arch linux, i download the Contents-amd64.gz After that, move the gz file to /var/cache/debtap/ directory and rename this file to ubuntu-packages-files.gz. u can use mv command or rename command. then retry sudo debtap -u. I get finally

.....
==> Generating base group packages list...
==> All steps successfully completed!
givver commented 1 year ago

debtap -u works when using bash, but not when using zsh. My solution was to do the following: sudo bash debtap -u