Tag Info

New answers tagged

2

You can only install one program at a time. This is because the package manager checks dependencies. Make sure you have sudo permissions also. However you can specify multiple packages on one install line. sudo apt-get install -y emacs git This would install both emacs and git. One after another not at the same time. Maybe useful to link: ...


1

This works for me on a debian system, i'm guessing the file format has changed since 2011 . This system is pretty fresh so i wouldn't expect this to work on an older system, although that might just require unzipping the logs and using a glob to refer to all of them. grep 'install ' /var/log/dpkg.log.1 | cut -f4 -d' ' /var/log/dpkg.log has a date and ...


0

Chances are that your system Python is not the latest in the 2.7 or 3.4 line. So you should consider installing the latest Python from source. This might bring its own problems as have to install first problems for -dev packages that should be installed before you get a useful Python: libreadline-dev, libssl-dev, libbz2-dev, libexpat1-dev, libsqlite3-dev is ...


1

There are alternative repositories from which you can install later versions of tmux, but they are not official. Installing from source is relatively easy: # install any dependency packages needed for building sudo apt-get install -y exuberant-ctags cmake libevent-dev libncurses5-dev # download link from official http://tmux.github.io/ site wget ...


0

You can try sudo apt-get clean to clear your package cache. But what is the behaviour you are seeing? Does it stop at a particular point?


3

It is apt-cache policy PACKAGE between release and architecture.


1

With this pin, a version from unstable will never be installed unless you explicitly request it. For example, if 1.9.2 from unstable is currently installed, and unstable now has 1.9.5, apt-get upgrade will not upgrade the package. If the version in stable changes, it will be installed provided that it's newer than the installed version. If 1.9.5 enters ...


3

apt-get asks for confirmation in essentially two circumstances. when it needs to do more than it has been directly requested to do, to satisfy the request made. E.g. if you asked for a package to be installed or deleted, if it needs to perform actions involving other packages not explicitly mentioned, whether the action is installation or deletion, it ...


1

Every single package in Debian ships at least a symlink in /usr/share/doc, to provide the copyright file which details the package's license. So you'll pretty much need to reinstall everything! A package's files are listed in /var/lib/dpkg/info/package.list (replacing package as appropriate); the following will reinstall affected packages: grep -l ...


2

You can use apt-get --reinstall install … to reinstall all the files in a bunch of packages. To get the list of packages that contain a specific file, use dpkg -S. dpkg -S /usr/share/doc searches for substrings of file names, so it'll find all files whose path contains /usr/share/doc, including a hypothetical /usr/lib/foo/usr/share/doc/, but that doesn't ...


2

This looks like a job for an aptitude search. $ aptitude -F %p search '~Plibncurses-dev' libncurses5-dev libncurses5-dev:i386 $ aptitude -F %p search '~Plibncurses-dev ~rnative' libncurses5-dev $ aptitude -F %p search ...


3

Try apt-get install liblua5.2-0:i386 instead; there is no liblua5.2 package, so apt-get install liblua5.2:i386 is trying to install liblua5.2-dev:i386, liblua5.2-0-dbg:i386 and liblua5.2-0:i386. The -dev package is the one causing the removals. The search extension happens because the package name given contains a .; from apt-get's manual: If no package ...


2

As specified in the comments of your question, you can build a simple text file, called packages.txt, listing the packages to install: iceweasel terminator vim and then run the following command: cat packages.txt | xargs sudo apt-get install xargs is used to pass the package names from the packages.txt file to the command line. From the man page: ...


3

If you want to write a script to check to see if package libncurses-dev or its alias has been installed, consider the following program flow: Check if the package has been installed with dpkg using the exact name, libncurses-dev in this case. If the above does not evaluate to true, then search apt for the package you are looking for using the non-aliased ...


2

Jimminy Cricket, that hint is Old: CHANGELOG: [2002-06-12] * Initial hint. [2003-09-17] * Changed format to fit new guidelines, added disclaimer about dpkg 1.10. Can you reverse everything you did and try the Use dpkg (.deb) package management on LFS 6.3., which is newer (but not by much): CHANGELOG: [2008-11-05] * Initial hint. ...


0

In Debian derivatives the size of each .deb file is stored in the list of packages, so you can retrieve it without downloading anything at all. In fact apt-get --print-uris gives you the information directly: $ apt-get install nginx --print-uris -qq Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done ...


1

It's a bash script rather than python-apt, but I have found dpkg-offline which contains similar logic. I've looked at how it works and have managed to create a script of my own to do the necessary downloading - reproducibly and as an ordinary non-root user: #!/bin/bash set -e die() { exec >&2 printf '%s\n' "$@" exit 1 } test "$UID" != ...


0

I fixed the issue by downgrading the x-server to the one provided in jessie. The following script should do the trick: #!/bin/bash printf "deb http://ftp.de.debian.org/debian/ stable main contrib non-free\ndeb-src http://ftp.de.debian.org/debian/ stable main contrib non-free\n" > /etc/apt/sources.list.d/stable.list printf "Package: xserver-*\nPin: ...


4

The typical way to get the file size without downloading it would be to issue a HTTP HEAD request and hope for the server to send the size back in the Content-Length header. For static files like deb files typically, servers are likely to send back that information though there's no guarantee. There are various tools that can send those HTTP HEAD request. ...


0

Alright. Sigh. Just delete the (probably old) ~/pkg folder and then try to fetch again: go get [antything] After doing that it worked for me.


6

Make sure you accept also connection originated from inside. With iptables: iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT With Webmin, allow Connection states EQUALS Existing Connection


8

apt-get (like all other APT-based software: aptitude, synaptic, etc.) looks for packages in the places mentioned in the file /etc/apt/sources.list. In addition, files in the directory /etc/apt/sources.list.d are used (if their name isn't too “weird”). Edit the file /etc/apt/sources.list to remove or comment out the line refering to the Debian CD. To comment ...


3

debootstrap a clean new system in a directory, do what you need within that directory using chroot, and afterwards take all that you find within chrootdir/var/cache/apt/archives/. Edit after the second answer: I just checked the manual and it appears that one can also use debootstrap to do most if not all of what you want: it can be run under fakeroot, and ...


0

I was getting this error: dpkg: considering deconfiguration of sysvinit-utils, which would be broken by installation of startpar ... dpkg: no, sysvinit-utils is essential, will not deconfigure it in order to enable installation of startpar dpkg: error processing archive /var/cache/apt/archives/startpar_0.59-3_amd64.deb (--unpack): ...


0

When you install two different versions with dpkg or apt-get, it will not break the system, unless you use the -f option to force installation. Instead it will create an additional entry in your package database. When you install the source manually, make sure to link the programs to the library. For instance link apr-1.4.6 symbolically to ...


1

Do I install packages using dpkg, instead of adding Wheezy in my sources? No. Or should I just add wheezy in my sources? No. Either via dpkg, or via apt-get, do I risk breaking "stuff" if I install two different versions of the same library? Yes. I would recommend instead, asking the maintainer of the project to use the most recent ...


0

I had a very similar issue. It seems to come from the use of python3 instead of python2.7 I had /usr/bin/python linked to python3 (I changed the link after installing python3 for greater convenience, it looks like aliasing is a much better idea). Anyway, after unlinking it and relinking it to python2.7 upgrade worked fine.


2

jessie-updates gives early access to stable packages which will eventually be added to Jessie in a point release. A stable release of Debian (such as Debian 8 or 8.1) contains a fixed set of packages and versions. Some of these need updating, within the constraints of Debian's stable release process; once they're approved, such updates go to a ...


1

Before you shut the system down, write down or copy the output of: cat /proc/version You then need to shutdown properly, take that SD card out and run e2fsck on all the ext4 partitions -- I am not sure if OSMC uses more than one, but you can check with fdisk. You can cross your fingers while you are doing this because it is not a guaranteed fix. With ...


1

The current X.Org server provides xorg-video-abi-19, which fglrx 14.12 doesn't support; the ABIs aren't forwards compatible, which is why you can't install the driver from the repositories. I'm guessing fglrx 15.5 supports the new ABI, although I haven't checked; once that's in the archive then you'll be able to install it. (Feel free to file a bug ...


0

Perl module names correspond to a .pm file path out of a necessity -- not any specific rule of the languague, but because that's how perl finds them. This assumption can be used with apt-file search to determine which distro package, if any, contains that file: apt-file search "/Future/Utils.pm" There are a lot of modules with no package, however, and ...


1

On my Debian system running your command gave me this result apt-get install libfuture-utils-perl Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libfuture-utils-perl However, I found the library was available as a package by searching: apt-cache search libfuture libfuture-perl - module ...


6

Well, your distribution has TeX Live packages, so you could use those: sudo apt-get install texlive If you don't want to do that, see https://www.tug.org/texlive/debian.html, specifically the section "Integrating vanilla TeX Live with Debian". The issue is that since you installed TeX Live locally, the Debian package management system doesn't know TeX is ...


0

Your libwbclient0 was installed from backports, you need to re-install samba using apt-get -t wheezy-backports install samba (for the Debian 7 backports).


0

You can get a log in /var/log/apt/history.log*. Logs are rotated regularly, so older logs may not be present anymore. Once these logs are gone, there's nothing similar. If you've had your VPS for a while, you probably won't be able to find out what was there initially. There is little point in uninstalling packages unless you're short of disk space. If ...


0

As mentioned in other posts you have to look in /var/log/apt. To achieve what you want you can try following: >| out.log; for i in $(ls -1rt $(find /var/log/apt -name '*history*')); do if [[ $i =~ \.gz$ ]]; then zgrep "Commandline" $i | awk -F': ' '{ print $2; }' >>out.log; else grep "Commandline" $i | awk -F': ' '{ print $2; }' >>out.log; fi ...


0

One addition to @jcbermu 's solution. You can use zgrep directly on gzip-compressed and uncompressed files, which simplifies the full command, including gunzipping, into one line: zgrep CommandLine /var/log/apt/history.log* | cut -d\ -f 2- history.log* instead of history.log.* is used so the current history.log is also included. To get unique lines, ...


0

Go to /var/log/apt/ There you will find the current log on term.log and history.log as long has .gz. files of the past months. gunzip all the history.log files and then run this line: cat history.log.* | grep Commandline |awk -F":" '{print $2}'> all_apt-get-commands.txt On the file all_apt-get-commands.txt you will find the list of all the commands. ...


1

It required to modify /etc/apt/sources.list adding i386 to downloadable architectures like that: deb [arch=amd64,i386] http://httpredir.debian.org/debian/ jessie main contrib After that you need to make apt-get update dpkg --add-architecture i386 apt-get update and to install package for i386 architecture: apt-get install ...


0

Using curl: sudo curl https://yt-dl.org/downloads/2015.06.04.1/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+x /usr/local/bin/youtube-dl or using wget: sudo wget https://yt-dl.org/downloads/2015.06.04.1/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+x /usr/local/bin/youtube-dl or using pip (if you haven't installed pip, run sudo apt-get ...


2

You will need to install pip before you can use it to install youtube-dl. First install pip: sudo apt-get install python-pip Then install youtube-dl: sudo pip install youtube-dl


0

That probably is an issue to do with the ISA proxy setup in your organization. I had the same issue when configuring a virtual server for my organization. Open the terminal. In the terminal type in the following command: sudo nano /etc/apt/apt.conf This command is meant to open up the apt.conf file and make it available for configuration. If you are ...


0

Mediatomb wasn't included in Jessie because it suffers from a huge security bug which wasn't fixed in time for the release (and still isn't, see the bug report for details). If you really want to install it, you could add unstable to your sources with the appropriate pinning (if that doesn't mean anything to you then you probably shouldn't), or you can ...



Top 50 recent answers are included