0

Why do I need sudo to run apt-mirror? Is there a way to run apt-mirror without sudo?

2
  • Because it is an instruction for administrators and not for a user. We believe in a strict separation of tasks and if it is for admin it requires sudo. Why does it bother you to type 5 extra characters and a password? Regarding your question: see askubuntu.com/questions/192050/… on how to do this.
    – Rinzwind
    Nov 26, 2014 at 16:00
  • What is that apt-mirror does that requires admin rights? I just want to download a copy of the repository to my local PC. Why is that an administrator's task? I understand that installing something from that repository requires sudo, but just making a copy of the files shouldn't require admin.
    – a06e
    Nov 26, 2014 at 16:18

1 Answer 1

1

apt-mirror uses port 21 [courtesy of ProFTPd] (all ports below 1024 require root), and stores information in /etc, /var, or /opt. As none of these locations are user-writable, sudo is required.

You may be able to get away by making apt-mirror store to a place you have write-access to, such as /home/$USER/.local-repo. sudo will still be needed to install programs from your mirror, though.

ProFTPd runs as a daemon, so you won't need to worry about that.

3
  • How did proftpd come in to the picture?
    – muru
    Nov 26, 2014 at 20:05
  • @muru apt-mirror can use ProFTPd to give packages to localhost.
    – Kaz Wolfe
    Nov 26, 2014 at 20:19
  • It can also use apache, nginx, etc. So?
    – muru
    Nov 26, 2014 at 20:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .