Tag Info

Hot answers tagged

108

$ man apt-get | grep reinsta -A2 --reinstall Re-Install packages that are already installed and at the newest version. Configuration Item: APT::Get::ReInstall. So, to use it to reinstall aptitude use: sudo apt-get install --reinstall aptitude


65

Since Lenny is EOLed lenny security updates have been terminated on February 6th lenny backports have been dicontinued on March 25th lenny volatile has been discontinued with the release of its successor "squeeze" the repositories have been moved to archive.debian.org - you may wish to update your repositories to match this: deb ...


48

You can reinstall a package with sudo apt-get install --reinstall packagename. This completely removes the package (but not the packages that depend on it), then reinstalls the package. This can be convenient when the package has many reverse dependencies.


6

You should be safe to remove aptitude and reinstall, as that won't affect the other apt utilities. So: apt-get remove aptitude followed by apt-get install aptitude, or if that still fails try apt-get purge aptitude followed by apt-get install aptitude. Before doing either of the above, I recommend a full file-system and bad-block check in case there is a ...


5

All a default Debian install needs for updates is DNS traffic for name->address lookups (though you can remove this requirement by having the relevant names in your /etc/hosts file) and HTTP traffic to the servers listed in your sources.list file.


5

Every container in an OpenVZ host has a unique Container ID, also known as its VEID. From within a container, you should be able to read its VEID like this: awk '{print $1}' /proc/vz/veinfo This ID should be constant for a given container, since it is associated with the container's .conf file that configures it for OpenVZ.


4

These are the files and snippets of files that I have found to be of interest for this problem. Note that I am running Ubuntu 10.04 You might be able to figure out what the problem is from my configuration files. Otherwise, maybe consider posting your corresponding configuration. last part of ~/.bashrc # enable programmable completion features (you don't ...


4

Sometimes you need to restore config files too! not just reinstall. sudo apt-get install --reinstall xxxx Reinstall the application, keeps the config files. This could be helpful, but sometimes you need to start fresh, so what I use is this: sudo dpkg -r xxxx //to remove that xxxx package sudo dpkg -P xxxx //to purge all related files then ...


3

Just about all apt-get sources use http, check your /etc/apt/sources.list. You can also check the ruleset of iptables or ipchains to see if there is a rule that affects apt-gets usage.


2

aptitude update aptitude upgrade


2

You can use tools like UNetbootin, usb-creator etc to do it. Or you could manually do it : Copy/Extract files from the ISO to the root dir of your USB Drive Set the boot flag for your usb ddevice(use gparted or cfdisk) run : syslinux -sm /dev/your_usb_dev Create syslinux.cfg file in usb root dir with content : include isolinux/isolinux.cfg


2

I believe dd would also be a viable option: dd if=________.iso of=/dev/sd_ Where 'if' is your input file and 'of' is your output file (ie device).


2

Well, if it was my system I'd start it up without the graphical interface (or ssh into it from a working system) and use that to poke around. I see from the specs that your monitor wants to be at 1920 by 1080 and based on its low price I'm guessing that it's not very tolerant of other resolutions. You're going to have to get X windows to use that specific ...


2

According to linuxwireless.org the in-kernel Ralink drivers do support AP mode on the older chipsets, both PCI and USB. If you're still using Debian Lenny, you will have an older version of the drivers which might be affected by bugs or other limitations. As Lenny is currently the oldstable, I would recommend upgrading to the current stable distribution aka ...


2

Not all TrueType fonts are Microsoft fonts. The only Microsoft font package is ttf-mscorefonts-installer. I suggest installing other TrueType fonts. This will install all of them, except ttf-mscorefonts-installer (note the grep -v mscorefonts): apt-cache search ttf | awk '/^ttf/ {print $1}' | grep -v mscorefonts | xargs apt-get install Those other ...


2

No matter what image you use, at some point of the installation (if you provide a large enough image or an internet connection) you'll be prompted for a software selection, just uncheck Desktop environment.


2

This is a bug that has been fixed in dpkg 1.10.21 (i.e. instead of dying with a fatal error a warning is emitted, since this configuration file is optional). If you can't fix the permission error, upgrading dpkg should mitigate the issue. Since you'll need to run dpkg to upgrade itself you might need to unmount the nfs home for that.


1

Non root users cannot listen (or even open) ports below 1024. To restrict users to other single ports above 1024, you can use the --uid-owner option of iptables. See "man iptables". If you dont want to mess with iptables yourself (but still have a decent knowledge of networking/firewalling), my personal favourite firewalling solution is firehol. It has ...


1

Either local::lib or Perlbrew (or both) should be able to simplify things for you. Even more importantly, don't use CPAN to install modules; use cpanm. My preference is simply to use Perlbrew to install non-system Perl interpreters in my $HOME directory. After that, each interpreter is self-contained and cpanm takes care of modules. Honestly, I never need ...


1

You may be missing other development packages as well, but at a bare minimum you need to install the build-essential package and its dependencies. sudo aptitude install build-essential Depending on what you're trying to build, you may need other development libraries, headers, and so forth. For example, your project's readme.txt clearly lists libxml2-dev ...


1

How about going the other route and installing VMWare's ESXi?


1

Did you try something like mail -s "My subject" myemail@gmail.com < msgfile Is your plan to send and receive mails or only send? Only sending should be easy to set, configuring to receive the mails for mydomainhere.com not. Do you have a fixed IP-address? Are you aware that if your mail server is down (software error, hardware failure, no network ...


1

It sounds like your monitor is configured incorrectly, and the computer is defaulting to an unsupported resolution. If you can get into a text console, edit the Xorg configuration file at /etc/X11/xorg.conf The xorg.conf file should contain a section something like this: Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ...


1

Ok, managed to sort this. With ~dotdeb.0 version, the dependencies were on the older versions of other packages, therefore most of the stuff installed fine. I had to uninstall php5-mhash package as it's no longer supported starting with 5.3 - and I had to install libsqlite0 and libsqlite3 to get php to play nice with sqlite databases. And that's all it was ...


1

I think you want to gpg --keyserver subkeys.pgp.net --recv-keys DFD993306D849617 to avoid the "NO_PUBKEY" error.


1

The other answers didn't work for me - this worked: mv /etc/apt/sources.list /etc/apt/sources.list.PREARCHIVE From http://forums.debian.net/viewtopic.php?f=10&t=95658, make new /etc/apt/sources.list with # SOURCE: http://superuser.com/questions/404806/did-debian-lenny-repositories-vanish deb http://archive.debian.org/debian/ lenny main non-free ...


1

My first idea would be that you can use the IP or MAC address of each VM to differentiate them and pass that value to your scripts.


1

As root, just: cat the_ubuntu.iso > /dev/sdX then sync … and voilà.


1

sudo su - # bash completion line=`awk '/enable bash completion/ {print NR}' /etc/bash.bashrc` sed -i.backup "$((line+1)),$((line+3))s/^#//g" /etc/bash.bashrc # bash completion fork: http://code.google.com/p/bash-completion-lib/ apt-get install -y bash-completion-lib


1

Here you can find some information about Email Services. It is from the Ubuntu server guide, but maybe this can help you.



Only top voted, non community-wiki answers of a minimum length are eligible