erro no terminal e no apt-get update

13. Re: erro no terminal e no apt-get update

stirk
stirk

(usa Outra)

Enviado em 25/01/2013 - 19:32h

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
/home/stirk/.profile (END)



  


14. Re: erro no terminal e no apt-get update

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 25/01/2013 - 19:33h

Não tem nada demais aí. Roda
 # less /etc/profile  

e posta aqui a saída desse.


15. Re: erro no terminal e no apt-get update

Jonathan Wolff Andrade
jwolff

(usa Kali)

Enviado em 25/01/2013 - 19:35h

stirk escreveu:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
/home/stirk/.profile (END)


O meu (funcionando) ta assim:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export LANGUAGE="pt_BR:pt_PT:de:zh_CN:zh_CN"
export LC_MESSAGES="pt_BR.UTF-8"
export LC_CTYPE="pt_BR.UTF-8"
export LC_COLLATE="pt_BR.UTF-8"
export LANG="pt_BR.UTF-8"



16. Re: erro no terminal e no apt-get update

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 25/01/2013 - 19:38h

Gente, isso tá bizarro. O que o
 $ less ~/.bashrc  

tem?


17. Re: erro no terminal e no apt-get update

stirk
stirk

(usa Outra)

Enviado em 25/01/2013 - 19:44h

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
/home/stirk/.profile (END)



18. Re: erro no terminal e no apt-get update

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 25/01/2013 - 20:12h

stirk escreveu:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
/home/stirk/.profile (END)


Tem algo errado. Alguma coisa no seu sistema está tentando redefinir a variável $PATH (é por isso que você recebe aquela mensagem que não foi possível rolar o export). Alguém aí lembra a sintaxe do comando find pra procurar por texto dentro de arquivos?


19. Re: erro no terminal e no apt-get update

Andre (pinduvoz)
pinduvoz

(usa Debian)

Enviado em 25/01/2013 - 20:26h

Veja se esses diretórios existem:

/usr/games

/usr/local/games

/lampp/bin

Se eles não existirem, vc pode criá-los e assim resolver o erro do PATH. A outra opção é descobrir de onde vem o comando que altera seu PATH, mas isso é bem mais complicado.


20. Re: erro no terminal e no apt-get update

stirk
stirk

(usa Outra)

Enviado em 25/01/2013 - 20:47h

todos existem



21. Re: erro no terminal e no apt-get update

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 25/01/2013 - 20:48h

stirk escreveu:

todos existem


Seu usuário tem permissão de acesso a todos eles?


22. Re: erro no terminal e no apt-get update

stirk
stirk

(usa Outra)

Enviado em 27/01/2013 - 22:09h

conforme vi que o treco aqui tava estranho decidi reinstalar
obrigado a todos


23. Salvou meu dia!

Odair Jose Kwitschal
OJK

(usa Ubuntu)

Enviado em 20/09/2017 - 20:24h

lcavalheiro escreveu:

Vocês e seus malditos PPAs... Roda os comandos:
 $ sudo rm -rf /etc/apt/sources.list.d/*
$ sudo rm -rf /var/lib/apt/lists/*
$ sudo apt-get update

Isso deve tirar os PPAs da lista e fazer o apt-get upgrade funcionar.


Olá quero agradecer pois estes comandos salvaram meu dia. não sou tão Expert...



24. Re: erro no terminal e no apt-get update

Lucas Moraes
lucasdemoraesc

(usa Ubuntu)

Enviado em 20/09/2017 - 20:27h

OJK escreveu:

lcavalheiro escreveu:

Vocês e seus malditos PPAs... Roda os comandos:
 $ sudo rm -rf /etc/apt/sources.list.d/*
$ sudo rm -rf /var/lib/apt/lists/*
$ sudo apt-get update

Isso deve tirar os PPAs da lista e fazer o apt-get upgrade funcionar.


Olá quero agradecer pois estes comandos salvaram meu dia. não sou tão Expert...


https://edpsblog.files.wordpress.com/2013/06/pa_de_ouro_923_149.jpg?w=660


LMC ----------------------------------------
----------------------------------------------
#voltalisteiro ---------------------



  
01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts