The officially official Devuan Forum!

You are not logged in.

#1 2020-07-02 18:35:08

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

File /etc/protocols not found!!!

Hello everybody!
The /etc/ directory does not contain the protocols file, which means that the ebtables utility cannot be used correctly. To fix this error, add this file (protocols) with the following content:

# Internet (IP) protocols
#
# Updated from http://www.iana.org/assignments/protocol-numbers and other
# sources.
# New protocols will be added on request if they have been officially
# assigned by IANA and are not historical.
# If you need a huge list of used numbers please install the nmap package.

ip      0       IP              # internet protocol, pseudo protocol number
hopopt  0       HOPOPT          # IPv6 Hop-by-Hop Option [RFC1883]
icmp    1       ICMP            # internet control message protocol
igmp    2       IGMP            # Internet Group Management
ggp     3       GGP             # gateway-gateway protocol
ipencap 4       IP-ENCAP        # IP encapsulated in IP (officially ``IP'')
st      5       ST              # ST datagram mode
tcp     6       TCP             # transmission control protocol
egp     8       EGP             # exterior gateway protocol
igp     9       IGP             # any private interior gateway (Cisco)
pup     12      PUP             # PARC universal packet protocol
udp     17      UDP             # user datagram protocol
hmp     20      HMP             # host monitoring protocol
xns-idp 22      XNS-IDP         # Xerox NS IDP
rdp     27      RDP             # "reliable datagram" protocol
iso-tp4 29      ISO-TP4         # ISO Transport Protocol class 4 [RFC905]
dccp    33      DCCP            # Datagram Congestion Control Prot. [RFC4340]
xtp     36      XTP             # Xpress Transfer Protocol
ddp     37      DDP             # Datagram Delivery Protocol
idpr-cmtp 38    IDPR-CMTP       # IDPR Control Message Transport
ipv6    41      IPv6            # Internet Protocol, version 6
ipv6-route 43   IPv6-Route      # Routing Header for IPv6
ipv6-frag 44    IPv6-Frag       # Fragment Header for IPv6
idrp    45      IDRP            # Inter-Domain Routing Protocol
rsvp    46      RSVP            # Reservation Protocol
gre     47      GRE             # General Routing Encapsulation
esp     50      IPSEC-ESP       # Encap Security Payload [RFC2406]
ah      51      IPSEC-AH        # Authentication Header [RFC2402]
skip    57      SKIP            # SKIP
ipv6-icmp 58    IPv6-ICMP       # ICMP for IPv6
ipv6-nonxt 59   IPv6-NoNxt      # No Next Header for IPv6
ipv6-opts 60    IPv6-Opts       # Destination Options for IPv6
rspf    73      RSPF CPHB       # Radio Shortest Path First (officially CPHB)
vmtp    81      VMTP            # Versatile Message Transport
eigrp   88      EIGRP           # Enhanced Interior Routing Protocol (Cisco)
ospf    89      OSPFIGP         # Open Shortest Path First IGP
ax.25   93      AX.25           # AX.25 frames
ipip    94      IPIP            # IP-within-IP Encapsulation Protocol
etherip 97      ETHERIP         # Ethernet-within-IP Encapsulation [RFC3378]
encap   98      ENCAP           # Yet Another IP encapsulation [RFC1241]
#       99                      # any private encryption scheme
pim     103     PIM             # Protocol Independent Multicast
ipcomp  108     IPCOMP          # IP Payload Compression Protocol
vrrp    112     VRRP            # Virtual Router Redundancy Protocol [RFC5798]
l2tp    115     L2TP            # Layer Two Tunneling Protocol [RFC2661]
isis    124     ISIS            # IS-IS over IPv4
sctp    132     SCTP            # Stream Control Transmission Protocol
fc      133     FC              # Fibre Channel
mobility-header 135 Mobility-Header # Mobility Support for IPv6 [RFC3775]
udplite 136     UDPLite         # UDP-Lite [RFC3828]
mpls-in-ip 137  MPLS-in-IP      # MPLS-in-IP [RFC4023]
manet   138                     # MANET Protocols [RFC5498]
hip     139     HIP             # Host Identity Protocol
shim6   140     Shim6           # Shim6 Protocol [RFC5533]
wesp    141     WESP            # Wrapped Encapsulating Security Payload
rohc    142     ROHC            # Robust Header Compression

Offline

#2 2020-07-02 19:37:53

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: File /etc/protocols not found!!!

The netbase package supplies /etc/protocols.

Eaglet wrote:

ebtables

That's obsolete, use nftables instead.

See also https://www.debian.org/releases/stable/ … l#nftables


Brianna Ghey — Rest In Power

Offline

#3 2020-07-02 21:35:50

Marjorie
Member
From: Teignmouth, UK
Registered: 2019-06-09
Posts: 221  

Re: File /etc/protocols not found!!!

Head_on_a_Stick wrote:

The netbase package supplies /etc/protocols.

Eaglet wrote:

ebtables

That's obsolete, use nftables instead.

See also https://www.debian.org/releases/stable/ … l#nftables

Yes, nftabes is a better system. I use it myself. However be aware that from a Devuan perspective the Debian packaging is broken, some of it by design:

1) the automatic sysvinit installer script (in the deb postinst), which should set it up if systemd is missing, it's not there. Of course it wouldn't work anyway because
2) etc/init.d/nftables is not there. There is a version provided (named nftables.init), but only as an example, and it doesn't work because the LSB header run-levels are wrong. Not too difficult to fix, but does need fixing. And the execute bit is not set.
3) However nftables itself works fine without systemd.

See our discussion at https://dev1galaxy.org/viewtopic.php?id=2889

NB. this doesn't seem to be the only non-Devuanised Debian package I've wanted to use that is not non-systemd ready. Shouldn't it be a requirement?

Last edited by Marjorie (2020-07-02 21:37:41)

Offline

#4 2020-07-03 17:28:10

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: File /etc/protocols not found!!!

Marjorie wrote:

Oh yes, I forgot about that smile

Marjorie wrote:

NB. this doesn't seem to be the only non-Devuanised Debian package I've wanted to use that is not non-systemd ready. Shouldn't it be a requirement?

The lack of support for alternative init systems could theoretically be reported to Debian as a bug but the maintainers are not compelled to fix it thanks to the recent GR.


Brianna Ghey — Rest In Power

Offline

#5 2020-07-18 11:01:15

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

Re: File /etc/protocols not found!!!

I not use nftables, i use iptables & etc.
You not solve this problem!

Offline

#6 2020-07-18 11:14:27

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

Re: File /etc/protocols not found!!!

See:
https://wiki.nftables.org/wiki-nftables … extensions
https://wiki.nftables.org/wiki-nftables … extensions
nftables is very poor!

Last edited by Eaglet (2020-07-18 11:18:25)

Offline

#7 2020-07-18 15:04:00

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: File /etc/protocols not found!!!

Eaglet wrote:

You not solve this problem!

Yes I did:

# rm /etc/protocols
# apt install netbase

Please pay attention... roll


Brianna Ghey — Rest In Power

Offline

#8 2020-07-18 21:14:06

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

Re: File /etc/protocols not found!!!

I have installed netbase package without file /etc/protocols.
I try remove file /etc/protocols and reinstall netbase package, i have results: file /etc/protocols not found after reinstall netbase package.
Please fix this error with install netbase package!!!

Offline

#9 2020-07-18 21:48:22

Marjorie
Member
From: Teignmouth, UK
Registered: 2019-06-09
Posts: 221  

Re: File /etc/protocols not found!!!

Not sure what you are doing that's not providing the expected result.

There's nothing wrong with the netbase package.
Check the files list in synaptic: /etc/protocols is listed there.
As far as I'm aware on my PCs it came with my initial, clean, Beowulf Beta installs.

Offline

#10 2020-07-19 10:07:58

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: File /etc/protocols not found!!!

$ dpkg -L netbase
/.
/etc
/etc/protocols
/etc/rpc
/etc/services
/usr
/usr/share
/usr/share/doc
/usr/share/doc/netbase
/usr/share/doc/netbase/changelog.gz
/usr/share/doc/netbase/copyright
$ apt-file search /etc/protocols
netbase: /etc/protocols                   
$

It's right there.


Brianna Ghey — Rest In Power

Offline

#11 2020-07-19 10:42:04

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

Re: File /etc/protocols not found!!!

Head_on_a_Stick wrote:
$ dpkg -L netbase
/.
/etc
/etc/protocols
/etc/rpc
/etc/services
/usr
/usr/share
/usr/share/doc
/usr/share/doc/netbase
/usr/share/doc/netbase/changelog.gz
/usr/share/doc/netbase/copyright
$ apt-file search /etc/protocols
netbase: /etc/protocols                   
$

It's right there.

I know about package netbase.
I repeat FOR YOU again: after install netbase package file /etc/protocols not found!!!

Offline

#12 2020-07-19 11:30:00

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: File /etc/protocols not found!!!

I do beg your pardon, re-installing the package does not replace /etc/protocols if it has been removed.

Try

apt download netbase
dpkg -x netbase*.deb .
# mv etc/protocols /etc

I've just installed a fresh Devuan beowulf system and /etc/protocols was present and correct so this is almost certainly a PEBKAC issue.

Last edited by Head_on_a_Stick (2020-07-19 11:30:28)


Brianna Ghey — Rest In Power

Offline

#13 2020-07-19 18:18:16

PedroReina
Member
From: Madrid, Spain
Registered: 2019-01-13
Posts: 269  
Website

Re: File /etc/protocols not found!!!

So... fixed?

Everybody calm smile

Offline

Board footer