apt

Obscuring network proxy password in plain text files on Linux/UNIX-likes

Typically in a large network a computer needs to operate behind an authenticated proxy - any connections to the outside world require a username/password which is often the password a user uses to log into email, workstation etc. This means having to put the network password in the apt.conf file as well as typically the http_proxy, ftp_...

Is it possible to simulate installation of Debian packages, still marking them installed?

Here's what I would like. Start with a virtual sytem with no installed packages. Then I invoke a tool similar to apt-get to ask it to compute the dependencies and mark all the packages that would be installed as installed. Let this be clear: it says the packages are installed, but they are no files actually installed. Then if I ask for ...

Comparative advantages of xdoc and apt formats

What are the relative merits of the xdoc and apt formats for writing websites of Maven projects? Is one more expressive than the other? Has one got better tool support than the other? ...

Clone Debian/Ubuntu installation

Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found nothing. ...

How do I preserve installed applications when migrating Ubuntu to another platform?

I'm looking at maybe moving from an older AMD64 to a new Intel dual-core which is 32 bit. Installation isn't a problem but can I transfer all the installed apps? I haven't been able to find anything so far on Google except where the migration is to a similar platform and file-system. I won't change the filesystem but the platform will be...

How to use libapt (or libept) in debian-like system to list packages and get their infos?

Somebody used libapt or libept to list packages and get informations about package in a debian-like system? Libapt is not well-documented at all, and i've found few examples and tutorials about libept. Can someone explain me best methods to get a list of every packages in the apt-system get informations about single packages (like na...

How to get file list from a Debian package using eptlib libraries?

Simple question: I have loaded an Apt package record with libept. There is a method to get file list? It should sound like record.GetFileList(); and it should return a vector string like the output of dpkg -L packagename ...

Debian: How can I pull a single package with dependencies from another repository?

I am on debian etch and I want to pull subversion1.5.1 from testing though it is a production machine. I need to keep the risk minimal. Any hints? ...

Machine regularly segfaults

When I use apt-get to install or upgrade my Ubuntu hardy system, I often get messages like this: $ sudo apt-get install foo Reading package lists... Done Segmentation faulty tree... 50% $ sudo apt-get install foo Reading package lists... Done Building dependency tree Reading state information... Done Segmentation fault $ sudo a...

The drawbacks of annotation processing in Java?

I am considering starting a project which is used to generate code in Java using annotations (I won't get into specifics, as it's not really relevant). I am wondering about the validity and usefulness of the project, and something that has struck me is the dependence on the Annontation Processor Tool (apt). What I'd like to know, as I ...

How can I automate dpkg/apt-get?

I'm trying to create a script that automatically downloads packages for new servers. However, some things like 'mysql-server' can not installed automatically cause you need to configure them in the ncurses interface first. I've looked through the man pages and can't find anything appropriate. I don't care if I have to upload/edit a con...

Apt-Pinning: Installing libboost from Jaunty repository into Intrepid Ubuntu

I'm trying to install libboost 1.38 in Ubuntu 8.10 using a Ubuntu 9.04 repository since it isn't avalable in any of the 8.10 repositories. I'm trying to use an Apt-pinning by adding the following lines of code: /etc/apt/sources.list: deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe /etc/apt/preferences (Which I had to create):...

How to use the APT tool to create exercises in course material

I'm in the process of creating exercises in how to write a plug-in to a system integration tool. We will have the correct answers implemented for demonstration after exercises, but the students will receive source where some methods are empty and just have a comment with a TODO in them describing what they should do. To avoid duplicati...

apt like column output - python library

Debian's apt tool outputs results in uniform width columns. For instance, try running "aptitude search svn" .. and all names appear in the first column of the same width. Now if you resize the terminal, the column width is adjusted accordingly. Is there a Python library that enables one to do this? Note that the library has to be aware...

Eclipse APT slows compiling

I'm currently writing an Eclipse APT plug-in to check if my annotations are correct. But it appears that enabling APT causes my compile process to slow down. Even saving a tiny, unreferenced class takes a few seconds and eats a lot of memory. I think the reason is that the APT framework checks a full tree of objects (large project), ev...

Couldn't find package libapache2-mod-wsgi

Hello, I have developed a website in Django, and now it must go into production. This i want to do with mod_wsgi and apache2. Unfortunately i get the error 'Couldn't find package libapache2-mod-wsgi' when running the next command: sudo apt-get install libapache2-mod-wsgi I am using apache2 on ubuntu server kermic(9.10). I will enter...

apt warning: no annotation processor found

I am just teaching myself about web services right now and trying to run a helloWorld. I think that to setup all of the web service stuff I need to run apt. I am running it like this: apt HelloImpl.java -classpath /<path>/jsr181-api.jar But I am getting a warning (see below). Do I need to specify an annotation processor too? I t...

Java Web service using Apt. Do I need an annotation processor? What is wrong?

I have been trying to make a simple web service and have been following this tutorial . Unfortunately I am stuck. Here is what I have done so far: 1) I created this class: package server; import javax.jws.WebService; @WebService public class HelloImpl { /** * @param name * @return Say hello to the person. */ public S...

Placeholder substitution in a Maven APT page

I am working on Maven site documentation for some related projects, and I want to create a hyperlink from one site's documentation to another sites documentation. The wrinkle is that the URL for the link target depends on a Maven property. I tried this: {{{http://example.com/site/project-${some-prop}/some.html}the documentation}} bu...

APT ANT task fails in eclipse but works from shell

I have a ant javac task which is supposed to run some annotation processor. It works fine when run from a batch file, but fails with Error running javac.exe compiler when started from eclipse. Normal compiling javac tasks work just fine. I guess ant started from eclipse uses some different compiler? How do I change it to the normal c...