0

I have two Ubuntu servers:

What I'm struggling is about apt-get command. The apt-get command on the Ubuntu on the pine64 doesn't find a lot of packages which I can find on another Ubuntu. So, I'm considering to copy all of repositories on one and add them to another.

I'm a beginner in Linux, therefore I wonder whether this way is good or not, and why each OS contains different repository sources.

Is there any possibility that this way may cause problem? Is this recommended or non-recommended way?

  • Not so sure but copying is ok but I think it will not go so well without the keys in the /etc/apt/trusted.gpg.d for some of the repos – George Udosen Mar 31 '17 at 13:51
2

No, you shouldn't.

In this case, you are comparing machines with two different architectures. I suppose your Ubuntu server is an Intel- or AMD-based 64 bits computer, whereas your Pine64 runs on a different processor architecture. Packages from one architecture will simply not work on another, and may mess up your OS.

I suppose not all packages that are available on common Intel-based 32- or 64-bit systems are available on the single-board Pine64. That is because they need to be ported (i.e. recompiled and linked) to that platform. It won't work to download the Intel-based and see if they run on the Pine64.

To see if a package is actually available, it is enough to try and sudo apt install it. If it can't be found, or apt runs into dependency problems, then it isn't available through the official repositories. You may still be able to download a .deb from somewhere, and some packages are architecture-independent (they may be plain-text Python programs, for instance). However, that will be different from one package to another.

  • My server is on an Intel 64-bit processor and my pine64 is on an ARM 64-bit processor. So, they are different architectures. Is there any way to install some missing packages on pine64? – Taiki Bessho Mar 31 '17 at 14:13
  • I added something about that in my answer. – Jos Mar 31 '17 at 15:11
  • What about to build from source codes? – Taiki Bessho Mar 31 '17 at 15:50
  • Building packages from source codes is of course possible, but it would be the same as porting the package; if it was easy, it would have been done already. If you can get it to work, you would be doing the Pine64 community (assuming there is one) a favour by publishing your package. – Jos Mar 31 '17 at 15:54

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.