launchpad(三)ubuntu拉取launchpad.net的deb文件

方法一:

在这里插入图片描述
复制图中的的镜像源信息到/etc/apt/sources.list中,然后更新以下,就可以拉取了,命令如下:

sudo apt update
sudo apt install hello

方法二:

1.下载图片中框框内的所有文件(deb文件不需要)到一个目录下
在这里插入图片描述
2.使用命令解压可以获得全部源代码,可以用源代码编译或者上传。

jian@ubuntu:~/jian$  ls
hello_1.0-1.debian.tar.xz  hello_1.0-1.dsc  hello_1.0.orig.tar.xz 
jian@ubuntu:~/jian$ dpkg-source -x hello_1.0-1.dsc 
gpgv: Signature made Thu 13 May 2021 04:34:42 PM CST using RSA key ID 287B8C6B
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./hello_1.0-1.dsc
dpkg-source: info: extracting hello in hello-1.0
dpkg-source: info: unpacking hello_1.0.orig.tar.xz
dpkg-source: info: unpacking hello_1.0-1.debian.tar.xz

> jian@ubuntu:~/jian$ ls hello-1.0  hello_1.0-1.debian.tar.xz 
> hello_1.0-1.dsc  hello_1.0.orig.tar.xz

3.进入hello-1.0目录中,然后修改其中debian目录下的changelog文件,具体参考

jian@ubuntu:~/jian$ cd hello-1.0
jian@ubuntu:~/jian/hello-1.0$ vi debian/changelog

4.修改源代码

5.commit代码生成patch

jian@ubuntu:~/jian/hello-1.0$ dpkg-source --commit

6.debuild

jian@ubuntu:~/jian/hello-1.0$ debuild -S -sa -nc

7.把代码推上自己的ppa中

dput devppa:liruijian/kylinos-desktop/test <source.changes>

编译内核的命令

dpkg-buildpackage -us -uc -b -d
要找到 `box-for-phytium_0.1_arm64.deb` 这个软件包的下载地址,可以按照以下方法进行操作: ### 通过 Debian 官方源查找 如果该软件包存在于官方 Debian 存储库中,则可以通过访问 [Debian Package Search](https://packages.debian.org/) 页面来查询。在此页面上输入软件包名称 `box-for-phytium` 并指定架构为 `arm64`,即可查看是否有对应的版本以及其下载链接。 对于特定存储库配置的情况,例如 ROS 的 Ubuntu 配置命令[^1],这表明某些自定义软件可能托管于第方仓库而非标准 DebianLaunchpad 地址。因此需要确认目标软件是否遵循类似的分发模式。 ### 使用 Launchpad 查询 Launchpad 是 Canonical 提供的一个平台,用于管理许多基于 Ubuntu 和其他 Linux 发行版的相关项目及其构建产物。假如此 `.deb` 文件是由某个团队维护并通过 PPA (Personal Package Archive) 方式发布的话,在 [Launchpad PPAs](https://launchpad.net/ubuntu/+ppas) 中搜索可能会有所收获。 另外还有一种可能性就是直接利用开发者或者社区分享出来的二进制文件链接;比如引用中的另一个例子展示了如何远程并运行脚本来安装工具[^2]。不过这种方法通常不推荐因为缺乏透明度和安全性保障。 综上所述,建议先尝试上述两种正规渠道定位到确切位置后再决定采何种方式获所需 deb 包。 ```bash # 如果知道具体PPA路径可手动添加如下所示: sudo add-apt-repository ppa:<your/ppa/path> sudo apt update && sudo apt install box-for-phytium=0.1 ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小坚学Linux

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值