UBports Robot Logo UBports Forum
    • 版块
    • 最新
    • 标签
    • 热门
    • 用户
    • 群组
    • 搜索
    • 注册
    • 登录

    Not enough free space in /var/cache/apt/archives

    已定时 已固定 已锁定 已移动 Support
    20 帖子 11 发布者 10.9k 浏览 3 关注中
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • AkitoA 离线
      Akito
      最后由 编辑

      Any solution to this? I don't want to use this workaround because I want to use the system as natively as possible. Ideally, I would prefer to not have unnecessary /dev/loop partitions in the first place.

      1 条回复 最后回复 回复 引用 0
      • pparentP 离线
        pparent
        最后由 编辑

        sudo rm -r /var/cache/apt
        sudo tune2fs -m 0 /dev/loop0
        
        dobeyD V 2 条回复 最后回复 回复 引用 0
        • dobeyD 离线
          dobey @pparent
          最后由 编辑

          @pparent This is not a good idea to do.

          However, if one really needs to install debs in rootfs for some reason, such as using ubports-qa to test changes to system components from PRs, one can bind mount a directory in user writable partition on top of /var/cache/apt/archives

          mkdir -p ~/aptcache
          sudo mount --bind /home/phablet/aptcache /var/cache/apt
          

          However, there will still be plenty of other issues if one wants to try to install from apt in rootfs, which is not supported, and it is strongly advised against doing so.

          D 1 条回复 最后回复 回复 引用 1
          • pparentP 离线
            pparent
            最后由 编辑

            @pparent This is not a good idea to do.

            No disrespect, but I think this is why I will choose pureOS in the long run, whenever I receive the phone and it is usable.

            As users I want to be able to do the same things we can do on our computer, and be in control of our device, without being artificially limited, and not being sandboxed into a container. Otherwise I would use Android!

            dobeyD 1 条回复 最后回复 回复 引用 1
            • dobeyD 离线
              dobey @pparent
              最后由 编辑

              @pparent I think you will be somewhat disappointed by that too, because no matter what, the phone is still not a PC.

              There is a huge difference between Android and UT. The way UT works is because it has to run on top of Android kernels, and because it is meant to provide a more secure alternative to Android, that does provide the ability to run legacy linux apps in a container too.

              There are a whole lot of things about traditional PC Linux distros that just do not make sense to keep doing in the modern world, regardless of device. And pureOS isn't going to change that on their phone.

              pparentP 1 条回复 最后回复 回复 引用 3
              • pparentP 离线
                pparent @dobey
                最后由 pparent 编辑

                @dobey

                Actually I got the above problem trying to install a console program (dig) to do some in-field testing. To me all console programs make perfect sense being run on phones as they are on desktop, server, router, super-calculator, robot ... . And they can be used to really control the system.

                On the other hand, on the graphical side, lately purism seems to make a great job adapting gnome apps for phone, so I guess we just have to wait and see.

                dobeyD 1 条回复 最后回复 回复 引用 0
                • dobeyD 离线
                  dobey @pparent
                  最后由 编辑

                  @pparent said in Not enough free space in /var/cache/apt/archives:

                  Actually I got the above problem trying to install a console program (dig) to do some in-field testing. To me all console programs make perfect sense being run on phones as they are on desktop, server, router, super-calculator, robot ... . And they can be used to really control the system.

                  There is nothing preventing you from using CLI tools. Installing apps with legacy insecure packaging, is done in libertine. You can install and run whatever CLI apps you want, in there too.

                  But it doesn't change the facts.

                  pparentP 1 条回复 最后回复 回复 引用 0
                  • pparentP 离线
                    pparent @dobey
                    最后由 pparent 编辑

                    @advocatux said in Not enough free space in /var/cache/apt/archives:

                    @gb making the system rw is not really a good idea for many reasons. If you want to use apt it's better to do it inside a contained environment, like Libertine for example.

                    Yes but I want to be able to use CLI tools on the real system to control the real system, control the machine, not be sandboxed in a container.

                    Can you explain what is insecure about "legacy packaging" (i.e apt ), and why it would be more insecure on the phone than it is on a laptop or a server?

                    advocatuxA dobeyD 2 条回复 最后回复 回复 引用 0
                    • advocatuxA 离线
                      advocatux @pparent
                      最后由 advocatux 编辑

                      I want to be able to use CLI tools on the real system to control the real system, control the machine, not be sandboxed in a container.

                      @pparent there's an official & supported way of doing things but of course you can do whatever you want with your device, you have complete freedom. Just don't expect any help when things go south 😉

                      You can make the root filesystem rw, you can resize partitions, you can use any repo or ppa that you want (as long as the packages are compiled for armhf), etc but you're at your own risk with that.

                      1 条回复 最后回复 回复 引用 0
                      • dobeyD 离线
                        dobey @pparent
                        最后由 编辑

                        @pparent said in Not enough free space in /var/cache/apt/archives:

                        Can you explain what is insecure about "legacy packaging" (i.e apt ), and why it would be more insecure on the phone than it is on a laptop or a server?

                        It is not truly secure on a laptop or server either. It has nothing to do with the device. With dpkg you are giving anyone who creates a package root access to your system, when you install that package.

                        As I've said many times before, phones are not PCs, and UT is not a traditional PC Linux distro. As @advocatux you are of course welcome to do whatever you want to your own device, with UT on it (it's yours, and UT is open source), but UT is not designed or built in this manner, and any changes you make are your own responsibility, and if installing updates break that (they will at some point), you will have deal with it yourself. If what you want is a traditional Linux distro on hardware that looks like a phone, there are other distributions working more towards that goal, such as postmarket OS. However, we are attempting to build a system usable for phones here, which is secure.

                        1 条回复 最后回复 回复 引用 4
                        • D 离线
                          dj @dobey
                          最后由 编辑

                          @dobey : This solution really helped for me to fix this issue

                          R 1 条回复 最后回复 回复 引用 0
                          • R 离线
                            rocky58 @dj
                            最后由 编辑

                            @dj said in Not enough free space in /var/cache/apt/archives:

                            @dobey : This solution really helped for me to fix this issue

                            Please, what solution?

                            AppLeeA 1 条回复 最后回复 回复 引用 0
                            • AppLeeA 离线
                              AppLee @rocky58
                              最后由 编辑

                              Hi @rocky58

                              They were refering to this message:
                              https://forums.ubports.com/topic/1412/not-enough-free-space-in-var-cache-apt-archives/6

                              When you see the "forward arrow" icon with the name of a user, there is a link to the actual message they replied to.

                              Hope it'll help and take note of Dobey's warnings.

                              1 条回复 最后回复 回复 引用 0
                              • V 离线
                                vitalicus @pparent
                                最后由 编辑

                                @gb said in Not enough free space in /var/cache/apt/archives:

                                No solution yet

                                After 3 years, no solution yet?

                                AppLeeA 1 条回复 最后回复 回复 引用 0
                                • AppLeeA 离线
                                  AppLee @vitalicus
                                  最后由 编辑

                                  Hi @vitalicus

                                  You can wait 100 years it will be the same.
                                  We do not support installation via APT or DPKG.

                                  The system is read only by design and the partition size depends on the initial partitions from the manufacturer AFAI K(now) or U(nderstand).

                                  1 条回复 最后回复 回复 引用 1
                                  • B 离线
                                    Ben_Ben
                                    最后由 编辑

                                    @ubtouch 16.04

                                    sudo su root
                                    mount -o remount rw /
                                    cd /userdata

                                    dd bs=1M count=6000 if=/dev/zero of=system2.img
                                    losetup -f --show system2.img
                                    #return loop2
                                    ( loop0----system.img loop2----system2.img )

                                    dd if=/dev/loop0 of=/dev/loop2
                                    resize2fs /dev/loop2
                                    mv system.img system.old
                                    mv system2.img system.img

                                    reboot

                                    #enjoy it

                                    LakotaubpL 1 条回复 最后回复 回复 引用 1
                                    • LakotaubpL 离线
                                      Lakotaubp @Ben_Ben
                                      最后由 编辑

                                      @Ben_Ben Just adding a note that this might result in issues if you are not familiar with doing this, or make a typo. You might end up needing to reflash. Thanks to @arubislander and @moem for mentioning this.

                                      1 条回复 最后回复 回复 引用 1

                                      你好!看起来您对这段对话很感兴趣,但您还没有一个账号。

                                      厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。

                                      有了你的建议,这篇帖子会更精彩哦 💗

                                      注册 登录
                                      • 第一个帖子
                                        最后一个帖子