apt install - can't autocomplete package names (Docker)apt-get autocomplete package name is brokenenabling auto completion for apt-get install in docker (ubuntu 14.04)apt-get autocomplete package name is brokenchanges to /etc/bash.bashrc not permanentPackage ignore when running apt-get updateTrouble Installing Package from a Local Apt Repozsh apt-get autocomplete doesn't work with fake root
Lighthouse Alternatives
Tuning fork in last two episodes of Legion S02
Is it unethical to give a gift to my professor who might potentially write me a LOR?
Bothered by watching coworkers slacking off
How does case-insensitive collation work?
Is there a pattern for handling conflicting function parameters?
How to catch creatures that can predict the next few minutes?
How much lead is really on my hands when soldering?
Can I voluntarily exit from the US after a 20 year overstay, or could I be detained at the airport?
Would houseruling two or more instances of resistance to the same element as immunity be overly unbalanced?
Young adult short story book with one story where a woman finds a walrus suit and becomes a walrus
Generating Roman numerals with dice
Is American Sign Language phonetic?
Parent asking for money after I moved out
Is there any problem with students seeing faculty naked in university gym?
Determining if auto stats update is in progress
Was there an autocomplete utility in MS-DOS?
As an interviewer, how to conduct interviews with candidates you already know will be rejected?
Why do many websites hide input when entering a OTP
Airport Security - advanced check, 4th amendment breach
Did the Humans find out about Gaius Baltar's role in the sabotage of the fleet?
How dangerous are my worn rims?
Is right click on tables bad UX
How can I find places to store/land a private airplane?
apt install - can't autocomplete package names (Docker)
apt-get autocomplete package name is brokenenabling auto completion for apt-get install in docker (ubuntu 14.04)apt-get autocomplete package name is brokenchanges to /etc/bash.bashrc not permanentPackage ignore when running apt-get updateTrouble Installing Package from a Local Apt Repozsh apt-get autocomplete doesn't work with fake root
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
It's the same error as in several other posts, but none of the solutions work for me.
I'm typing
apt-get install ar<TAB><TAB>
and there's not auto-completion. I'm using an Ubuntu-Docker:
#
# Ubuntu Dockerfile
#
# https://github.com/dockerfile/ubuntu
#
# Pull base image.
FROM ubuntu:16.04
# Install.
RUN
sed -i 's/# (.*multiverse$)/1/g' /etc/apt/sources.list &&
apt-get update &&
apt-get -y upgrade &&
apt-get install -y build-essential &&
apt-get install -y software-properties-common &&
apt-get install -y byobu curl git htop man unzip vim wget openssh-server &&
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository main
RUN add-apt-repository universe
RUN add-apt-repository restricted
RUN add-apt-repository multiverse
RUN apt-get update
#ArangoDB stuff
RUN curl -OL https://download.arangodb.com/arangodb34/DEBIAN/Release.key && apt-key add - < Release.key
RUN echo 'deb https://download.arangodb.com/arangodb34/DEBIAN/ /' | tee /etc/apt/sources.list.d/arangodb.list
RUN apt-get install apt-transport-https
RUN apt-get update
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]
which is working.
At first I couldn't use any auto-complete at all. Enabling the sections in the .bashrc allowed me to get the install
, but now I'm stuck. What I did so far:
sudo apt-get update
From apt-get autocomplete package name is broken
sudo apt-get install bash-completion
Enabled this in the /etc/bash.bashrc:
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
In the .bashrc I enabled:
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
Still, no changes. Is there something docker-specific I have to put into consideration?
Edit:
Apparently it's a shell-issue. I installed zsh
. In zsh
it's working as supposed.
I don't like to have this as a solution as I still don't understand why the regular shell refuses to work.
I have read about enabling auto completion for apt-get install in docker (ubuntu 14.04) - but frankly I don't quite get what the OP was doing to make it work.
command-line apt bash package-management auto-completion
add a comment
|
It's the same error as in several other posts, but none of the solutions work for me.
I'm typing
apt-get install ar<TAB><TAB>
and there's not auto-completion. I'm using an Ubuntu-Docker:
#
# Ubuntu Dockerfile
#
# https://github.com/dockerfile/ubuntu
#
# Pull base image.
FROM ubuntu:16.04
# Install.
RUN
sed -i 's/# (.*multiverse$)/1/g' /etc/apt/sources.list &&
apt-get update &&
apt-get -y upgrade &&
apt-get install -y build-essential &&
apt-get install -y software-properties-common &&
apt-get install -y byobu curl git htop man unzip vim wget openssh-server &&
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository main
RUN add-apt-repository universe
RUN add-apt-repository restricted
RUN add-apt-repository multiverse
RUN apt-get update
#ArangoDB stuff
RUN curl -OL https://download.arangodb.com/arangodb34/DEBIAN/Release.key && apt-key add - < Release.key
RUN echo 'deb https://download.arangodb.com/arangodb34/DEBIAN/ /' | tee /etc/apt/sources.list.d/arangodb.list
RUN apt-get install apt-transport-https
RUN apt-get update
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]
which is working.
At first I couldn't use any auto-complete at all. Enabling the sections in the .bashrc allowed me to get the install
, but now I'm stuck. What I did so far:
sudo apt-get update
From apt-get autocomplete package name is broken
sudo apt-get install bash-completion
Enabled this in the /etc/bash.bashrc:
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
In the .bashrc I enabled:
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
Still, no changes. Is there something docker-specific I have to put into consideration?
Edit:
Apparently it's a shell-issue. I installed zsh
. In zsh
it's working as supposed.
I don't like to have this as a solution as I still don't understand why the regular shell refuses to work.
I have read about enabling auto completion for apt-get install in docker (ubuntu 14.04) - but frankly I don't quite get what the OP was doing to make it work.
command-line apt bash package-management auto-completion
Did you see this question? Looks like Docker does something specific toapt
indeed!
– Mr Shunz
Apr 16 at 13:43
@MrShunz - I read that already but couldn't make much sense out of it
– Qohelet
Apr 17 at 7:58
add a comment
|
It's the same error as in several other posts, but none of the solutions work for me.
I'm typing
apt-get install ar<TAB><TAB>
and there's not auto-completion. I'm using an Ubuntu-Docker:
#
# Ubuntu Dockerfile
#
# https://github.com/dockerfile/ubuntu
#
# Pull base image.
FROM ubuntu:16.04
# Install.
RUN
sed -i 's/# (.*multiverse$)/1/g' /etc/apt/sources.list &&
apt-get update &&
apt-get -y upgrade &&
apt-get install -y build-essential &&
apt-get install -y software-properties-common &&
apt-get install -y byobu curl git htop man unzip vim wget openssh-server &&
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository main
RUN add-apt-repository universe
RUN add-apt-repository restricted
RUN add-apt-repository multiverse
RUN apt-get update
#ArangoDB stuff
RUN curl -OL https://download.arangodb.com/arangodb34/DEBIAN/Release.key && apt-key add - < Release.key
RUN echo 'deb https://download.arangodb.com/arangodb34/DEBIAN/ /' | tee /etc/apt/sources.list.d/arangodb.list
RUN apt-get install apt-transport-https
RUN apt-get update
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]
which is working.
At first I couldn't use any auto-complete at all. Enabling the sections in the .bashrc allowed me to get the install
, but now I'm stuck. What I did so far:
sudo apt-get update
From apt-get autocomplete package name is broken
sudo apt-get install bash-completion
Enabled this in the /etc/bash.bashrc:
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
In the .bashrc I enabled:
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
Still, no changes. Is there something docker-specific I have to put into consideration?
Edit:
Apparently it's a shell-issue. I installed zsh
. In zsh
it's working as supposed.
I don't like to have this as a solution as I still don't understand why the regular shell refuses to work.
I have read about enabling auto completion for apt-get install in docker (ubuntu 14.04) - but frankly I don't quite get what the OP was doing to make it work.
command-line apt bash package-management auto-completion
It's the same error as in several other posts, but none of the solutions work for me.
I'm typing
apt-get install ar<TAB><TAB>
and there's not auto-completion. I'm using an Ubuntu-Docker:
#
# Ubuntu Dockerfile
#
# https://github.com/dockerfile/ubuntu
#
# Pull base image.
FROM ubuntu:16.04
# Install.
RUN
sed -i 's/# (.*multiverse$)/1/g' /etc/apt/sources.list &&
apt-get update &&
apt-get -y upgrade &&
apt-get install -y build-essential &&
apt-get install -y software-properties-common &&
apt-get install -y byobu curl git htop man unzip vim wget openssh-server &&
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository main
RUN add-apt-repository universe
RUN add-apt-repository restricted
RUN add-apt-repository multiverse
RUN apt-get update
#ArangoDB stuff
RUN curl -OL https://download.arangodb.com/arangodb34/DEBIAN/Release.key && apt-key add - < Release.key
RUN echo 'deb https://download.arangodb.com/arangodb34/DEBIAN/ /' | tee /etc/apt/sources.list.d/arangodb.list
RUN apt-get install apt-transport-https
RUN apt-get update
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]
which is working.
At first I couldn't use any auto-complete at all. Enabling the sections in the .bashrc allowed me to get the install
, but now I'm stuck. What I did so far:
sudo apt-get update
From apt-get autocomplete package name is broken
sudo apt-get install bash-completion
Enabled this in the /etc/bash.bashrc:
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
In the .bashrc I enabled:
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
Still, no changes. Is there something docker-specific I have to put into consideration?
Edit:
Apparently it's a shell-issue. I installed zsh
. In zsh
it's working as supposed.
I don't like to have this as a solution as I still don't understand why the regular shell refuses to work.
I have read about enabling auto completion for apt-get install in docker (ubuntu 14.04) - but frankly I don't quite get what the OP was doing to make it work.
command-line apt bash package-management auto-completion
command-line apt bash package-management auto-completion
edited Apr 17 at 8:16
Qohelet
asked Apr 16 at 13:38
QoheletQohelet
2594 silver badges14 bronze badges
2594 silver badges14 bronze badges
Did you see this question? Looks like Docker does something specific toapt
indeed!
– Mr Shunz
Apr 16 at 13:43
@MrShunz - I read that already but couldn't make much sense out of it
– Qohelet
Apr 17 at 7:58
add a comment
|
Did you see this question? Looks like Docker does something specific toapt
indeed!
– Mr Shunz
Apr 16 at 13:43
@MrShunz - I read that already but couldn't make much sense out of it
– Qohelet
Apr 17 at 7:58
Did you see this question? Looks like Docker does something specific to
apt
indeed!– Mr Shunz
Apr 16 at 13:43
Did you see this question? Looks like Docker does something specific to
apt
indeed!– Mr Shunz
Apr 16 at 13:43
@MrShunz - I read that already but couldn't make much sense out of it
– Qohelet
Apr 17 at 7:58
@MrShunz - I read that already but couldn't make much sense out of it
– Qohelet
Apr 17 at 7:58
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134377%2fapt-install-cant-autocomplete-package-names-docker%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134377%2fapt-install-cant-autocomplete-package-names-docker%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you see this question? Looks like Docker does something specific to
apt
indeed!– Mr Shunz
Apr 16 at 13:43
@MrShunz - I read that already but couldn't make much sense out of it
– Qohelet
Apr 17 at 7:58