View previous topic :: View next topic |
Author |
Message |
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Sat Nov 28, 2025 9:12 pm Post subject: Ubuntu: Install packages to ~/.bin |
|
|
I am looking for a way to how to set up apt so that I can install as a regular user packages to my home directory.
Basically i need a few packages installed that the admin would rather not install so i'm looking on how to setup apt to install these packages to my local home directory where i actually have write permissions.
unfortunately while i know it is possible my google-fu is lacking today as I cannot find out *how* to do it.
Could one assist with the google-fu and guide me to the correct guide?
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
platinummonkey Advanced Member

Joined: 01 Mar 2025 Posts: 732 Location: Texas
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Sat Nov 28, 2025 10:26 pm Post subject: |
|
|
Well that works? but now i get presented with this:
Code: | plibby@batman ~ $ touch ~/.var/lib/dpkg/lock
plibby@batman ~ $ apt-get -c .apt.conf install vnc
E: Could not open lock file ~/.var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (~/.var/lib/dpkg/), are you root? |
and of course the reason i'm doing this is because i can't be root....so...???
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
platinummonkey Advanced Member

Joined: 01 Mar 2025 Posts: 732 Location: Texas
|
Posted: Sun Nov 29, 2025 2:35 am Post subject: |
|
|
im almost positive apt wont recognize ~ in its configuration. use the full pathname.
_________________ desktop - FreeBSD 7.2
laptop & server - Archlinux i686 kernel26 2.6.32.10-1
- TAMULinux-2.0.2-ALPHA
USB Boot - Archlinux i686 kernel26 2.6.32.10-1 USB boot
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Sun Nov 29, 2025 4:45 am Post subject: |
|
|
that would make sense......
Ok. making progress now.
Code: | plibby@batman ~ $ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
E: Unable to lock the list directory
|
okay.... man pages.... tell me where to override that setting..... It's gotta be in one of them!
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
platinummonkey Advanced Member

Joined: 01 Mar 2025 Posts: 732 Location: Texas
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Mon Nov 30, 2025 1:34 am Post subject: |
|
|
I'd rather avoid having the chroot... if at all possible. I'll use my desktop for the project if i have to.
I must be doing something wrong here... i get through the permissions denied piece and end up with this:
Code: | plibby@batman ~ $ apt-get update -c .apt.conf
Reading package lists... Done
plibby@batman ~ $ apt-get -c .apt.conf install vnc
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package vnc
plibby@batman ~ $ ls /home/students/plibby/.var/lib/apt/lists
lock partial
plibby@batman ~ $ |
hmm.... missing repos maybe?
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Mon Nov 30, 2025 3:09 am Post subject: |
|
|
yep. sources.list in ~/.etc/apt
okay.... i think i have everything now...
let's see if it works!
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Mon Nov 30, 2025 3:13 am Post subject: |
|
|
It does.... but it also doesn't recognize any of the already installed packages...
i just want to install suplimentary packages, not another version of ubuntu....
hmm.... there should still be some way to do this....
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
platinummonkey Advanced Member

Joined: 01 Mar 2025 Posts: 732 Location: Texas
|
|
Back to top |
|
Lord.DragonFly.of.Dawn Advanced Member

Joined: 18 Jul 2025 Posts: 607 Location: South Portland, Maine, USA, Earth, Sol System
|
Posted: Tue Dec 01, 2025 4:26 am Post subject: |
|
|
ignore...... ugh.... i could...
will probably have to.....
grrr.........
_________________ ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)
PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
|
|
Back to top |
|
|