0
votes
0answers
55 views

How to make apt update everything with cron-apt?

For my 14.04 server, I've set up cron-apt to update every day at 4'o clock. Today I've reviewed /var/log/cron-apt/log to make sure it has updated bash to fix shellshock. And indeed, it has updated ...
-1
votes
0answers
494 views

CVE-2014-6271 Update for 11.10? [closed]

Every where I look I can't find a resource for an Bash update for 11.10. There was one for 10.x, 12.x, and 14.x. I ran the vulnerable test, before and after a apt-get update && apt-get ...
1
vote
1answer
54 views

Undo apt-get remove --purge

I wanted a fresh install of Python and ran sudo apt-get remove --purge python. Apparently it has killed almost everything I had installed in my system. Looking at the history.log I guess I could ...
0
votes
2answers
46 views

How do I get my shell script to automatically accept prompts?

I made a simple shell script (that I run as root) to download essential apps that I might need whenever I reinstall ubuntu: It looks like this: apt-get install docky && apt-get install geany ...
1
vote
3answers
48 views

ways of calculating required disk space prior to package download

The following is no duplicate of How to determine the size of a package while using apt prior to downloading?, it is more an additional question. Consider the following two implementations to get the ...
0
votes
1answer
29 views

Create a clickable install script for software

I want to create a simple script that a user can download, click on, and it will: request their root password through some sort of pop-up interface then sudo apt-get install a package to their ...
1
vote
1answer
35 views

how to test if the apt cache is up to date with bash

I'm searching a way to test in a bash script if a cache update is needed (to avoid unnecessary apt-get update when the apt-cache have been updated recently). can someone help me?
2
votes
1answer
226 views

How to know if there are updates available?

I am running a 12.04 LTS ubuntu server. And I think it would be nice if I could be informed when updates are available. But I can't find how to know... I have tried looking at apt-get man page. From ...
1
vote
0answers
101 views

No Tab Bash Auto-Complete for apt in Ubuntu 14.04 [duplicate]

Now Ubuntu 14.04 is released and I upgraded my system a few days ago. One major change was the introduction of a new version of apt. Fortunately, it is possible to do the most common task by just ...
0
votes
2answers
530 views

Automating apt-get install with --assume-yes

I am trying to write a bash script to install a list of software. I am using --assume-yes to get pass the prompts This following line somehow doesn't work sudo apt-get install ...
3
votes
1answer
491 views

Bash completion for the new apt command [duplicate]

I like the new apt command (which will be included in the upcoming trusty release) so much that I installed it on my precise system by compiling the 14.04 package from source. Unfortunately, bash ...
13
votes
2answers
2k views

Can I enable bash-completion for the new apt command?

The new apt command in 14.04 seems to be a really useful intersection of functionality between apt-get and apt-cache but the current version of bash-completion doesn't know about it... Which makes it ...
3
votes
2answers
462 views

How can I check for apt-get errors in a bash script?

I am writing a bash script to install software and update Ubuntu 12.04. I would like the script to be able to check for apt-get errors especially during apt-get update so that I can include corrective ...
3
votes
2answers
88 views

Sending enter in interaction mode ubuntu 13.10

I'm trying to make a basic script for deployment of ocs-inventory and I got stuck on a problem. When I issue this command: sudo apt-get install -y ocsinventory-agent The interactive window ...
1
vote
1answer
21 views

Pipe or log APT, keeping Notes

I am making a script that installs a dynamic list of packages and I need to know if a package is 'redirected' to another packages such as rpm-dbg -> librpm-dbg. The way I was going to do that was as ...
0
votes
0answers
66 views

Problem with apt-get

Whenever I run apt-get in terminal I always get the same error apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/x86_64-linux-gnu/libstdc++.so.6) I ...
0
votes
4answers
661 views

How to prevent script not to stop after apt-get?

I keep some bash snippets and copy&paste them when I needed for management. But I discovered apt-get cancels script execution. Here's my script where problematic. apt-get -y install gcc g++ make ...
-1
votes
1answer
811 views

Unable to locate package openfoam221

While I am executing command **VERS=$(lsb_release -cs) sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt**/sources.list.d/openfoam.list"*][1]* I have a file ...
1
vote
1answer
248 views

“Permission denied” error using dpkg-scanpackages and gzip

I'm quite new to Linux. I wanted to set up my own local apt-repository using instructions given here. However, when i execute the script as: #! /bin/bash cd /var/www/debs/i386 dpkg-scanpackages . ...
3
votes
1answer
740 views

How can I mark all packages with installed dependents as “Automatically Installed”?

There are some similar questions, but here is precisely what I would like to achieve and the dots which I am having trouble connecting: Query a list of "Manually Installed" packages (apt-mark ...
2
votes
1answer
2k views

Auto confirm when running bash scripts?

I am working on a simple bash script that configures new servers how I want them. It's nothing special but it will hopefully save me quite a lot of time in the future. How do I prevent prompts like ...
1
vote
2answers
552 views

Why does my terminal attempt to execute 'sudo apt-get update' at every launch?

Every time I launch a terminal it attempts to execute sudo apt-get update This happens regardless of which terminal emulator is used - both guake and gnome-terminal do it at least. It also does ...
1
vote
1answer
201 views

Wrong autocompletion with sudo apt-get

Does anybody know why if I type: apt-get upg<TAB> I get: apt-get upgrade but if I type: sudo apt-get upg<TAB> I get: sudo apt-get upgrade-from-grub-legacy
1
vote
1answer
322 views

apt-get install - how to get report about failed installs?

I've created my script to install software on a new computer. Basically it includes lot's of apt get install <pkg name> -y lines. How can I get a short report about installs that has failed? ...
0
votes
2answers
1k views

Autojump in 12.04 doesn't work

https://launchpad.net/ubuntu/+source/autojump I installed with apt-get, checked out the man page and added . /usr/share/autojump/autojump.sh to my .bashrc, like it says. When I cd around the ...
11
votes
5answers
9k views

How do I insert a line at the top of a text file using the command line?

I want to insert text at the top of an already existing file. How can I achieve this. I tried echo and tee but was not successful. I was trying to insert repo line at the top of sources.list file ...
0
votes
1answer
195 views

bash ignores what I type while “apt-get” is running

I am encountering this problem: I type sudo apt-get install <package>, and hit Enter. apt-get starts resolving dependencies and downloading/installing packages. While it is running, I want to ...
3
votes
1answer
4k views

Using sudo aptitude/apt-get update does not work

Trying to update via terminal via aptitude or apt-get is not working. There is no other package management program running in the background or any other user. I tried both, sudo aptitude update ...
3
votes
2answers
7k views

Bash Tab Auto-complete not working for apt

apt-get install and apt-cache policy do not complete package names. I have double checked /etc/bash.bashrc, no irregularities. Googled for answers but none suffice. Any help/advice?
25
votes
3answers
26k views

apt-get autocomplete package name is broken

At some moment apt-get install autocomplete was broken It was very useful to me to see packages name with Tab press How to repair this autocomplete?
3
votes
2answers
7k views

How can I install a specific older version of Firefox and keep it from automatically updating?

I wrote a bash script to configure a suite of tools for continuous integration on top of Ubuntu 10.04.2. The script recently stopped working and I tracked the problem down to the newer version of ...
2
votes
2answers
830 views

enable auto-completion of apt-get for non-privileged user?

I've enabled apt-get in SUDO without password , and bash autocompletion for it need to be enabled as well , but how ? If i try to source that file: %> . /etc/bash_completion.d/apt No command ...
6
votes
3answers
7k views

Apt-get install multiple packages without stopping

I am making a bash script that installs various packages using apt-get install. However, I notice that if there is a line that says: sudo apt-get install package1 package2 package3 and either of ...
7
votes
2answers
254 views

What is the program that suggests installable packages?

One of the features of Ubuntu that I really like is the one that suggests packages to install if you try to run a program that isn't installed, like this: $ nmap The program 'nmap' is currently not ...