Collecting thoughts, giving them meaning and having fun while at it

Ετικέτα: Operating system (Σελίδα 1 από 5)

What to do when the GETDEB repository is down

Logo Linux Mint

Logo Linux Mint (Photo credit: Wikipedia)

If during an update in either Linux Mint or Ubuntu you get error messages from apt, about failing to fetch data from the GETDEB repository (which happens a lot, I’m afraid), here’s a brilliant solution I found at askubuntu.com. Use a mirror!

Here are the steps:

  1. Comment out your existing sources for GETDEB
  2. Add the following sources instead:

deb http://mirrors.dotsrc.org/getdeb/ubuntu quantal-getdeb apps
deb-src http://mirrors.dotsrc.org/getdeb/ubuntu quantal-getdeb apps

Replace “quantal” with your edition if necessary; also, you can add the games repo just by repeating the above two lines with “games” in the end instead of “apps”.

  1. Import the mirror’s security key:

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com A8A515F046D7E7CF

  1. Refresh your sources and you’re done:

sudo apt-get update

(Quick Tips) gdebi: “The package may be corrupted”

I recently fresh installed Linux Mint 12 (Lisa), which is based on Ubuntu 11.10 (Oneiric). I almost immediately bumped into a problem with gdebi, the graphical package installer. The message I received was:

"Could not open XXXX.deb.
The package might be corrupted or you are not allowed to open the file.
Check the permissions of the file."

After a lot of searching, I found this solution in linuxmint forums. Works like a charm:

[code]sudo apt-get install xz-lzma[/code]

Enhanced by Zemanta

Setting up Debian for Android Development

After almost 9 months of beating around the bush, I finally started experimenting with developing Android Apps. I’m using Linux Mint Debian (based on Debian Testing), so after some googling, I used this excellent guide over at howtoforge.com:

Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Debian Squeeze)

Of course, I used the latest available version of every software mentioned (binary packages, not .deb as they were somewhat outdated in Testing). The only things I changed during the process of setting up was to edit nss.cfg so that I would not get the “nss initialization” error message on my 64-bit system:

[code]sudo gedit /etc/java-6-openjdk/security/nss.cfg[/code]

and changed its content into the following (thanks to java.io.FileNotFoundException: /usr/lib/libnss3.so error on Debian Wheezy):

[code]name = NSS
nssLibraryDirectory = /usr/lib/x86_64-linux-gnu
nssDbMode = noDb
attributes = compatibility[/code]

I left may main user as owner of /etc/eclipse and I made sure that I used the right java, by:

[code]sudo update-alternatives –config javac

sudo update-alternatives –config java[/code]

That’s all!

Enhanced by Zemanta
« Παλαιότερα άρθρα

© 2024 Stratos' Sphere

Θέμα εμφάνισης από τον Anders NorenΠάνω ↑