Placa de rede ubuntu server 18.04 [RESOLVIDO]

25. Re: Placa de rede ubuntu server 18.04

Buckminster
Buckminster

(usa Debian)

Enviado em 24/08/2021 - 14:28h

Provavelmente dentro desse arquivo teamviewer.list estão aqueles repositórios.
Poste aqui a saída do cat /etc/apt/sources.list.d/teamviewer.list.


________________________________________________
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.

Ou então execute:
# chown -R root:root /
# mount -o remount,rw /
# reboot

e veja o sistema derreter na sua frente.



  


26. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

André Bartels
Bartels

(usa Ubuntu)

Enviado em 24/08/2021 - 14:44h


root@srv03:/home/server# cat /etc/apt/sources.list.d/teamviewer.list
### TeamViewer DEB repository list

### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'

### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo stable - make all regular TeamViewer packages available (default)
### teamviewer repo preview - additionally, make feature preview packages available
### teamviewer repo development - additionally, make the latest development packages available


deb https://linux.teamviewer.com/deb stable main

# deb https://linux.teamviewer.com/deb preview main
# deb https://linux.teamviewer.com/deb development main
root@srv03:/home/server#



acha sugestivo eu remover o team viewer?


27. Re: Placa de rede ubuntu server 18.04

Buckminster
Buckminster

(usa Debian)

Enviado em 24/08/2021 - 15:00h

Não remova o teamviewer.list

Comente as linhas descomentadas do teamviewer.list (salve e saia, depois tu volta ao que era) e comente todas as linhas do /etc/apt/sources.list e copie e cole as linhas abaixo no final. Ou dê um mv /etc/apt/sources.list /etc/apt/sources.list.bkp e crie um novo:
nano /etc/apt/sources.list <<< ou use o teu editor de texto preferido
e copie e cole as linhas abaixo dentro.

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

Salve e saia.
ip link set enp0s3 up
apt clean
apt update

E veja se fez o update ou se vai repetir a mesma mensagem "Temporary failure resolving".

________________________________________________
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.

Ou então execute:
# chown -R root:root /
# mount -o remount,rw /
# reboot

e veja o sistema derreter na sua frente.



28. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

André Bartels
Bartels

(usa Ubuntu)

Enviado em 24/08/2021 - 15:20h

nada...snifff


root@srv03:/home/server# ip link set enp0s3 up
root@srv03:/home/server# apt clean
root@srv03:/home/server# apt update
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 http://br.archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:4 http://br.archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:5 http://br.archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:6 http://br.archive.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@srv03:/home/server#



29. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

Buckminster
Buckminster

(usa Debian)

Enviado em 24/08/2021 - 15:46h

W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'br.archive.ubuntu.com'

Ele ainda tentou dar update pelo cache nos repositórios antigos.

No /etc/netplan/*.yaml volte ao que era antes. Delete ou comente aquelas linhas acrescentadas. Salve e saia.
# netplan apply <<< provavelmente dará comando não encontrado
# ip link set enp0s3 up
# ip link show <<< e veja se a placa está com status UP
# apt autoclean
# apt update

Caso não der, reinicie o servidor e tente.
E poste aqui o que tem dentro do diretório netplan (quantos arquivos):
cd /etc/netplan
ls


________________________________________________
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.

Ou então execute:
# chown -R root:root /
# mount -o remount,rw /
# reboot

e veja o sistema derreter na sua frente.



30. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

André Bartels
Bartels

(usa Ubuntu)

Enviado em 24/08/2021 - 16:00h

nada..


root@srv03:/home/server# vim /etc/netplan/*yaml
root@srv03:/home/server# cat /etc/netplan/*.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp0s3:
dhcp4: true
version: 2
#network:
# version: 2
# rederer: networkd
# ethernets:
# enp0s3:
# dhcp4: no
# bridges:
# br0:
# dhcp4: yes
# interface:
# -enp0s3

root@srv03:/home/server# netplan apply

Command 'netplan' not found, but can be installed with:

apt install netplan.io
apt install netplan

root@srv03:/home/server# ip link set enp0s3 up
root@srv03:/home/server# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:5c:4d:58 brd ff:ff:ff:ff:ff:ff
root@srv03:/home/server# apt autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@srv03:/home/server# apt update
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:3 http://br.archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:4 http://br.archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:5 http://br.archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:6 http://br.archive.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@srv03:/home/server#


depois do boot

root@srv03:/home/server# netplan apply

Command 'netplan' not found, but can be installed with:

apt install netplan.io
apt install netplan

root@srv03:/home/server# ip link set enp0s3 up
root@srv03:/home/server# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 08:00:27:5c:4d:58 brd ff:ff:ff:ff:ff:ff
root@srv03:/home/server# apt autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@srv03:/home/server# apt update
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Temporary failure resolving 'ppa.launchpad.net'
Err:3 http://br.archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:4 http://br.archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:5 http://br.archive.ubuntu.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Err:6 http://br.archive.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'br.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://br.archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'br.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease Temporary failure resolving 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@srv03:/home/server#

root@srv03:/home/server# cd /etc/netplan/
root@srv03:/etc/netplan# ls
50-cloud-init.yaml
root@srv03:/etc/netplan#



31. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

Buckminster
Buckminster

(usa Debian)

Enviado em 24/08/2021 - 16:11h

Veja o que tem dentro do arquivo 50-cloud-init.yaml:
cat /etc/netplan/50-cloud-init.yaml

Verifique se esses diretórios estão no sistema:
ls -l /lib/netplan/
ls -l /run/netplan/


________________________________________________
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.

Ou então execute:
# chown -R root:root /
# mount -o remount,rw /
# reboot

e veja o sistema derreter na sua frente.



32. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

André Bartels
Bartels

(usa Ubuntu)

Enviado em 24/08/2021 - 16:25h

saidas..

root@srv03:/etc/netplan# ls -l /lib
lib/ lib64/
root@srv03:/etc/netplan# ls -l /lib/netplan
ls: cannot access '/lib/netplan': No such file or directory
root@srv03:/etc/netplan# ls -l /run/netplan
ls: cannot access '/run/netplan': No such file or directory
root@srv03:/etc/netplan# cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp0s3:
dhcp4: true
version: 2
#network:
# version: 2
# rederer: networkd
# ethernets:
# enp0s3:
# dhcp4: no
# bridges:
# br0:
# dhcp4: yes
# interface:
# -enp0s3

root@srv03:/etc/netplan#



33. Re: Placa de rede ubuntu server 18.04

Buckminster
Buckminster

(usa Debian)

Enviado em 24/08/2021 - 17:08h

Faça o seguinte:
vim /etc/default/grub
Na linha GRUB_CMDLINE_LINUX=""
deixe assim
GRUB_CMDLINE_LINUX="netcfg/do_not_use_netplan=true"
Salve e saia.

update-grub
deve correr sem erros.

ip link set enp0s3 up
apt install ifupdown
Veja a saída deste último comando.

Caso não der conexão, faça um wget:
wget http://archive.ubuntu.com/ubuntu/pool/main/i/ifupdown/ifupdown_0.8.17ubuntu1_amd64.deb
e baixe o .deb para teu ubuntu e instale:
dpkg -i ifupdown_0.8.17ubuntu1_amd64.deb

Caso não conseguir com o wget, sugiro fazer o download em outra máquina com internet e daí instalar nesse Ubuntu com problemas. Caso pedir alguma dependência (acho difícil), entre no site https://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/ifupdown_0.8.17ubuntu1_amd64.deb.html e veja os requires.

Com esse pacote voltará o /etc/network/interfaces.
Talvez seja melhor reiniciar depois de instalar o .deb.

Caso depois de conseguir a conexão e quiser de volta o netplan:
apt install netplan.io
apt purge ifupdown

Não esqueça dos repositórios, aquele teamviwer se for necessário habilite.
Aquele PPA não sei onde está, mas ao conseguir conexão e der um apt-get clean, apt-get update, apt-get autoremove provavelmente o sistema ficará como antes.
Aconselho a deixar o sources.list que te passei, mas tu que sabe do sistema aí.
PPAs não são recomendáveis porque eles podem ser abandonados ou descontinuados pelo mantenedor do PPA, daí ao dar apt-get update pode baixar pacotes obsoletos que não são da versão do sistema. Mas se aquele PPA for necessário para o php, deixe.
Esse problema com o netplan já vem acontecendo um tempo. O netplan não é muito aconselhável para servidores porque quando dá problema o cara fica mais perdido do que cego em tiroteio.
Além disso, tem um outro serviço de calendário chamado netplan também, por isso antes dava conflito de portas ao executar netplan. Aquele apt remove netplan deve ter se perdido e removido os dois.
O netplan de rede é netplan.io.
Mas enfim, esse netplan é assim: pode nunca dar problema, mas a configuração dele é chata, tem que identar as linhas, etc, e quando dá encrenca é isso aí.
Qualquer problema que der, posta aqui.
Página oficial do Netplan:
https://netplan.io/examples/


________________________________________________
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.

Ou então execute:
# chown -R root:root /
# mount -o remount,rw /
# reboot

e veja o sistema derreter na sua frente.



34. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

André Bartels
Bartels

(usa Ubuntu)

Enviado em 24/08/2021 - 17:31h

agradeço muito a ajuda fiz tudo, fiz o wget por outra maquina... passei para a vm, mas infelizmente não foi

root@srv03:/home/server# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1174 bytes 118812 (118.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1174 bytes 118812 (118.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

root@srv03:/home/server# ip link set enp0s3 up
root@srv03:/home/server# ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a00:27ff:fe5c:4d58 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:5c:4d:58 txqueuelen 1000 (Ethernet)
RX packets 645 bytes 44247 (44.2 KB)
RX errors 0 dropped 15 overruns 0 frame 0
TX packets 6 bytes 516 (516.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1494 bytes 144228 (144.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1494 bytes 144228 (144.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

root@srv03:/home/server#



35. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

Buckminster
Buckminster

(usa Debian)

Enviado em 24/08/2021 - 17:35h

Configure o /etc/network/interfaces e, se for preciso, o resolv.conf.



________________________________________________
Sanou tua dúvida, resolveu teu problema?
Então marque como Resolvido e escolha a Melhor Resposta.

Ou então execute:
# chown -R root:root /
# mount -o remount,rw /
# reboot

e veja o sistema derreter na sua frente.



36. Re: Placa de rede ubuntu server 18.04 [RESOLVIDO]

André Bartels
Bartels

(usa Ubuntu)

Enviado em 24/08/2021 - 17:39h

desculpe pela ignorancia, mas o que eu deveria mudar.... eu ja havia ate comparado com outra vm instalada e estão iguais

root@srv03:/home/server# cat /etc/network/interfaces
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown

root@srv03:/home/server# cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0
root@srv03:/home/server#






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts