-1

Sorry I'm quite new to this OS, and I tried to install some software on school linux machine.

After I downloaded the .deb file, and tried to do sudo dpkg -i pageckName.db, it returns MyUsername is not in the sudoers file. This incident will be reported.

So I tried the dpkg -i pageckName.db, it returns dpkg:error: requested operation requires superuser privilege.

Also, the dpkg -i pageckName.db --force-not-root --root=$HOME fails me on the same reason...Any ideas?

// Ubuntu 16.04.1 LTS

Thank you so much!

witchy
  • 11

1 Answers1

-1

It depends what you mean by "install". It is possible to extract the file contents of a .deb file using dpkg-deb -x , but whether you can actually use the software after extracting it locally depends on how it is written.

A lot of Linux software will be expecting to find its resource files in standard locations specified at compile-time, such as /usr/sAhare or /usr/lib, which will fail if the software is not installed in the usual location.

Also any system-wide configuration files installed by the package, such as .desktop files that create entries in the start menu, will not function as intended if installed in the wrong location.

Another solution is to chroot yourself in your home directory as explained here : https://serverfault.com/questions/23734/is-there-any-way-to-get-apt-to-install-packages-to-my-home-directory

For simple applications those two methods can work

systho
  • 919